Skip to content

Expose several metrics related constants #576

Open
@fvdcx

Description

@fvdcx

In my MCP server, I need to track usage data of tool calls, since SDK isn't exposing constants like internal static ActivitySource ActivitySource { get; } = new("Experimental.ModelContextProtocol"); , I have to do this in my application

        internal const string MCPActivitySourceName = "Experimental.ModelContextProtocol";
        internal const string MCPMethodName = "mcp.method.name";
        internal const string MCPErrorType = "error.type";
        internal const string MCPToolName = "mcp.tool.name";

Is it possible to expose them from the sdk side?

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