From 8770884d49550cf92549b3d745fbf81ff0e83602 Mon Sep 17 00:00:00 2001 From: Mateusz Rzeszutek Date: Tue, 1 Dec 2020 11:49:58 +0100 Subject: [PATCH] Reference spec date --- .../api/trace/attributes/SemanticAttributes.java | 6 ++++++ buildscripts/semantic-convention/generate.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/io/opentelemetry/api/trace/attributes/SemanticAttributes.java b/api/src/main/java/io/opentelemetry/api/trace/attributes/SemanticAttributes.java index 0b6bf2f88ee..47c2a5f75ec 100644 --- a/api/src/main/java/io/opentelemetry/api/trace/attributes/SemanticAttributes.java +++ b/api/src/main/java/io/opentelemetry/api/trace/attributes/SemanticAttributes.java @@ -739,6 +739,12 @@ public final class SemanticAttributes { */ public static final AttributeKey ENDUSER_SCOPE = stringKey("enduser.scope"); + /** Current "managed" thread ID (as opposed to OS thread ID). */ + public static final AttributeKey THREAD_ID = longKey("thread.id"); + + /** Current thread name. */ + public static final AttributeKey THREAD_NAME = stringKey("thread.name"); + /** * The method or function name, or equivalent (usually rightmost part of the code unit's * name). diff --git a/buildscripts/semantic-convention/generate.sh b/buildscripts/semantic-convention/generate.sh index 64fa4485eae..9748b72f501 100755 --- a/buildscripts/semantic-convention/generate.sh +++ b/buildscripts/semantic-convention/generate.sh @@ -3,9 +3,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_DIR="${SCRIPT_DIR}/../../" # freeze the spec version to make SemanticAttributes generation reproducible -# this hash was obtained by calling `git rev-parse master` +# this hash was obtained by calling `git rev-parse master` on 1st Dec 2020 # we can't use a version tag here because otel-spec releases are very rare -SPEC_VERSION=d328331ce9dc6dec871b647b4e37a84b5396516e +SPEC_VERSION=181a1afdb201f1334fb032960bb1672cf5a0272f cd ${SCRIPT_DIR}