-
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
Create resource.Default() with required attributes/default values #1507
Conversation
Add metric controller and tracer provider tests for resources
Codecov Report
@@ Coverage Diff @@
## main #1507 +/- ##
=======================================
- Coverage 77.7% 77.7% -0.1%
=======================================
Files 127 127
Lines 6683 6697 +14
=======================================
+ Hits 5195 5205 +10
- Misses 1244 1246 +2
- Partials 244 246 +2
|
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.
LGTM
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.
Looks good 👍, one question about the error reporting.
+ some small CHANGELOG PR addition, rewording + change default resource servicename to `unknown_service:go` (this matches the Java codebase which uses `unknown_service:java`)
…en-telemetry#1507) * Create resource.Default() with required attributes/default values Add metric controller and tracer provider tests for resources * Updated CHANGELOG * PR comments + some small CHANGELOG PR addition, rewording + change default resource servicename to `unknown_service:go` (this matches the Java codebase which uses `unknown_service:java`)
As per changes to the OpenTelemetry spec open-telemetry/opentelemetry-specification#1294, this PR makes available a "default" Resource. If a metric or trace provider does not explicitly have a Resource assigned to it using
WithResource()
when creating the metric controller or the trace provider, the default Resource is used instead.Resolves #1391