Skip to content

Commit f8179e4

Browse files
committed
Allow digit as first chr in vendor specific trace state key
1 parent 12b4d6a commit f8179e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-api/src/opentelemetry/trace/propagation/tracecontexthttptextformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
_KEY_WITHOUT_VENDOR_FORMAT = r"[a-z][_0-9a-z\-\*\/]{0,255}"
3535
_KEY_WITH_VENDOR_FORMAT = (
36-
r"[a-z][_0-9a-z\-\*\/]{0,240}@[a-z][_0-9a-z\-\*\/]{0,13}"
36+
r"[a-z0-9][_0-9a-z\-\*\/]{0,240}@[a-z][_0-9a-z\-\*\/]{0,13}"
3737
)
3838

3939
_KEY_FORMAT = _KEY_WITHOUT_VENDOR_FORMAT + "|" + _KEY_WITH_VENDOR_FORMAT

0 commit comments

Comments
 (0)