newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
196 stars 139 forks source link

Equivalent to OTEL `@WithSpan` annotation #1516

Open JesseLaughlin opened 9 months ago

JesseLaughlin commented 9 months ago

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

workato-integration[bot] commented 9 months ago

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

jtduffy commented 8 months ago

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

workato-integration[bot] commented 8 months ago

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