When using OpenTelemetry Java agent, we get many libraries auto instrumented.
It's possible to disable a library instrumentation with OTEL_INSTRUMENTATION_[NAME]_ENABLED
but this disables all sorts of instrumentation: metrics and traces for instance.
Is there a way to disable a library instrumentation for only for some "scope" like only disable metrics but keep traces?
Or is the only way out of this to implement some filtering later (in OpenTelemetry collector for instance if using it)?
The concrete use case for this is that I'm using Akka HTTP in my application and I do want to collect its traces, but I really don't care about its metrics (there's a label with the route which makes it have a huge cardinality moreover).