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

Move rest of non-specd attributes to experimental #2402

Merged

Conversation

trask
Copy link
Member

@trask trask commented Feb 24, 2021

Almost completes #1874, except for aws-sdk-2.2, because we don't have solution for Config.get() in library instrumentation yet.

Comment on lines 42 to 45
private static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES =
Config.get()
.getBooleanProperty(
"otel.instrumentation.apache-camel.experimental-span-attributes", false);
Copy link
Member

Choose a reason for hiding this comment

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

Hm, can you use the constant from BaseSpanDecorator if you make it protected?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 will make this change (in this PR) tomorrow

@mateuszrzeszutek
Copy link
Member

@trask what's the problem with calling Config.get() in library instrumentations?

@trask
Copy link
Member Author

trask commented Feb 26, 2021

@trask what's the problem with calling Config.get() in library instrumentations?

Config.get() will return the default (empty) config for library instrumentation users

A couple possible solutions would be to init the default config with system properties for library instrumentation users, or to have an instrumentation-specific configuration API that library users (and the javaagent) can use to configure it.

@trask trask merged commit 03bfaee into open-telemetry:main Feb 27, 2021
@trask trask deleted the move-rest-non-specd-attrs-to-experimental branch February 27, 2021 04:50
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.

None yet

4 participants