You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/getting-started/python-sdk/trace-manual-instr.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,10 @@ import json
64
64
from opentelemetry import trace
65
65
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
66
66
from opentelemetry.sdk.trace import TracerProvider
67
-
from opentelemetry.sdk.trace.export importBatchExportSpanProcessor
67
+
from opentelemetry.sdk.trace.export importBatchSpanProcessor
68
68
69
69
# Import the AWS X-Ray for OTel Python IDs Generator into the application.
70
-
from opentelemetry.sdk.extension.aws.trace importAwsXRayIdsGenerator
70
+
from opentelemetry.sdk.extension.aws.trace importAwsXRayIdGenerator
71
71
```
72
72
73
73
Next, configure the Global Tracer Provider to export to the ADOT Collector. The configuration of your SDK exporter depends on how you wish to connect with your configured ADOT Collector.
@@ -78,9 +78,9 @@ Connecting to an ADOT Collector running as a sidecar, we can set up the TracerPr
78
78
# Sends generated traces in the OTLP format to an ADOT Collector running on port 4317
The `endpoint=` argument allows you to set the address that the exporter will use to connect to the collector. If unset, the SDK will try to connect to `http://localhost:4317` by default. Note that because the scheme is `http` by default, you have to explicitly set it to be `https` if necessary.
0 commit comments