dotnet / dotnet/aspnetcore

Populate OTel Schema URL on Activity Sources and Meters

Open
#60,729 7 comments 3 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

OTel telemetry should have schema source and version associated with it. It helps to validate, transform, evolve, and query telemetry data. See https://github.com/dotnet/runtime/issues/63651#issuecomment-2608691490 for the context

### Describe the solution you'd like

SchemaURL support is being introduced in .NET 10 - https://github.com/dotnet/runtime/pull/113034, we should set it on ActivitySources and Meters created by ASP.NET Core, SignalR, RateLimiting, etc (see [all sources](https://github.com/search?q=repo%3Adotnet%2Faspnetcore+%22new+ActivitySource%22+NOT+path%3Atest&type=code) and [meters](https://github.com/search?q=repo%3Adotnet%2Faspnetcore+%22MeterFactory.create%22+NOT+path%3Atest&type=code), probably also [this meter](https://github.com/search?q=repo%3Adotnet%2Faspnetcore+%22new+Meter%22+NOT+path%3Atest&type=code))

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.