Skip to content
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

Conversation

mateuszrzeszutek
Copy link
Member

Resolves #4333

@mateuszrzeszutek mateuszrzeszutek requested a review from a team April 5, 2022 14:11
@@ -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
Copy link
Member Author

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 🙏

Copy link
Member

@theletterf theletterf left a 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!

docs/contributing/using-instrumenter-api.md Outdated Show resolved Hide resolved
docs/contributing/using-instrumenter-api.md Outdated Show resolved Hide resolved
Comment on lines +307 to +331
if (instrumentationVersion != null) {
meterBuilder.setInstrumentationVersion(instrumentationVersion);
}
if (schemaUrl != null) {
meterBuilder.setSchemaUrl(schemaUrl);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

docs/contributing/using-instrumenter-api.md Outdated Show resolved Hide resolved
@mateuszrzeszutek mateuszrzeszutek force-pushed the instrumentation-version-schema branch from 3bf0fb2 to 39db85f Compare April 6, 2022 07:00
@@ -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
Copy link
Member Author

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 🙏

@mateuszrzeszutek mateuszrzeszutek force-pushed the instrumentation-version-schema branch from 260a4a1 to b07ec24 Compare April 7, 2022 11:36
docs/contributing/using-instrumenter-api.md Outdated Show resolved Hide resolved
docs/contributing/using-instrumenter-api.md Outdated Show resolved Hide resolved
docs/contributing/using-instrumenter-api.md Outdated Show resolved Hide resolved
Mateusz Rzeszutek and others added 2 commits April 7, 2022 17:43
Co-authored-by: Trask Stalnaker <[email protected]>
@mateuszrzeszutek mateuszrzeszutek merged commit 2ce1162 into open-telemetry:main Apr 11, 2022
@mateuszrzeszutek mateuszrzeszutek deleted the instrumentation-version-schema branch April 11, 2022 08:30
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
)

* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instrumenter instrumentation version and schema url
3 participants