Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion samples/otlptrace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ gcloud auth application-default login
```sh
# export necessary OTEL environment variables
export OTEL_RESOURCE_ATTRIBUTES="gcp.project_id=<project-id>"
export OTEL_EXPORTER_OTLP_ENDPOINT=<endpoint>

# from the samples/otlptrace repository
python3 example_grpc.py
Expand Down
1 change: 1 addition & 0 deletions samples/otlptrace/example_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
processor = BatchSpanProcessor(
OTLPSpanExporter(
credentials=channel_creds,
endpoint="https://telemetry.googleapis.com:443/v1/traces",
)
)
trace_provider.add_span_processor(processor)
Expand Down
1 change: 1 addition & 0 deletions samples/otlptrace/example_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
processor = BatchSpanProcessor(
OTLPSpanExporter(
session=AuthorizedSession(credentials),
endpoint="https://telemetry.googleapis.com:443/v1/traces",
)
)
trace_provider.add_span_processor(processor)
Expand Down