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

Change all instrumentation names to io.opentelemetry.{libName}-{libVersion} #3411

Merged

Conversation

mateuszrzeszutek
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek commented Jun 25, 2021

Resolves #1436

@@ -54,6 +54,6 @@ protected String dbOperation(Void connection, String operation, String ignored)

@Override
protected String getInstrumentationName() {
return "io.opentelemetry.javaagent.elasticsearch-rest-common";
return "io.opentelemetry.elasticsearch-rest-common";
Copy link
Member Author

Choose a reason for hiding this comment

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

We have a few of those "common" tracers -- I'm hoping that once we migrate to the Instrumenter API everywhere those common modules will just contain shared extractor code, and each instrumentation module will construct their instrumenter separately and give it a separate name that'll contain a proper version.

private static final String INSTRUMENTATION_NAME = "io.opentelemetry.javaagent.jedis-1.4";
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.lettuce-4.0";
Copy link
Member Author

Choose a reason for hiding this comment

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

I guess it was good to go over all those names just to catch copy-paste mistakes like this one 😄

* instrumentation library so that during troubleshooting it's possible to pinpoint what tracer
* produced problematic telemetry.
*
* <p>In this project we use a convention to encode the version of the instrument*ed* library into
Copy link
Member

Choose a reason for hiding this comment

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

version -> base version (or similar)

Copy link
Member Author

Choose a reason for hiding this comment

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

Used "minimum supported" - it's a bit longer but also clearer than "base" version

@mateuszrzeszutek mateuszrzeszutek merged commit 15ed01d into open-telemetry:main Jun 30, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the instrumentation-names branch June 30, 2021 13:34
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.

Instrumentation names for javaagent vs library instrumentation
5 participants