Installation
pip install opentelemetry-instrumentation
This package provides a couple of commands that help automatically instruments a program:
Note
You need to install a distro package to get auto instrumentation working. The opentelemetry-distro
package contains the default distro and automatically configures some of the common options for users.
For more info about opentelemetry-distro check here
pip install opentelemetry-distro[otlp]
opentelemetry-bootstrap
opentelemetry-bootstrap --action=install|requirements
This commands inspects the active Python site-packages and figures out which
instrumentation packages the user might want to install. By default it prints out
a list of the suggested instrumentation packages which can be added to a requirements.txt
file. It also supports installing the suggested packages when run with --action=install
flag.
opentelemetry-instrument
opentelemetry-instrument python program.py
The instrument command will try to automatically detect packag
|