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

Support of 'otel.instrumentation.methods.include' in declarative configuration #164

Open
dvisigalli opened this issue Jan 23, 2025 · 0 comments

Comments

@dvisigalli
Copy link

I'm trying Opentelemetry Java Agent new declarative configuration, which is great because supports env substitution.
I wonder if there is a way to configure an equivalent of the property 'otel.instrumentation.methods.include'.

I tryed something like this:

instrumentation:
__java:
____methods:
______enabled: true
______include: package.Class[method1,method2]

but it seems is not having any effect

How can i know which specific java instrumentation options are configurable/supported in the new declarative way, and which are not?

Also, can you confirm that it is in no way possible to override the declarative configuration using java properties or environment variables?
And if is not possibile, why this choice?
Thanks!

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

No branches or pull requests

1 participant