Skip to content

Conversation

kashishhora
Copy link
Member

Summary

Adds support for telemetry exporters to enable sending MCP analytics to existing observability infrastructure. Users can now export events to OpenTelemetry collectors, Datadog, or Sentry.

Key Features

  • Telemetry-only mode: Pass null as projectId to use only telemetry exporters without MCPCat account
  • Dual mode: Send events to both MCPCat and telemetry exporters simultaneously
  • Multiple exporters: Configure multiple exporters to send data to different systems

Supported Exporters

  • OTLP: OpenTelemetry Protocol for standard observability tools
  • Datadog: Logs and metrics with proper tagging
  • Sentry: Performance monitoring and error tracking

Example

track(mcp, project_id=project_id, options={
  exporters: {
    otlp: {
      type: "otlp",
      endpoint: "http://localhost:4318/v1/traces"
    }
})

  - Add support for OpenTelemetry (OTLP), Datadog, and Sentry exporters
  - Enable telemetry-only mode (project_id now optional)
  - Implement distributed tracing with W3C trace context propagation
  - Add TelemetryManager for coordinating multiple exporters
  - Support parallel export to multiple telemetry backends
  - Add requests dependency for HTTP-based exporters
@kashishhora kashishhora added the enhancement New feature or request label Aug 20, 2025
@kashishhora kashishhora requested a review from naji247 August 20, 2025 18:35
@kashishhora kashishhora merged commit 7c5de5c into main Aug 20, 2025
27 of 28 checks passed
@kashishhora kashishhora deleted the telemetry branch August 20, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants