OpenTelemetry checklist¶
Copy this list into a pull request, design review or project kickoff and tick what applies. Rules are grouped by level and sorted by score (criteria). Each links to the file that explains it and cites its sources. Automatable names tools that can check the rule in CI (see the file's "How to enforce" section).
Also apply the general checklist.
This file is generated by python3 scripts/rank.py fix from the guidelines. Don't edit it by hand.
Recommended (6โ8)¶
-
OTEL-1(8) Setservice.nameexplicitly in every service, with the same value for all instances of the service, and addservice.versionanddeployment.environment.nameas resource attributes. (specific/opentelemetry) -
OTEL-3(8) Propagate trace context across every process boundary, including queues: keep the default W3C Trace Context propagator for HTTP and gRPC, and have producers attach the context to each message. (specific/opentelemetry) -
OTEL-9(8) Makememory_limiterthe first processor in every Collector pipeline, setGOMEMLIMITto about 80% of the Collector's hard memory limit, and batch data after sampling and filtering, preferably with the exporter'ssending_queuebatching. (specific/opentelemetry) Automatable: Collectorvalidatecommand. -
OTEL-10(8) Secure every Collector: bind receivers tolocalhostor a specific interface instead of0.0.0.0, require TLS and authentication on receivers that other hosts send to, keep credentials out of the configuration file, in a secret store or, where nothing else is available, in environment variables, and include only the components you use. (specific/opentelemetry) -
OTEL-12(8) Keep secrets and personal data out of telemetry: don't record what you don't need, and remove, hash or truncate what instrumentation captures anyway, for example with the Collector'sredaction,attributes,transformorfilterprocessors. (specific/opentelemetry) -
OTEL-4(7) Start with zero-code instrumentation or instrumentation libraries for your frameworks and clients, then add code-based spans, attributes and metrics for the business operations that matter. (specific/opentelemetry) -
OTEL-5(7) Correlate logs with traces: keep your logging library, connect it to OpenTelemetry with a log appender (bridge) so that each record carries the active trace and span IDs, and prefer structured logs. (specific/opentelemetry) -
OTEL-6(7) Keep span names and metric attributes low-cardinality: use route templates such as/users/{id}instead of raw paths, and keep user IDs, request IDs and other unbounded values off metric attributes. (specific/opentelemetry) -
OTEL-11(7) Send telemetry over OTLP to an OpenTelemetry Collector, running as an agent next to the service or as a gateway, rather than from each service straight to a vendor. (specific/opentelemetry) -
OTEL-2(6) Before you name a custom attribute or metric, look for it in the semantic conventions; when none fits, prefix the new name with your company's reverse domain name, such ascom.acme., or with your application's name. (specific/opentelemetry) Automatable: Weaver live check. -
OTEL-7(6) Treat trace context from outside as untrusted: ignore or sanitize incoming trace headers from callers you don't trust, don't send internal context to external services, and never put credentials or personal data in baggage. (specific/opentelemetry) -
OTEL-8(6) Choose sampling deliberately: don't sample when you produce little data, use consistent probability (head) sampling to cut volume cheaply, and add tail sampling in a Collector tier when you must keep every error or slow trace. (specific/opentelemetry)