Skip to content

Commit 35734b8

Browse files
committed
fix: change schema
1 parent 123e334 commit 35734b8

File tree

1 file changed

+2
-1
lines changed
  • opentelemetry-instrumentation/src/opentelemetry/instrumentation

1 file changed

+2
-1
lines changed

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_semconv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from opentelemetry.semconv.attributes.user_agent_attributes import (
6363
USER_AGENT_ORIGINAL,
6464
)
65+
from opentelemetry.semconv.schemas import Schemas
6566
from opentelemetry.trace.status import Status, StatusCode
6667

6768
# Values defined in milliseconds
@@ -483,4 +484,4 @@ def _set_status(
483484
def _get_schema_url(mode: _StabilityMode) -> str:
484485
if mode is _StabilityMode.DEFAULT:
485486
return "https://opentelemetry.io/schemas/1.11.0"
486-
return "https://opentelemetry.io/schemas/1.21.0"
487+
return Schemas.V1_21_0.value

0 commit comments

Comments
 (0)