Prerequisites
- An OpenTelemetry collector running and configured.
Step 1: Update your config
Sending traces to Checkly is very simple with the OpenTelemetry collector. There are three sections you need to add to your collector configuration file:- Create a
filterthat will remove all spans that don’t havecheckly=truein the trace state. - Create a new
exporterwith the Checkly API endpoint and API key as an environment variables. - Hook the
exporterandfilterinto a new trace pipeline.
YAML
Step 2: Restart your collector
Grab your OTel API key in the Send traces section of the Open Telemetry Integration page in the Checkly app. Now, export your API key in your shell by setting theCHECKLY_OTEL_API_KEY environment variable.
Terminal
Terminal
Step 3: Verify your setup
You are done. Any traces ingested by your collector that are triggered by a Checkly synthetic check will now be sent to Checkly via the new pipeline.If you are not using the OpenTelemetry collector, you can also send traces directly to Checkly by instrumenting your application code.