WunderGraph Cloud OpenTelemetry Collector
Introduction
WunderGraph Cloud provides a public OpenTelemetry Collector that you can use to push your custom traces to WunderGraph Cloud. There are different ways to push your traces to the collector, depending on your setup.
- Endpoint:
https://otel.wundergraph.com
- Endpoint Version:
v1
- Authentication method: Bearer Token
- Supported Protocol:
OTLP/HTTP
(gRPC is not supported)
The minimum required for our collector to accept your traces is to have the service.name resource attribute on your spans and pass the WunderGraph API-Token through the Authorization HTTP header when making a request to our collector.
Obtain your WunderGraph API-Token
You can obtain your WunderGraph API-Token from the WunderGraph Cloud dashboard. Go the the Settings
tab of your organization and copy the API-Token
from the Telemetry
section.
Export to WunderGraph Cloud Collector from your own OpenTelemetry Collector
If you already have your own OpenTelemetry Collector and want to export your traces to WunderGraph, you'd need to add a new otlphttp
exporter in your config.yml, with WunderGraph API-Token as your Authorization header:
Export to WunderGraph Cloud Collector from your own OpenTelemetry SDK
If you already have your own OpenTelemetry SDK and want to export your traces to WunderGraph, you'd need to use the otlphttp
exporter, with WunderGraph API-Token as your Authorization header:
This is an example for the Go SDK, but the same applies to all other SDKs.