Skip to content

Align OTel names with general conventions. - #126451

Merged
cincuranet merged 2 commits into
dotnet:mainfrom
cincuranet:fix-memorycache-otel-names
Apr 3, 2026
Merged

Align OTel names with general conventions.#126451
cincuranet merged 2 commits into
dotnet:mainfrom
cincuranet:fix-memorycache-otel-names

Conversation

@cincuranet

@cincuranet cincuranet commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Follow up for #126146.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-caching
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Microsoft.Extensions.Caching.Memory MemoryCache OpenTelemetry metric and attribute (tag) names to follow a dotnet.cache.* naming convention.

Changes:

  • Renamed cache metric instrument names (e.g., cache.requestsdotnet.cache.requests).
  • Renamed metric tag keys (e.g., cache.name / cache.request.typedotnet.cache.name / dotnet.cache.request.type).
  • Adjusted several metric unit strings (plural → singular).

@karelz
karelz marked this pull request as ready for review April 2, 2026 17:01
Copilot AI review requested due to automatic review settings April 2, 2026 17:01
@karelz
karelz marked this pull request as draft April 2, 2026 17:05

This comment was marked as low quality.

@karelz karelz added this to the 11.0.0 milestone Apr 3, 2026
@cincuranet
cincuranet marked this pull request as ready for review April 3, 2026 14:27
@cincuranet
cincuranet enabled auto-merge (squash) April 3, 2026 14:28
@cincuranet

Copy link
Copy Markdown
Contributor Author

/ba-g unrelated

@martincostello

Copy link
Copy Markdown
Member

Would be good to get this documented in the Semantic Conventions for .NET.

@cincuranet

Copy link
Copy Markdown
Contributor Author

Yes. I'm planning to do it.

radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Apr 9, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
@cincuranet

Copy link
Copy Markdown
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants