Skip to content

Add Application Insights telemetry example - #1778

Open
lntutor wants to merge 1 commit into
modelcontextprotocol:mainfrom
lntutor:docs/application-insights-1026
Open

Add Application Insights telemetry example#1778
lntutor wants to merge 1 commit into
modelcontextprotocol:mainfrom
lntutor:docs/application-insights-1026

Conversation

@lntutor

@lntutor lntutor commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the Azure Monitor OpenTelemetry distro to the compiled ASP.NET Core MCP server sample
  • select Application Insights when APPLICATIONINSIGHTS_CONNECTION_STRING is configured while retaining OTLP as the default
  • document setup, exported signals, MCP attributes, and a sample Application Insights query

Closes #1026

Test plan

  • dotnet build samples/AspNetCoreMcpServer/AspNetCoreMcpServer.csproj --configuration Debug --no-incremental
  • dotnet build samples/AspNetCoreMcpServer/AspNetCoreMcpServer.csproj --configuration Release --no-incremental
  • OTLP-default startup smoke test and MCP endpoint request
  • Azure Monitor startup smoke test with a non-secret placeholder connection string
  • dotnet build ModelContextProtocol.slnx --configuration Debug --no-incremental
  • dotnet test ModelContextProtocol.slnx --configuration Debug --no-build --no-restore --filter "(Execution!=Manual)" (8,862 passed)
  • focused dotnet format verification for the modified C# file; the repository-wide formatter currently reports 74 pre-existing files on main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide an example of how to connect telemetry with Application Insights

1 participant