Skip to main content
Send telemetry to Interfere using your existing OpenTelemetry instrumentation. You can export through a Collector or directly from your service, without installing an Interfere SDK or creating an app. Every workspace accepts OpenTelemetry data, so there is no connection to enable first.

Create a telemetry key

Open Services and select Set up OpenTelemetry. The dialog shows the Collector exporter configuration and links to Manage Workspace keys. In Developer settings, create a workspace API key with the Send telemetry permission, or use an existing key with that permission. Its API scope is org:telemetry:write. Store the returned secret as INTERFERE_TELEMETRY_KEY in your service or Collector environment, so it stays separate from the INTERFERE_API_KEY secret key that an app’s build uses. Keep this workspace key on the server. App public keys and release-only build keys do not provide workspace telemetry access. You can manage and revoke the key in Developer settings. See API keys for key creation and expiration settings.

Endpoints and authentication

Use https://api.interfere.com/drain as the OTLP/HTTP base endpoint. The intake accepts protobuf or OTLP JSON, with optional gzip compression. Configure an HTTP exporter; this endpoint does not accept OTLP/gRPC. Authenticate each request with the workspace key:
The x-api-key header also accepts the same secret. The key selects the workspace; resource attributes identify the service sending data.

Export through a Collector

If your applications already export to a Collector, keep that setup and add this exporter to its configuration:
Add otlphttp/interfere to the exporters list in each traces, logs, or metrics pipeline you want to send. Keep the pipeline’s existing receivers, processors, and other exporters. Defining the exporter alone does not enable it. The Collector appends the signal path to the base endpoint. See the OTLP HTTP exporter configuration for batching, queue, timeout, and retry options.

Export directly from a service

For an OTel SDK that supports standard exporter environment variables, configure your service before it starts:
Supply INTERFERE_TELEMETRY_KEY through your secret manager. %20 encodes the space after Bearer in the exporter header setting. These variables configure exporters that your application initializes; they do not install instrumentation or enable every signal. Configure the trace, log, and metric exporters you need through your language’s OpenTelemetry setup, and flush buffered telemetry during graceful shutdown. Signal-specific settings override the shared settings. For example, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT must contain the full URL ending in /drain/v1/traces. Check for existing endpoint and header overrides when changing destinations. See OTLP exporter configuration. Use one export path per signal to avoid sending the same records both directly and through a Collector. For Next.js apps that already use the Interfere SDK, see OpenTelemetry composition.

Node.js

Node.js services, workers, and scripts send telemetry through the OpenTelemetry Node.js SDK. Set the exporter environment variables from Export directly from a service, then install the SDK, auto-instrumentations, and the OTLP/HTTP protobuf trace exporter:
Create instrumentation.mjs:
instrumentation.mjs
Load this module before any application code so the instrumentations can patch the libraries your app imports. For a CommonJS build, preload it with node --import ./instrumentation.mjs dist/main.js. For an ESM build, also configure the OpenTelemetry ESM loader hook. If your app already registers an OpenTelemetry provider, add the exporter to that provider instead of starting a second one. Await sdk.shutdown() in your application’s graceful shutdown handler, after it stops accepting new work, so buffered spans flush before the process exits. For a short-lived script, await it before the script ends. Auto-instrumentation records request spans but does not report every error your code catches. Record caught exceptions on the active span and set its status to ERROR, creating a span when none is active:
To trace an operation of your own, use tracer.startActiveSpan() and end the span when the operation finishes. The trace exporter above sends traces only; configure log and metric exporters separately if you need those signals.
@interfere/node, @interfere/nest, and @interfere/elysia are retired. Installed versions keep sending data, and new setups use OpenTelemetry. When migrating, replace withSpan with tracer.startActiveSpan(), replace captureError with reportError, and remove the retired package once the service appears on the Services page.

Identify services and deployments

Set resource attributes in the application so a Collector forwarding multiple services retains each service’s identity. Keep the service name and namespace consistent across deployments. Each discovered service appears on the Services page. Discovery does not attach a service to an app or upload source maps. Services deployed as Cloudflare Workers can be linked to an app, which charts their traces on the app’s Overview under Linked OpenTelemetry services. Logs and metrics from linked services are not charted yet.

Verify ingestion

Generate a request in your service, allow its exporter to flush, then check Services for the service name. Check the exporter or Collector logs for rejected records or connection errors. An HTTP 200 response can include OTLP partial-success details. Check those details before treating the entire batch as accepted.