@@ -50,7 +50,7 @@ The agent is highly configurable.
50
50
One option is to configure the agent by way of configuration properties from the
51
51
CLI:
52
52
53
- ``` console
53
+ ``` sh
54
54
opentelemetry-instrument \
55
55
--traces_exporter console,otlp \
56
56
--metrics_exporter console \
@@ -61,7 +61,7 @@ opentelemetry-instrument \
61
61
62
62
Alternatively, you can use environment variables to configure the agent:
63
63
64
- ``` console
64
+ ``` sh
65
65
OTEL_SERVICE_NAME=your-service-name \
66
66
OTEL_TRACES_EXPORTER=console,otlp \
67
67
OTEL_METRICS_EXPORTER=console \
@@ -79,44 +79,41 @@ A number of popular Python libraries are auto-instrumented, including
79
79
[ Flask] ( https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-flask )
80
80
and
81
81
[ Django] ( https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-django ) .
82
- You can find the full list
83
- [ here ] ( /ecosystem/registry/?language=python&component=instrumentation ) .
82
+ For the full list, see the
83
+ [ Registry ] ( /ecosystem/registry/?language=python&component=instrumentation ) .
84
84
85
85
## Troubleshooting
86
86
87
87
### Python package installation failure
88
88
89
89
The Python package installs require ` gcc ` and ` gcc-c++ ` , which you may need to
90
- install if you’re running a slim version of Linux (e.g., CentOS).
91
-
92
- CentOS:
93
-
94
- ``` console
95
- yum -y install python3-devel
96
- yum -y install gcc-c++
97
- ```
98
-
99
- Debian/Ubuntu:
100
-
101
- ``` console
102
- apt install -y python3-dev
103
- apt install -y build-essential
104
- ```
105
-
106
- Alpine:
107
-
108
- ``` console
109
- apk add python3-dev
110
- apk add build-base
111
- ```
90
+ install if you’re running a slim version of Linux, such as CentOS.
91
+
92
+ <!-- markdownlint-disable blanks-around-fences -->
93
+
94
+ - CentOS
95
+ ``` sh
96
+ yum -y install python3-devel
97
+ yum -y install gcc-c++
98
+ ```
99
+ - Debian/Ubuntu
100
+ ``` sh
101
+ apt install -y python3-dev
102
+ apt install -y build-essential
103
+ ```
104
+ - Alpine
105
+ ``` sh
106
+ apk add python3-dev
107
+ apk add build-base
108
+ ```
112
109
113
110
### gRPC Connectivity
114
111
115
112
To debug Python gRPC connectivity issues, set the following gRPC debug
116
113
environment variables:
117
114
118
- ``` console
115
+ ``` sh
119
116
export GRPC_VERBOSITY=debug
120
117
export GRPC_TRACE=http,call_error,connectivity_state
121
- opentelemetry-instrument python <your_app> .py
118
+ opentelemetry-instrument python YOUR_APP .py
122
119
```
0 commit comments