-
Notifications
You must be signed in to change notification settings - Fork 576
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
config: NewSDK can return valid TracerProvider #4741
config: NewSDK can return valid TracerProvider #4741
Conversation
This PR is another attempt at filling in the SDK details for NewSDK. It breaks the open-telemetry#4617 per signal to make it more manageable to review. Part of open-telemetry#4371 Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4741 +/- ##
=======================================
+ Coverage 81.1% 81.2% +0.1%
=======================================
Files 150 150
Lines 10753 10900 +147
=======================================
+ Hits 8725 8858 +133
- Misses 1872 1882 +10
- Partials 156 160 +4
|
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.
Side note: I have not managed to find time to make a complete review, but I think it is worth to give some feedback.
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
555d28d
to
f8c02e9
Compare
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Follow up to open-telemetry#4741, does the same but for metric signal. Fixes open-telemetry#4371 Signed-off-by: Alex Boten <aboten@lightstep.com>
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.
I just have one comment before merging.
func newResource(res *Resource) (*resource.Resource, error) { | ||
if res == nil { | ||
return resource.Default(), nil | ||
} | ||
return resource.Merge(resource.Default(), | ||
resource.NewWithAttributes(semconv.SchemaURL, | ||
semconv.ServiceName(*res.Attributes.ServiceName), | ||
)) |
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.
How about moving to resource.go
and adding tests in resource_test.go
?
Can we do it in a separate PR?
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.
Sure, I'll move this next before the meter provider PR
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.
I created #4821
Follow up to open-telemetry#4741, does the same but for metric signal. Fixes open-telemetry#4371 Signed-off-by: Alex Boten <aboten@lightstep.com>
Follow up to open-telemetry#4741, does the same but for metric signal. Fixes open-telemetry#4371 Signed-off-by: Alex Boten <aboten@lightstep.com>
Follow up to open-telemetry#4741, does the same but for metric signal. Fixes open-telemetry#4371 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Follow up to open-telemetry#4741, does the same but for metric signal. Fixes open-telemetry#4371 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Follow up to open-telemetry#4741, does the same but for metric signal. Fixes open-telemetry#4371 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
This PR is another attempt at filling in the SDK details for NewSDK. It breaks the #4617 per signal to make it more manageable to review.
Part of #4371