You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Allows a fine grain control over span creation for a Instrumenter.
Describe the solution you'd like
... private final Predicate<Instrumenter> enabled;
...
...
public boolean shouldStart(Context parentContext, REQUEST request) {
if (!enabled.test(this)) {
return false;
}
...
Or
... private final Supplier<Boolean> enabled;
...
...
public boolean shouldStart(Context parentContext, REQUEST request) {
if (!enabled.get()) {
return false;
}
...
Describe alternatives you've considered
I could not find any other way to enable or disable Instrumenter span creation on th fly. If there is such a mecanism this feature request would not be necessary.