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
2424``` sh
2525# export necessary OTEL environment variables
2626export OTEL_RESOURCE_ATTRIBUTES=" gcp.project_id=<project-id>"
27- export OTEL_EXPORTER_OTLP_ENDPOINT=< endpoint>
2827
2928# from the samples/otlptrace repository
3029python3 example_grpc.py
Original file line number Diff line number Diff line change 4646processor = BatchSpanProcessor (
4747 OTLPSpanExporter (
4848 credentials = channel_creds ,
49+ endpoint = "https://telemetry.googleapis.com:443/v1/traces" ,
4950 )
5051)
5152trace_provider .add_span_processor (processor )
Original file line number Diff line number Diff line change 3131processor = BatchSpanProcessor (
3232 OTLPSpanExporter (
3333 session = AuthorizedSession (credentials ),
34+ endpoint = "https://telemetry.googleapis.com:443/v1/traces" ,
3435 )
3536)
3637trace_provider .add_span_processor (processor )
You can’t perform that action at this time.
0 commit comments