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:

1
2
3
4
5
6
7
8
9
10
11
12
exporters:
otlphttp:
endpoint: https://otel.wundergraph.com
headers:
Authorization: Bearer <wundergraph-telemetry-token>
service:
pipelines:
traces:
receivers: [...]
processors: [...]
exporters: [otlphttp, ...]

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:

1
2
3
4
ctx := context.Background()
traceExporter, err := otlptracehttp.New(ctx,
otlptracehttp.WithEndpoint("otel.wundergraph.com"),
otlptracehttp.WithHeaders(map[string]string{"Authorization": "Bearer <YOUR WUNDERGRAPH TOKEN HERE>"}))

This is an example for the Go SDK, but the same applies to all other SDKs.

Previous
Neon

Was this article helpful to you?
Provide feedback

Edit this page