Skip to content

Sending Traces

Learn how to instrument your applications to send distributed traces to Kopai.

Kopai accepts traces via the OpenTelemetry Protocol (OTLP). You can send traces over HTTP or gRPC.

ProtocolEndpoint
HTTPhttps://otlp.kopai.app/v1/traces
gRPCotlp.kopai.app:443

Set these environment variables to configure your OpenTelemetry SDK:

Terminal window
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.kopai.app"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer YOUR_TOKEN"
export OTEL_SERVICE_NAME="your-service-name"
  • Node.js - Instrument Node.js applications
  • Python - Instrument Python applications
  • Go - Instrument Go applications

After sending traces, view them in the Kopai dashboard under Traces.