[FEATURE] Claude Code telemetry should follow OpenTelemetry GenAI Semantic Conventions for Anthropic

Resolved 💬 2 comments Opened Jun 30, 2026 by yanezza Closed Jul 4, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

The telemetry currently emitted by Claude Code appears to use proprietary attributes rather than the standard OpenTelemetry GenAI semantic conventions.

This creates several challenges:

  • Telemetry from Claude Code cannot be easily correlated with telemetry generated by other Anthropic integrations.
  • Observability platforms must implement custom mappings and parsers.
  • Dashboards and analytics cannot be reused across GenAI workloads.
  • Organizations using multiple Anthropic-based applications lose consistency in monitoring, troubleshooting, and cost analysis.

Proposed Solution

Claude Code should emit OpenTelemetry traces, spans, metrics, and attributes that follow the GenAI Semantic Conventions specification whenever possible.

Examples include standard attributes such as:

  • gen_ai.system
  • gen_ai.operation.name
  • gen_ai.request.model
  • gen_ai.response.model
  • gen_ai.usage.input_tokens
  • gen_ai.usage.output_tokens
  • gen_ai.request.temperature
  • server.address
  • error.type
  • ...

and any additional attributes defined by the Anthropic semantic convention specification.

Alternative Solutions

_No response_

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

Following the standard semantic conventions would provide several benefits:

  • Improved interoperability with OpenTelemetry tooling.
  • Easier integration with observability platforms.
  • Consistent dashboards and reporting across Anthropic SDKs, APIs, and Claude Code.
  • Reduced need for vendor-specific normalization logic.
  • Better support for enterprise observability use cases.
  • Future compatibility as the OpenTelemetry GenAI ecosystem continues to mature.

References

Thank you for considering this enhancement. Aligning Claude Code telemetry with OpenTelemetry GenAI semantic conventions would significantly improve interoperability and observability adoption across the ecosystem.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗