Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken launcher due to environs dependency #157

Open
mohabusama opened this issue Jan 21, 2025 · 0 comments
Open

Broken launcher due to environs dependency #157

mohabusama opened this issue Jan 21, 2025 · 0 comments

Comments

@mohabusama
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant