Skip to main content
Glama
dynatrace-oss

Dynatrace MCP Server

Official
list-exceptions.ts808 B
import { HttpClient } from '@dynatrace-sdk/http-client'; import { executeDql } from './execute-dql'; export const listExceptions = async ( dtClient: HttpClient, additionalFilter?: string, timeframe: string = '24h', maxResultRecords: number = 5000, ) => { // DQL statement to fetch exception data from user.events for the specified timeframe const dql = `fetch user.events, from: now()-${timeframe}, to: now() | filter isNotNull(exception.stack_trace) | filter isNotNull(error.id) ${additionalFilter ? `| filter ${additionalFilter}` : ''} | fields error.id, error.type, exception.message, os.name, dt.rum.application.id, dt.rum.application.entity, start_time | sort start_time desc `; return await executeDql(dtClient, { query: dql, maxResultRecords, maxResultBytes: /* 5 MB */ 5000000 }); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dynatrace-oss/dynatrace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server