Skip to content

Commit

Permalink
Implement thread.id and thread.name semantic attributes (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek authored Aug 19, 2020
1 parent 750707b commit 3a8ed95
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 3a8ed95

Please sign in to comment.