Skip to content

Commit 3083bf6

Browse files
committed
Remove manually adding quota project header.
1 parent 9585595 commit 3083bf6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

samples/otlptrace/example_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
This is a sample script that exports OTLP traces encoded as protobufs via gRPC.
3333
"""
3434

35-
credentials, project_id = google.auth.default()
35+
credentials, _ = google.auth.default()
3636
request = google.auth.transport.requests.Request()
3737
resource = Resource.create(attributes={SERVICE_NAME: "otlp-gcp-grpc-sample"})
3838

samples/otlptrace/example_http.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@
2424
from opentelemetry.sdk.trace import TracerProvider
2525
from opentelemetry.sdk.trace.export import BatchSpanProcessor
2626

27-
credentials, project_id = google.auth.default()
27+
credentials, _ = google.auth.default()
2828
trace_provider = TracerProvider(
2929
resource=Resource.create(attributes={SERVICE_NAME: "otlp-gcp-http-sample"})
3030
)
3131
processor = BatchSpanProcessor(
3232
OTLPSpanExporter(
33-
headers={
34-
"x-goog-user-project": credentials.quota_project_id,
35-
},
3633
session=AuthorizedSession(credentials),
3734
)
3835
)

0 commit comments

Comments
 (0)