Skip to content

Commit b765b79

Browse files
committed
feat(profiling): add execution thread API to ProfilerContext
1 parent cbe182d commit b765b79

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/ProfilerContext.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,14 @@ public interface ProfilerContext {
2121
int getEncodedResourceName();
2222

2323
CharSequence getResourceName();
24+
25+
/** Java thread ID of the thread that finished this span (captured at span finish time). */
26+
default long getExecutionThreadId() {
27+
return 0;
28+
}
29+
30+
/** Name of the thread that finished this span (captured at span finish time). */
31+
default String getExecutionThreadName() {
32+
return "";
33+
}
2434
}

0 commit comments

Comments
 (0)