Skip to content

Commit edceefe

Browse files
chalinsvrnm
andauthored
Python zero-code copyedits (#4917)
Co-authored-by: Severin Neumann <[email protected]>
1 parent 60a5657 commit edceefe

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

content/en/docs/zero-code/python/_index.md

+25-28
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The agent is highly configurable.
5050
One option is to configure the agent by way of configuration properties from the
5151
CLI:
5252

53-
```console
53+
```sh
5454
opentelemetry-instrument \
5555
--traces_exporter console,otlp \
5656
--metrics_exporter console \
@@ -61,7 +61,7 @@ opentelemetry-instrument \
6161

6262
Alternatively, you can use environment variables to configure the agent:
6363

64-
```console
64+
```sh
6565
OTEL_SERVICE_NAME=your-service-name \
6666
OTEL_TRACES_EXPORTER=console,otlp \
6767
OTEL_METRICS_EXPORTER=console \
@@ -79,44 +79,41 @@ A number of popular Python libraries are auto-instrumented, including
7979
[Flask](https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-flask)
8080
and
8181
[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).
8484

8585
## Troubleshooting
8686

8787
### Python package installation failure
8888

8989
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+
```
112109

113110
### gRPC Connectivity
114111

115112
To debug Python gRPC connectivity issues, set the following gRPC debug
116113
environment variables:
117114

118-
```console
115+
```sh
119116
export GRPC_VERBOSITY=debug
120117
export GRPC_TRACE=http,call_error,connectivity_state
121-
opentelemetry-instrument python <your_app>.py
118+
opentelemetry-instrument python YOUR_APP.py
122119
```

0 commit comments

Comments
 (0)