Skip to content

Commit 5903f12

Browse files
authored
Remove outdated tracer configuration instructions. (#30293)
1 parent c880d4b commit 5903f12

File tree

1 file changed

+2
-34
lines changed
  • content/en/tracing/trace_collection/automatic_instrumentation/dd_libraries

1 file changed

+2
-34
lines changed

content/en/tracing/trace_collection/automatic_instrumentation/dd_libraries/python.md

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -60,41 +60,9 @@ Once you've finished setup and are running the tracer with your application, you
6060

6161
## Configuration
6262

63-
If needed, configure the tracing library to send application performance telemetry data as you require, including setting up Unified Service Tagging. Read [Library Configuration][3] for details.
63+
The tracing library can be configured through environment variables. This is the recommended approach for setting the Agent host, port, and other settings.
6464

65-
The connection for traces can also be configured in code:
66-
67-
```python
68-
from ddtrace import tracer
69-
70-
# Network sockets
71-
tracer.configure(
72-
https=False,
73-
hostname="custom-hostname",
74-
port="1234",
75-
)
76-
77-
# Unix domain socket configuration
78-
tracer.configure(
79-
uds_path="/var/run/datadog/apm.socket",
80-
)
81-
```
82-
83-
The connection for stats can also be configured in code:
84-
85-
```python
86-
from ddtrace import tracer
87-
88-
# Network socket
89-
tracer.configure(
90-
dogstatsd_url="udp://localhost:8125",
91-
)
92-
93-
# Unix domain socket configuration
94-
tracer.configure(
95-
dogstatsd_url="unix:///var/run/datadog/dsd.socket",
96-
)
97-
```
65+
For a comprehensive list of configuration options, including Unified Service Tagging, see the [Library Configuration][3] documentation.
9866

9967
### Upgrading to v1
10068

0 commit comments

Comments
 (0)