File tree Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ gcloud auth application-default login
24
24
``` sh
25
25
# export necessary OTEL environment variables
26
26
export OTEL_RESOURCE_ATTRIBUTES=" gcp.project_id=<project-id>"
27
- export OTEL_EXPORTER_OTLP_ENDPOINT=< endpoint>
28
27
29
28
# from the samples/otlptrace repository
30
29
python3 example_grpc.py
Original file line number Diff line number Diff line change 46
46
processor = BatchSpanProcessor (
47
47
OTLPSpanExporter (
48
48
credentials = channel_creds ,
49
+ endpoint = "https://telemetry.googleapis.com:443/v1/traces" ,
49
50
)
50
51
)
51
52
trace_provider .add_span_processor (processor )
Original file line number Diff line number Diff line change 31
31
processor = BatchSpanProcessor (
32
32
OTLPSpanExporter (
33
33
session = AuthorizedSession (credentials ),
34
+ endpoint = "https://telemetry.googleapis.com:443/v1/traces" ,
34
35
)
35
36
)
36
37
trace_provider .add_span_processor (processor )
You can’t perform that action at this time.
0 commit comments