otel-launcher-python
otel-launcher-python copied to clipboard
Broken launcher due to environs dependency
Describe the bug
TL;DR: otel launcher was failing, and pinning environs==12.0.0 fixed the issue.
calling configure_opentelemetry is broken and caused an exception.
Failure to instantiate propagators
ERROR:opentelemetry.launcher.configuration:Unable to instantiate propagator b
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/opentelemetry/launcher/configuration.py", line 327, in configure_opentelemetry
propagator_instance = next(
StopIteration
ERROR:opentelemetry.launcher.configuration:Unable to instantiate propagator 3
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/opentelemetry/launcher/configuration.py", line 327, in configure_opentelemetry
propagator_instance = next(
StopIteration
...
main failure caused by AttributeError exception regarding resource_attributes
File "/usr/local/lib/python3.10/site-packages/opentelemetry/launcher/configuration.py", line 365, in configure_opentelemetry
if _ATTRIBUTE_HOST_NAME not in resource_attributes.keys() or not (
AttributeError: 'str' object has no attribute 'keys'
To Reproduce
Latest environs seems like it introduced either a bug or a breaking change.
Expected behavior Launcher to not fail.
Additional context May be a stricter version requirement here would be safer. note: haven't tested with version 13.x.x