Skip to content

Commit

Permalink
Implement thread.id and thread.name semantic attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszrzeszutek committed Aug 19, 2020
1 parent 2659726 commit 59a4c21
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,11 @@ public final class SemanticAttributes {
public static final StringAttributeSetter EXCEPTION_STACKTRACE =
StringAttributeSetter.create("exception.stacktrace");

/** Id of the thread that has started a span, as produced by {@link Thread#getId()}. */
public static final LongAttributeSetter THREAD_ID = LongAttributeSetter.create("thread.id");
/** Name of the thread that has started a span, as produced by {@link Thread#getName()}. */
public static final StringAttributeSetter THREAD_NAME =
StringAttributeSetter.create("thread.name");

private SemanticAttributes() {}
}

0 comments on commit 59a4c21

Please sign in to comment.