File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 3232This 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 ()
3636request = google .auth .transport .requests .Request ()
3737resource = Resource .create (attributes = {SERVICE_NAME : "otlp-gcp-grpc-sample" })
3838
Original file line number Diff line number Diff line change 2424from opentelemetry .sdk .trace import TracerProvider
2525from opentelemetry .sdk .trace .export import BatchSpanProcessor
2626
27- credentials , project_id = google .auth .default ()
27+ credentials , _ = google .auth .default ()
2828trace_provider = TracerProvider (
2929 resource = Resource .create (attributes = {SERVICE_NAME : "otlp-gcp-http-sample" })
3030)
3131processor = BatchSpanProcessor (
3232 OTLPSpanExporter (
33- headers = {
34- "x-goog-user-project" : credentials .quota_project_id ,
35- },
3633 session = AuthorizedSession (credentials ),
3734 )
3835)
You can’t perform that action at this time.
0 commit comments