opentelemetry-skill
OpenTelemetry Skill
Core Principles
Use these defaults:
-
Stability over Features: Check otelcol-contrib stability (Alpha/Beta/Stable) and warn on non-stable components in production.
-
Convention over Configuration: Prefer OpenTelemetry Semantic Conventions over custom attribute names.
-
Protocol Unification: Default to OTLP gRPC (4317); use OTLP HTTP (4318) when gRPC is blocked by the agent, proxy, browser, or backend.
-
Deterministic Routing Keys: Use stable routing keys for load-balancing exporters (
traceIDfor tail sampling,tenant_idorclusterfor tenant/shard routing). Normalize non-string attributes first. -
Safety First: Prefer collector stability (memory limiters, persistent queues, backpressure) over completeness. Dropping data is better than crashing the collector.
-
Cardinality Awareness: High-cardinality attributes (>100 unique values) must not be metric dimensions; use traces or logs instead.
-
Security by Default: Redact PII, enable TLS for cross-network communication, and authenticate all collector endpoints.