-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing instrumentation library name and version information to exporters starting .NET7.0 #3445
Comments
@vishweshbankwar I'm not totally following. .NET7 Activity (AspNetCore) should be started through a source: What will happen in that case is Activity.Source will be set automatically: So these spans should always have Source.Name available but may be missing Source.Version. Is that what you meant? |
@CodeBlanch - Currently, we attach ActivitySource to the activity in instrumentation library. The name and version on ActivitySource matches the name and version of instrumentation library as per spec. However, in .NET7.0 onwards we will not continue to do so and the ActivitySource information on activities updated by instrumentation library will not have any information about them. @alanwest also brought up a point about Have updated the issue to clarify further. |
Since HttpClient creates the activity, their name will appear as the name and version. |
I'd characterize the OTel instrumentation as more than just "enriching" it. It's the component that conforms the activity with the HTTP semantic conventions. From this standpoint, it's the name, version, and ultimately schema url provided by the instrumentation library that is more interesting. Albeit maybe not very interesting yet today. In the long run, my understanding is that the schema url will enable backends to translate between different schema versions. Of course, without a stable schema this issue is not exactly pressing today. The reason I think we should keep this issue open is that we should consider how we plan to support schema url if it will always be the instrumentation libraries from this repo that control the schema used. |
Yea I agree this is an issue. If a user changes some of the tags themselves, then the "schema_url" could no longer be valid. So anyone modifying a span, should be allowed to update the schema_url/name/version ? |
This issue was marked stale due to lack of activity and will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. This bot runs once per day. |
Closed as inactive. Feel free to reopen if this issue is still a concern. |
Starting
.NET7.0
ASP.NET Core and HttpClient libraries will create activities usingActivitySource
. However, utilizing this feature will result in loss of information about the instrumentation library and version on theActivitySource
of exported activities as that is currently being done in instrumentation library ASP.NET Core and HttpClient. We will need a mechanism to send the instrumentation library and version information to exporter.Opening this issue for discussing alternatives/solutions.
The text was updated successfully, but these errors were encountered: