Skip to content

Broken launcher due to environs dependency #157

@mohabusama

Description

@mohabusama

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions