File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased Changes
44
5+ ### Fixed
6+
7+ - Suppress stack trace when telemetry is disabled via ` DT_MCP_DISABLE_TELEMETRY=true ` ; now logs a concise message instead of throwing an error
8+
59### Tools
610
711- ` find_entities_by_name ` now uses ` smartscapeNode ` DQL command under the hood, and will fall back to ` fetch dt.entity.${entityType} ` .
Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ export function createTelemetry(): Telemetry {
203203 try {
204204 return new DynatraceMcpTelemetry ( ) ;
205205 } catch ( e ) {
206- // Failed to initialize
207- console . error ( e ) ;
206+ // Failed to initialize (unexpected). Log concise message without stack trace spam.
207+ console . error ( 'Dynatrace Telemetry initialization failed:' , ( e as Error ) . message ) ;
208208 // fallback to NoOp Telemetry
209209 return new NoOpTelemetry ( ) ;
210210 }
You can’t perform that action at this time.
0 commit comments