-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use auto-instrumentation SDK in global tracing #5920
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MrAlias
force-pushed
the
global-auto-sdk
branch
from
October 25, 2024 00:05
a684c84
to
38fc53a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5920 +/- ##
=======================================
- Coverage 84.6% 82.1% -2.6%
=======================================
Files 272 273 +1
Lines 22883 23615 +732
=======================================
+ Hits 19381 19397 +16
- Misses 3157 3873 +716
Partials 345 345
|
MrAlias
force-pushed
the
global-auto-sdk
branch
from
October 25, 2024 14:28
714c8a2
to
38ddafd
Compare
When the auto-instrumentation attaches to a process using the global TracerProvider, and there has not been a delegate set, create a span from the go.opentelemetry.io/auto/sdk package so the OTel Go auto-instrumentation can instrument the application by default.
MrAlias
force-pushed
the
global-auto-sdk
branch
from
October 25, 2024 14:52
3e39369
to
85a116d
Compare
MrAlias
requested review from
XSAM,
dashpole,
pellared and
dmathieu
as code owners
October 25, 2024 14:59
dashpole
reviewed
Oct 25, 2024
MrAlias
force-pushed
the
global-auto-sdk
branch
from
October 25, 2024 15:29
155c165
to
85a116d
Compare
dashpole
approved these changes
Oct 25, 2024
pellared
reviewed
Oct 28, 2024
pellared
reviewed
Oct 28, 2024
Do not allow use of auto/sdk outside of global pkg.
dmathieu
approved these changes
Oct 29, 2024
pellared
reviewed
Oct 29, 2024
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.
Discussed offline with @MrAlias.
We think that before merging this it would be good to:
- rename
sdk.GetTracerProvider
tosdk.TracerProvider
; reason: https://go.dev/doc/effective_go#Getters - make a
v1
release ofgo.opentelemetry.io/auto/sdk
XSAM
approved these changes
Oct 29, 2024
XSAM
reviewed
Oct 29, 2024
MrAlias
commented
Nov 21, 2024
pellared
approved these changes
Nov 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When the auto-instrumentation attaches to a process using the global TracerProvider, and there has not been a delegate set, create a span from the go.opentelemetry.io/auto/sdk package so the OTel Go auto-instrumentation can instrument the application by default.
Resolve #5702
Benchmarks