-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix(issue#25182): eventhubs processor client start span independently #26157
Conversation
…am with opentelemetry is not enable
fix #25182 |
* add requirement.txt for python * use common mvn build * update readme if available
…am with opentelemetry is not enable
…/azure-sdk-for-java into fix/eventhubs-telemetry-issue
return Context.NONE; | ||
} | ||
|
||
Context spanContext = tracerProvider.extractContext(diagnosticId.toString(), Context.NONE) | ||
Context spanContext = Objects.isNull(diagnosticId) ? Context.NONE : tracerProvider.extractContext(diagnosticId.toString(), Context.NONE); | ||
spanContext = spanContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this diagnosticId.toString()
result in an NPE when diagnosticId is null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this
diagnosticId.toString()
result in an NPE when diagnosticId is null?
the former code check diagnosticId before call the toStirng() method. The new code use Objects.IsNull() to check diagnosticId. BTW this PR is closed. And here is the new opened PR #26180
processor can start span if events come from upstream with opentelemetry is not enable
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines