You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "repro.py", line 8, in <module>
propagator.extract(getter, {})
File "(...)/opentelemetry-python-contrib/propagator/opentelemetry-propagator-ot-trace/src/opentelemetry/propagators/ot_trace/__init__.py", line 76, in extract
and _valid_extract_traceid.fullmatch(traceid) is not None
TypeError: expected string or bytes-like object
What is the expected behavior?
Propagator extraction returns an unmodified context due to lack of relevant headers in the carrier.
If a value can not be parsed from the carrier, for a cross-cutting concern, the implementation MUST NOT throw an exception and MUST NOT store a new value in the Context, in order to preserve any previously existing valid value.
Describe your environment
Latest version (main branch) of both opentelemetry-python and opentelemetry-python-contrib
Steps to reproduce
results in:
What is the expected behavior?
Propagator extraction returns an unmodified context due to lack of relevant headers in the carrier.
from OTel specification
What is the actual behavior?
Propagator extraction fails with an exception when no headers are present in the carrier.
Additional context
N/A
The text was updated successfully, but these errors were encountered: