Fly.io
Add Obtrace to Fly.io apps with secrets and OTLP export for any language.
Fly.io
Fly.io apps are instrumented by setting secrets and adding the Obtrace SDK or using OTLP export.
Step 1: Set secrets
Your app will restart with the new secrets.
Step 2: Add the SDK
Node.js
Python / Go / Java
Same pattern — read OBTRACE_API_KEY from environment.
OTLP native export
For any language with OpenTelemetry instrumentation:
Obtrace's ingest-edge accepts standard OTLP HTTP (JSON and Protobuf) on /otlp/v1/traces, /otlp/v1/logs, and /otlp/v1/metrics.
Fly.io metadata
The SDK auto-detects these Fly.io environment variables:
| Fly Variable | Mapped to |
|---|---|
FLY_APP_NAME | service.name |
FLY_REGION | cloud.region |
FLY_ALLOC_ID | service.instance.id |
FLY_MACHINE_ID | host.id |
FLY_IMAGE_REF | service.version |
Fly.io Prometheus metrics
Fly.io exposes built-in Prometheus metrics. You can forward these to Obtrace by deploying a Prometheus remote-write proxy or configuring the Fly Metrics token to push to Obtrace's metrics endpoint.