OpenTelemetry metrics can now optionally tag data with the project's git repository and provider details.
When the OTEL_METRICS_INCLUDE_REPOSITORY setting is enabled, Claude Code now parses the project's git remote URL and attaches repository details to its OpenTelemetry (an open standard for exporting logs, metrics and traces) metrics: vcs.repository.url.full, vcs.repository.name, vcs.owner.name, vcs.provider.name, and vcs.ref.head.revision/name/type. It recognizes GitHub, GitLab, Bitbucket (including self-hosted Bitbucket Server "scm" URLs and the SSH port 7999 form), and Gitea-style remote URLs.
Teams that export Claude Code's metrics to an observability backend can now break them down by repository, owner and provider without adding this tagging themselves.
Added OTEL_METRICS_INCLUDE_REPOSITORY to tag OpenTelemetry metrics and events with vcs. repository attributes; commit events get…