Fix telemetry collection for remote server mode#1602
Merged
srnagar merged 3 commits intomicrosoft:mainfrom Jan 28, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR simplifies telemetry enablement so that it is controlled solely by the AZURE_MCP_COLLECT_TELEMETRY environment variable, independent of the server transport type. This aligns remote server (HTTP) mode with stdio mode, except when support logging explicitly disables telemetry.
Changes:
- Removed transport-based conditional logic from
InitializeConfigurationAndOptionsthat previously disabled telemetry for HTTP transport. - Set
AzureMcpServerConfiguration.IsTelemetryEnableddirectly fromAZURE_MCP_COLLECT_TELEMETRY(defaulting totrue) whenever support logging is not enabled.
alzimmermsft
approved these changes
Jan 28, 2026
alzimmermsft
approved these changes
Jan 28, 2026
colbytimm
pushed a commit
to colbytimm/microsoft-mcp
that referenced
this pull request
Apr 20, 2026
* Fix telemetry collection for remote server mode * update unit test * changelog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request simplifies the logic for enabling telemetry in the service configuration. Now, telemetry is enabled or disabled solely based on the
AZURE_MCP_COLLECT_TELEMETRYenvironment variable, regardless of the transport type.Configuration simplification:
stdiovs.http) to determine whether telemetry should be enabled has been removed; telemetry is now controlled only by theAZURE_MCP_COLLECT_TELEMETRYenvironment variable.