File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
dd-trace-core/src/main/java/datadog/trace/core/scopemanager
src/main/java/datadog/trace/bootstrap/instrumentation/api Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ public AgentSpan span() {
122122 return AgentSpan .fromContext (context );
123123 }
124124
125+ @ Override
126+ public Context context () {
127+ return context ;
128+ }
129+
125130 @ Override
126131 public String toString () {
127132 return getClass ().getSimpleName () + "@" + Integer .toHexString (hashCode ()) + "->" + context ;
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ val excludedClassesCoverage by extra(
8484 " datadog.trace.bootstrap.instrumentation.api.AgentPropagation" ,
8585 " datadog.trace.bootstrap.instrumentation.api.AgentPropagation.ContextVisitor" ,
8686 " datadog.trace.bootstrap.instrumentation.api.AgentScope" ,
87+ " datadog.trace.bootstrap.instrumentation.api.AgentScope.Continuation" ,
8788 " datadog.trace.bootstrap.instrumentation.api.AgentSpan" ,
8889 " datadog.trace.bootstrap.instrumentation.api.AgentSpanContext" ,
8990 " datadog.trace.bootstrap.instrumentation.api.AgentTracer" ,
Original file line number Diff line number Diff line change @@ -25,5 +25,10 @@ interface Continuation extends TraceScope.Continuation {
2525
2626 /** Provide access to the captured span */
2727 AgentSpan span ();
28+
29+ /** Provide access to the captured context */
30+ default Context context () {
31+ return span ();
32+ }
2833 }
2934}
You can’t perform that action at this time.
0 commit comments