-
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
Add schema URL support to Tracer #1889
Add schema URL support to Tracer #1889
Conversation
@Aneurysm9 @MrAlias I am looking for your feedback to understand if this is the right direction. |
Codecov Report
@@ Coverage Diff @@
## main #1889 +/- ##
=====================================
Coverage 79.6% 79.7%
=====================================
Files 141 141
Lines 7486 7492 +6
=====================================
+ Hits 5964 5973 +9
+ Misses 1273 1271 -2
+ Partials 249 248 -1
|
25bd614
to
52c430c
Compare
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.
This looks good to me. Suggestions are nit-picks.
52c430c
to
3555297
Compare
This adds support for schema URL to the Tracer according to the specification: open-telemetry/opentelemetry-specification#1666 (Link to replaced by the link to the spec after that PR is merged) For the future: once the proto is updated we will need to populate the schema_url field in the messages.
3555297
to
faa7c69
Compare
} | ||
|
||
// InstrumentationVersion returns the version of the library providing instrumentation. | ||
func (t *TracerConfig) InstrumentationVersion() string { | ||
return t.instrumentationVersion | ||
} | ||
|
||
// SchemaURL returns the Schema URL of the telemetry emitted by the Tracer. | ||
func (t *TracerConfig) SchemaURL() string { | ||
return t.schemaURL |
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.
This is covered by TestSchemaURL
, not sure why codecov says it is not.
@MrAlias @Aneurysm9 this is ready for review. |
The support was added in this PR open-telemetry/opentelemetry-go#1889
The support was added in this PR open-telemetry/opentelemetry-go#1889
This adds support for schema URL to the Tracer according to the specification:
open-telemetry/opentelemetry-specification#1666
(Link to replaced by the link to the spec after that PR is merged)
For the future: once the proto is updated we will need to populate the
schema_url field in the messages.