opentelemetry-python: Automatic instrumentation returns: unrecognized arguments: --trace-exporter
I’m running python3 following the steps on https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/auto-instrumentation and when I get to the auto-instrumentation part it says to run the following command:
$ opentelemetry-instrument --trace-exporter console_span python server_uninstrumented.py
and i get the following returned:
(auto_instrumentation) seanguillen@MacBook-Pro-3 auto-instrumentation % opentelemetry-instrument --trace-exporter console_span python server_uninstrumented.py usage: opentelemetry-instrument [-h] [–attribute_count_limit ATTRIBUTE_COUNT_LIMIT] [–attribute_value_length_limit ATTRIBUTE_VALUE_LENGTH_LIMIT] [–bsp_export_timeout BSP_EXPORT_TIMEOUT] [–bsp_max_export_batch_size BSP_MAX_EXPORT_BATCH_SIZE] [–bsp_max_queue_size BSP_MAX_QUEUE_SIZE] [–bsp_schedule_delay BSP_SCHEDULE_DELAY] [–event_attribute_count_limit EVENT_ATTRIBUTE_COUNT_LIMIT] [–exporter_jaeger_agent_host EXPORTER_JAEGER_AGENT_HOST] [–exporter_jaeger_agent_port EXPORTER_JAEGER_AGENT_PORT] [–exporter_jaeger_agent_split_oversized_batches EXPORTER_JAEGER_AGENT_SPLIT_OVERSIZED_BATCHES] [–exporter_jaeger_certificate EXPORTER_JAEGER_CERTIFICATE] [–exporter_jaeger_endpoint EXPORTER_JAEGER_ENDPOINT] [–exporter_jaeger_password EXPORTER_JAEGER_PASSWORD] [–exporter_jaeger_timeout EXPORTER_JAEGER_TIMEOUT] [–exporter_jaeger_user EXPORTER_JAEGER_USER] [–exporter_otlp_certificate EXPORTER_OTLP_CERTIFICATE] [–exporter_otlp_compression EXPORTER_OTLP_COMPRESSION] [–exporter_otlp_endpoint EXPORTER_OTLP_ENDPOINT] [–exporter_otlp_headers EXPORTER_OTLP_HEADERS] [–exporter_otlp_protocol EXPORTER_OTLP_PROTOCOL] [–exporter_otlp_timeout EXPORTER_OTLP_TIMEOUT] [–exporter_otlp_traces_certificate EXPORTER_OTLP_TRACES_CERTIFICATE] [–exporter_otlp_traces_compression EXPORTER_OTLP_TRACES_COMPRESSION] [–exporter_otlp_traces_endpoint EXPORTER_OTLP_TRACES_ENDPOINT] [–exporter_otlp_traces_headers EXPORTER_OTLP_TRACES_HEADERS] [–exporter_otlp_traces_protocol EXPORTER_OTLP_TRACES_PROTOCOL] [–exporter_otlp_traces_timeout EXPORTER_OTLP_TRACES_TIMEOUT] [–exporter_zipkin_endpoint EXPORTER_ZIPKIN_ENDPOINT] [–exporter_zipkin_timeout EXPORTER_ZIPKIN_TIMEOUT] [–link_attribute_count_limit LINK_ATTRIBUTE_COUNT_LIMIT] [–log_level LOG_LEVEL] [–resource_attributes RESOURCE_ATTRIBUTES] [–service_name SERVICE_NAME] [–span_attribute_count_limit SPAN_ATTRIBUTE_COUNT_LIMIT] [–span_attribute_value_length_limit SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT] [–span_event_count_limit SPAN_EVENT_COUNT_LIMIT] [–span_link_count_limit SPAN_LINK_COUNT_LIMIT] [–traces_sampler TRACES_SAMPLER] [–traces_sampler_arg TRACES_SAMPLER_ARG] [–disabled_instrumentations DISABLED_INSTRUMENTATIONS] [–propagators PROPAGATORS] [–context CONTEXT] [–id_generator ID_GENERATOR] [–tracer_provider TRACER_PROVIDER] [–traces_exporter TRACES_EXPORTER] command … opentelemetry-instrument: error: unrecognized arguments: --trace-exporter
I can’t find any information on how to resolve this. Any input would help.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (11 by maintainers)
Commits related to this issue
- Prune autoinstrumentation sitecustomize module directory from PYTHONPATH immediately (#1066) — committed to open-telemetry/opentelemetry-python-contrib by aabmass 2 years ago
Done. open-telemetry/opentelemetry-python-contrib#1102
Looks like we can close this issue, @owais, @lzchen