CtrlK
BlogDocsLog inGet started
Tessl Logo

kopai/otel-instrumentation

Instrument applications with OpenTelemetry SDK and validate telemetry using Kopai. Use when setting up observability, adding tracing/logging/metrics, testing instrumentation, debugging missing telemetry data, or when traces/logs/metrics aren't appearing after setup. Also use when users say things like "my traces aren't showing up", "I don't see any data", or "how do I add observability to my app".

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

setup-environment.mdrules/

titleimpacttags
Configure EnvironmentCRITICALsetup, env, config

Configure Environment

Impact: CRITICAL

Set environment variables for OTEL SDK to export telemetry to Kopai.

Example

export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export OTEL_SERVICE_NAME=my-service

Required Variables

VariableValueDescription
OTEL_EXPORTER_OTLP_ENDPOINThttp://localhost:4318Kopai collector endpoint
OTEL_SERVICE_NAMEyour-serviceIdentifies service in telemetry

Protocol: HTTP only

Kopai accepts OTLP over HTTP only (port 4318). gRPC (port 4317) is not supported.

Some SDKs default to gRPC — if you see connection errors, check the protocol:

# Force HTTP protocol (needed for Go, Java, and other SDKs that default to gRPC)
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
SDKDefault ProtocolAction Needed
Node.jsHTTPNone
PythonHTTPNone
GogRPCSet OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
JavagRPCSet OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
.NETHTTPNone
RustHTTPNone

Reference

https://opentelemetry.io/docs/concepts/sdk-configuration/otlp-exporter-configuration/

SKILL.md

tile.json