-
Notifications
You must be signed in to change notification settings - Fork 873
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
Instrumenter instrumentation version and schema url #5752
Instrumenter instrumentation version and schema url #5752
Conversation
@@ -116,6 +116,17 @@ The `builder()` method accepts three arguments: | |||
An `Instrumenter` can be built from several smaller components. The following subsections describe | |||
all interfaces that can be used to customize an `Instrumenter`. | |||
|
|||
### Set the instrumentation version and OpenTelemetry schema URL |
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.
CC @theletterf - I've added a new section to the Instrumenter API doc, please take a look at this when you have a moment 🙏
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.
@mateuszrzeszutek Added some suggestions!
if (instrumentationVersion != null) { | ||
meterBuilder.setInstrumentationVersion(instrumentationVersion); | ||
} | ||
if (schemaUrl != null) { | ||
meterBuilder.setSchemaUrl(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.
👍
...api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java
Show resolved
Hide resolved
Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
3bf0fb2
to
39db85f
Compare
@@ -116,6 +116,33 @@ The `builder()` method accepts three arguments: | |||
An `Instrumenter` can be built from several smaller components. The following subsections describe | |||
all interfaces that can be used to customize an `Instrumenter`. | |||
|
|||
### Set the instrumentation version and OpenTelemetry schema URL | |||
|
|||
Make sure you always provide the instrumentation library version to the `Instrumenter`. You can do |
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.
@theletterf I've added a few more paragraphs, it'd be great if you could proofread them too 🙏
260a4a1
to
b07ec24
Compare
Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
) * Instrumenter instrumentation version and schema url * nullable instrumentation version * Apply suggestions from code review Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]> * reformat * code review comments * instrumentation properties files * Apply suggestions from code review Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]> * code review comments * Apply suggestions from code review Co-authored-by: Trask Stalnaker <[email protected]> Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]> Co-authored-by: Trask Stalnaker <[email protected]>
Resolves #4333