Skip to content

feat: added MCP instrumentation with Langtrace.#57

Draft
nathanjclark wants to merge 1 commit intomainfrom
feat/mcp-instrumentation
Draft

feat: added MCP instrumentation with Langtrace.#57
nathanjclark wants to merge 1 commit intomainfrom
feat/mcp-instrumentation

Conversation

@nathanjclark
Copy link
Contributor

  • Initialize Langtrace tracing when LANGTRACE_API_KEY is set (or via --langtrace-api-key).
  • Add user kill switch for telemetry: NEPTUNE_MCP_DISABLE_TELEMETRY=1 and --disable-telemetry.
  • Instrument all FastMCP tools at registration time by wrapping mcp.tool so every @mcp.tool(...) invocation emits a span (sync + async) with tool name, duration, and success/error. NOTE: argument values are not recorded; only kwarg names/count.
  • Add spans for Neptune API calls in Client (route templates + status code) and for local subprocess execution

- Initialize Langtrace tracing when LANGTRACE_API_KEY is set (or via --langtrace-api-key).
- Add user kill switch for telemetry: NEPTUNE_MCP_DISABLE_TELEMETRY=1 and --disable-telemetry.
- Instrument all FastMCP tools at registration time by wrapping mcp.tool so every @mcp.tool(...)
  invocation emits a span (sync + async) with tool name, duration, and success/error.
  NOTE: argument values are not recorded; only kwarg names/count.
- Add spans for Neptune API calls in Client (route templates + status code) and for local subprocess
  execution
@nathanjclark nathanjclark requested a review from ipedrazas January 8, 2026 12:21
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.

1 participant