Skip to content

Provide an example of how to connect telemetry with Application Insights #1026

@TomasHubelbauer

Description

@TomasHubelbauer

Is your feature request related to a problem? Please describe.
I want to see MCP server logs in Application Insights, for all events, but in particular:

  • Valid tool calls
  • Invalid tool calls (non-existent tool name)
  • Tool listings
  • Invalid JSON RPC messages (message method is non-existent or the whole payload is invalid)

Describe the solution you'd like
Some type of a glue NuGet package that allows the MCP .NET SDK to write to AI or a code example for doing it without introducing a custom middleware or instrumenting individual tool implementations etc.

Describe alternatives you've considered
I am in the process of looking at how the MCP .NET SDK does structured logging and seeing whether I can take that and point it at AI without needing to deal with OTel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions