-
Notifications
You must be signed in to change notification settings - Fork 784
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
Support Status and StatusDescription from Activity class #2569
Comments
This issue is closed but in the version of OpenTelemetry 1.0.0-beta2 call of the method SetStatus, doesn't propagate tag otel.status_code to ERROR. I am using it in the .net 6.0 project. |
This issue is not fixed, and this issue is, hence, not closed. |
Meeting notes from 2/8/2022 SIG meeting: The pros of supporting setting status with native Status in all the Exporters are:
|
Closing as this is completed as of 1.2.0-rc4. |
Starting version 6.0.0 in System.Diagnostic.DiagnosticSource, there are two new properties added to Activity class - Status and StatusDescription.
With this change in Activity class there are 3 possible ways status can be set on Activity:
Goal
Support new changes in exporters while maintaining backward compatibility.
Proposal
Status
andStatusDescription
on activity using tagsotel.status_code
andotel.status_description
respectively in SDK. This can be done inOnEnd()
call ofBaseExportProcessor
. The feature will be turned on by default and can be disabled using a switch. Users already migrated to new Api will be recommended to turn off this feature.Status
andStatusDescription
to export activity status details. As the feature noted in 2) is on by default, anyone using _activity.SetStatus(StatusCode) via ActivityExtensions or setting status tags directly will not be impacted.Status
andStatusDescription
.The text was updated successfully, but these errors were encountered: