I wrote a matcher like this one and it worked, filtered methods that are annotated with @WIthSpan
not(named("saveToHistory")) .and(not(isAnnotatedWith(named("io.opentelemetry.instrumentation.annotations.WithSpan")))
when I changed named to namedOneOf it stopped working and didn't filter methods that are annotated with @WIthSpan
I wrote a matcher like this one and it worked, filtered methods that are annotated with @WIthSpan
not(named("saveToHistory")) .and(not(isAnnotatedWith(named("io.opentelemetry.instrumentation.annotations.WithSpan")))
when I changed named to namedOneOf it stopped working and didn't filter methods that are annotated with @WIthSpan
not(named("saveToHistory")) .and(not(isAnnotatedWith(namedOneOf("io.opentelemetry.instrumentation.annotations.WithSpan")))