Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion _source/_includes/tracing-shipping/python-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ opentelemetry-bootstrap --action=install
pip3 install opentelemetry-exporter-otlp
```

##### Install specific Python instrumentation for your framework and libraries

Check the full list of available instrumentations [here](https://opentelemetry.io/ecosystem/registry/?language=python&component=instrumentation)
Example for requests library
```shell
pip3 install opentelemetry-instrumentation-requests
```

##### Set environment variables

After installation, configure the exporter by running the following command:
Expand All @@ -18,4 +26,4 @@ export OTEL_TRACES_EXPORTER=otlp
export OTEL_RESOURCE_ATTRIBUTES="service.name=<<YOUR-SERVICE-NAME>>"
```

Replace `<<YOUR-SERVICE-NAME>>` with the name of your tracing service defined earlier.
Replace `<<YOUR-SERVICE-NAME>>` with the name of your tracing service defined earlier.