opentelemetry-instrument - Man Page

opentelemetry-instrument – automatically instrument and run a Python program

Synopsis

opentelemetry-instrument [-h] [--version] [--logs_exporter LOGS_EXPORTER] [--metrics_exporter METRICS_EXPORTER] [--propagators PROPAGATORS] [--context CONTEXT] [--id_generateor ID_GENERATOR] [--meter_provider METER_PROVIDER] [--tracer_provider TRACER_PROVIDER] [--traces_exporter TRACES_EXPORTER] [--disabled_instrumentations DISABLED_INSTRUMENTATIONS] [--version] command ...

Description

opentelemetry-instrument(1) automatically instruments a Python program and its dependencies and then runs the program.

Options

Positional Arguments

command

Your Python application.

command_args

Arguments for your application.

Optional Arguments

-h--help

Show a help message and exit.

--logs_exporter LOGS_EXPORTER
--metrics_exporter METRICS_EXPORTER
--propagators PROPAGATORS
--context CONTEXT
--id_generator ID_GENERATOR
--meter_provider METER_PROVIDER
--tracer_provider TRACER_PROVIDER
--traces_exporter TRACES_EXPORTER
--disabled_instrumentations DISABLED_INSTRUMENTATIONS
--version

Print version information.

Environment

Optional arguments (except for --help and --version) for opentelemetry-instrument(1) directly correspond with OpenTelemetry environment variables. The corresponding optional argument is formed by removing the OTEL_ or OTEL_PYTHON_ prefix from the environment variable and lower casing the rest. For example, the optional argument --attribute_value_length_limit corresponds with the environment variable OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT. These optional arguments will override the current value of the corresponding environment variable during the execution of the command.

See Also

opentelemetry-bootstrap(1)

Referenced By

opentelemetry-bootstrap(1).

December 2022