Aservice endpointis a base URL that specifies the
network address of an API service. One service might have multiple service
endpoints. This service supports a global service endpoint.
HTTP request
POSThttps://telemetry.googleapis.com/v1/traces
Request body
The request body contains an instance ofExportTraceServiceRequest.
For information about this structure, seetrace_service.protoandtrace.proto.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# REST Telemetry (OTLP) API reference\n\nThis page describes the Telemetry (OTLP) API, which implements\nthe [OpenTelemetry OTLP Protocol](https://opentelemetry.io/docs/specs/otlp/#protocol-details).\nFor information about this API, see\n[Telemetry API overview](/stackdriver/docs/reference/telemetry/overview).\n\nService endpoint\n----------------\n\nA [service endpoint](https://google.aip.dev/9#api_service_endpoint) is a base URL that specifies the\nnetwork address of an API service. One service might have multiple service\nendpoints. This service supports a global service endpoint.\n\nHTTP request\n------------\n\n POST https://telemetry.googleapis.com/v1/traces\n\nRequest body\n------------\n\nThe request body contains an instance of `ExportTraceServiceRequest`.\nFor information about this structure, see\n[trace_service.proto](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/collector/trace/v1/trace_service.proto) and [trace.proto](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/trace/v1/trace.proto).\n\nIf you add `attributes` to a `Span`, then make sure you follow\nOpenTelemetry's instructions. For more information, see\n[Common specification concepts: Attribute](https://opentelemetry.io/docs/specs/otel/common/#attribute).\n\nFor information about sending requests and about the OTLP protocol, see\n[Protocol Details](https://opentelemetry.io/docs/specs/otlp/#protocol-details).\n\nResponse body\n-------------\n\nThe response body contains an instance of `ExportTraceServiceResponse`.\nFor information about this structure, see the\n[trace_service.proto](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/collector/trace/v1/trace_service.proto).\n\nThe response can indicate full success, partial success, or failure. For\nmore information, see [OTLP/gRPC Response](https://opentelemetry.io/docs/specs/otlp/#otlpgrpc-response).\n\nAuthorization scopes\n--------------------\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/trace.append`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the\n[Authentication Overview](/docs/authentication#authorization-gcp)."]]