Loading...
Loading...
Instrument applications with OpenTelemetry SDK and validate telemetry using Kopai. Use when setting up observability, adding tracing/logging/metrics, testing instrumentation, or debugging missing telemetry data.
npx skill4agent add kopai-app/kopai-mono otel-instrumentation# Start backend
npx @kopai/app start
# Configure app
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export OTEL_SERVICE_NAME=my-service
# Validate telemetry
npx @kopai/cli traces search --service my-service --json
npx @kopai/cli logs search --service my-service --json
npx @kopai/cli metrics discover --jsonsetup-backendsetup-environmentlang-nodejslang-pythonlang-golang-javalang-dotnetlang-rubylang-phplang-rustlang-erlanglang-cppvalidate-tracesvalidate-logsvalidate-metricstroubleshoot-no-datatroubleshoot-missing-spanstroubleshoot-missing-attrstroubleshoot-wrong-portrules/<rule-name>.md