<@U01NT95GV8B> ```WARNING: Published ports are dis...
# support
a
@Srikanth Chekuri
Copy code
WARNING: Published ports are discarded when using host network mode
ERROR:opentelemetry.launcher.configuration:Invalid configuration: token missing. Must be set to send data to <https://ingest.lightstep.com:443>.Set environment variable LS_ACCESS_TOKEN
ERROR:opentelemetry.launcher.configuration:application instrumented via opentelemetry-instrument. all required configuration must be set via environment variables
Traceback (most recent call last):
  File "/opt/venv/lib/python3.9/site-packages/opentelemetry/launcher/configuration.py", line 383, in _configure
    configure_opentelemetry(_auto_instrumented=True)
  File "/opt/venv/lib/python3.9/site-packages/opentelemetry/launcher/configuration.py", line 237, in configure_opentelemetry
    raise InvalidConfigurationError(message)
opentelemetry.launcher.configuration.InvalidConfigurationError: Invalid configuration: token missing. Must be set to send data to <https://ingest.lightstep.com:443>.Set environment variable LS_ACCESS_TOKEN
This is a harmless log but I wanted to know why is it happening? I have not used configure_opentelemetry in my code anywhere
s
It gets called automatically as long as the package is installed because the
Distro.configure
is called for all possible distros discovered in the env. Please uninstall/remove the Lightstep launcher from requirements and let me know if that solves the issue.
a
Which one should be removed amongst these
Copy code
opentelemetry-distro==0.34b0
opentelemetry-exporter-otlp==1.13.0
opentelemetry-launcher==1.9.0
RUN opentelemetry-bootstrap --action=install
s
Copy code
opentelemetry-launcher==1.9.0