
Opentelemetry
作者 bobmatnyc718070a7d622MIT77 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2个月前更新
OpenTelemetry observability patterns: traces, metrics, logs, context propagation, OTLP export, Collector pipelines, and troubleshooting
提供使用 OpenTelemetry 为服务埋点并通过 Collector 导出 OTLP 遥测的参考指导。
- 功能
- 该技能提供 OpenTelemetry 可观测性模式的参考资料,涵盖追踪、指标、日志、上下文传播、采样和语义约定。它还说明 Collector 管道、处理器、部署模式、尾部采样和 OTLP 导出,以及手动埋点、传播陷阱、基数问题和调试。该技能仅包含说明,不含脚本,产出为指导而非生成的文件。
- 适用场景
- 适用于构建生产可观测性、为分布式系统添加追踪,或跨语言统一遥测的场景。也适用于将日志与追踪 ID 关联,或排查遥测管道问题。
- 运行要求
- 无需工具、软件包、运行时、凭据或网络访问;该技能不包含脚本,仅由 Markdown 参考文档组成。
OpenTelemetry
Quick Start (signal design)
- Export OTLP via an OpenTelemetry Collector (vendor-neutral endpoint).
- Standardize resource attributes:
service.name, service.version, deployment.environment.
- Start with auto-instrumentation, then add manual spans and log correlation.
Load Next (References)
references/concepts.md — traces/metrics/logs, context propagation, sampling, semantic conventions
references/collector-and-otlp.md — Collector pipelines, processors, deployment patterns, tail sampling
references/instrumentation-and-troubleshooting.md — manual spans, propagation pitfalls, cardinality, debugging