A lightweight service that forwards OpenTelemetry events to Honeycomb.io.
This service acts as a bridge between applications sending OpenTelemetry-formatted telemetry data and the Honeycomb.io observability platform. It receives OpenTelemetry events via an HTTP endpoint and forwards them to Honeycomb's API.
- Accepts OpenTelemetry-formatted events via HTTP
- Transforms events to Honeycomb's format
- CORS support for cross-origin requests
- Configurable via environment variables
The service is configured using environment variables:
Variable | Description | Default |
---|---|---|
PORT |
The port the server will listen on | 8080 |
HONEYCOMB_API_KEY |
Your Honeycomb API key | (required) |
HONEYCOMB_DATASET |
The Honeycomb dataset to send events to | cli-telemetry |
HONEYCOMB_API_URL |
Custom Honeycomb API URL (optional) | (Honeycomb default) |
- Go 1.x
- Set required environment variables:
export HONEYCOMB_API_KEY=your-api-key
- Build and run the service:
go build
./otel-honeycomb-forwarder
Accepts OpenTelemetry events and forwards them to Honeycomb.
Request Body: An OpenTelemetry event with the following structure:
{
"name": "event_name",
"timeUnixNano": 1639083272000000000,
"traceId": "trace-id",
"spanId": "span-id",
"severityText": "INFO",
"severityNumber": 9,
"body": "Event message or data",
"attributes": {
"key1": "value1",
"key2": "value2"
},
"resource": {
"service.name": "my-service"
}
}
This project is licensed under the MIT License. See the LICENSE file for details.