newrelic-java-agent icon indicating copy to clipboard operation
newrelic-java-agent copied to clipboard

Equivalent to OTEL `@WithSpan` annotation

Open JesseLaughlin opened this issue 2 years ago • 3 comments

There is an annotation in the OTEL agent called @WithSpan that can allows developers to specify which method traces should generate Span events.

https://opentelemetry.io/docs/instrumentation/java/automatic/annotations/

This customer is looking to suppress the creation of Span events for specific method traces.

https://forum.newrelic.com/s/hubtopic/aAX8W000000PHYEWA4/control-over-span-creation

They would like us to implement an equivalent annotation.

Really Want

JesseLaughlin avatar Sep 23 '23 00:09 JesseLaughlin

https://issues.newrelic.com/browse/NR-163827

This issue would be used to address the problem where excludeFromTransactionTrace does not exclude the target method from traces derived from distributed traces.

jtduffy avatar Oct 13 '23 18:10 jtduffy

https://new-relic.atlassian.net/browse/NR-163827

This issue won't be actioned.