Skip to content

Commit ad3c9ac

Browse files
Added comment
1 parent cfbca64 commit ad3c9ac

File tree

1 file changed

+5
-0
lines changed
  • internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package datadog.trace.bootstrap.instrumentation.api;
22

3+
/**
4+
* Interface implemented by span wrappers such as OpenTelemetry and OpenTracing spans.
5+
* Provides a callback that is invoked when the underlying span is finished.
6+
* This guarantees that wrapper specific logic runs when spans are auto-finished.
7+
*/
38
public interface SpanWrapper {
49
default void onSpanFinished() {}
510
}

0 commit comments

Comments
 (0)