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

RuntimeError: Requested component 'otlp_span' not found in entry points for 'opentelemetry_exporter' #1466

Closed
sanderland opened this issue Dec 11, 2020 · 8 comments
Labels
backlog bug Something isn't working

Comments

@sanderland
Copy link

Describe your environment
Python 3.7, poetry virtrual environment

Steps to reproduce
My dependencies include

opentelemetry-instrumentation = "^0.16b1"
opentelemetry-instrumentation-botocore = ">=0.11b0"
opentelemetry-instrumentation-fastapi = ">=0.11b0"
opentelemetry-instrumentation-flask = ">=0.8b0"
opentelemetry-instrumentation-grpc = ">=0.8b0"
opentelemetry-instrumentation-jinja2 = ">=0.8b0"
opentelemetry-instrumentation-psycopg2 = ">=0.8b0"
opentelemetry-instrumentation-requests = ">=0.8b0"
opentelemetry-instrumentation-sqlalchemy = ">=0.8b0"
opentelemetry-instrumentation-sqlite3 = ">=0.11b0"
opentelemetry-instrumentation-starlette = ">=0.11b0"
opentelemetry-api = "^0.16b1"
opentelemetry-sdk = "^0.16b1"

and then run

opentelemetry-instrument python3 src/app.py
in the poetry virtual environment.

What is the actual behavior?
I get the error:

Failed to auto initialize opentelemetry
Traceback (most recent call last):
  File "....venv/lib/python3.7/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 40, in initialize
    initialize_components()
  File "...venv/lib/python3.7/site-packages/opentelemetry/instrumentation/auto_instrumentation/components.py", line 155, in initialize_components
    trace_exporters, metric_exporters = import_exporters(exporter_names)
  File "...venv/lib/python3.7/site-packages/opentelemetry/instrumentation/auto_instrumentation/components.py", line 124, in import_exporters
    exporter_names, "opentelemetry_exporter"
  File "/...venv/lib/python3.7/site-packages/opentelemetry/instrumentation/auto_instrumentation/components.py", line 105, in import_tracer_provider_config_components
    selected_component, entry_point_name
RuntimeError: Requested component 'otlp_span' not found in entry points for 'opentelemetry_exporter'

Additional context
I've searched for otlp or otlp_span packages, but it seems this should just be part of opentelemetry.

@sanderland sanderland added the bug Something isn't working label Dec 11, 2020
@codeboten
Copy link
Contributor

Thanks for raising this issue @sanderland, the entrypoint exists in the package opentelemetry-exporter-otlp which isn't a dependency of the opentelemetry-instrumentation package. There's an issue to decouple the instrumentation from having additional dependencies which will address this issue: #1420

@codeboten
Copy link
Contributor

I should have said that as a workaround you can use the -e none flag when running opentelemetry-instrument to not use the default (OTLP) exporter

@sanderland
Copy link
Author

Thanks for raising this issue @sanderland, the entrypoint exists in the package opentelemetry-exporter-otlp which isn't a dependency of the opentelemetry-instrumentation package. There's an issue to decouple the instrumentation from having additional dependencies which will address this issue: #1420

Thanks for getting back to me so quickly. There's probably some improvements to be made to the tutorial and/or error messages.
After checking with colleagues I am going with setting up tracking in the source code instead, since opentelemetry-instrument and uwsgi don't seem to like each other very much.

@github-actions
Copy link

github-actions bot commented Apr 9, 2021

This issue was marked stale due to lack of activity. It will be closed in 30 days.

@lzchen
Copy link
Contributor

lzchen commented May 3, 2021

This issue is resolved.

@lzchen lzchen closed this as completed May 3, 2021
@anirudhbagri
Copy link

I am getting the same error for zipkin!

RuntimeError: Requested component 'zipkin' not found in entry points for 'opentelemetry_exporter

@srikanthccv
Copy link
Member

There is no zipkin entry point. It should be either zipkin_json or zipkin_proto.

@anirudhbagri
Copy link

anirudhbagri commented Aug 16, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants