diff --git a/samples/otlptrace/README.md b/samples/otlptrace/README.md index 80eb3411..fe19da65 100644 --- a/samples/otlptrace/README.md +++ b/samples/otlptrace/README.md @@ -24,7 +24,6 @@ gcloud auth application-default login ```sh # export necessary OTEL environment variables export OTEL_RESOURCE_ATTRIBUTES="gcp.project_id=" -export OTEL_EXPORTER_OTLP_ENDPOINT= # from the samples/otlptrace repository python3 example_grpc.py diff --git a/samples/otlptrace/example_grpc.py b/samples/otlptrace/example_grpc.py index 80980f52..8c59f1f9 100644 --- a/samples/otlptrace/example_grpc.py +++ b/samples/otlptrace/example_grpc.py @@ -46,6 +46,7 @@ processor = BatchSpanProcessor( OTLPSpanExporter( credentials=channel_creds, + endpoint="https://telemetry.googleapis.com:443/v1/traces", ) ) trace_provider.add_span_processor(processor) diff --git a/samples/otlptrace/example_http.py b/samples/otlptrace/example_http.py index a613beed..4694cc01 100644 --- a/samples/otlptrace/example_http.py +++ b/samples/otlptrace/example_http.py @@ -31,6 +31,7 @@ processor = BatchSpanProcessor( OTLPSpanExporter( session=AuthorizedSession(credentials), + endpoint="https://telemetry.googleapis.com:443/v1/traces", ) ) trace_provider.add_span_processor(processor)