-
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
How to disable multiple annotations? #10722
Comments
If you don't specify the method name it will exclude all methods in the given class. |
it doesnt: neither of these work |
I tested it and indeed you are correct, currently there doesn't seem to be a way to exclude all methods from a class without listing the methods. I'll create a PR to address this. |
It is more of a question
With this environment variable OTEL_INSTRUMENTATION_OPENTELEMETRY_INSTRUMENTATION_ANNOTATIONS_EXCLUDE_METHODS
how to exclude all methods in a class or package?
The documentation says is must be in a format like
my.package.MyClass1[method1,method2];my.package.MyClass2[method3]
But wildcarding doesnt work.Nor listing only package level.
If I really have to write out all the method names then this envvar pretty useless in case of numerous withspan annotations
The text was updated successfully, but these errors were encountered: