作者:Matthew McCleary
今天,OpenTelemetry Python 发布了 1.0 版本的追踪 API/SDK。这个版本基于OpenTelemetry 规范[1]被标记为稳定[2]的!我们正在为从事分布式应用的 Python 开发人员或服务工程师带来端到端的、与供应商无关的可观察性。
这个新版本包括以下内容:
OpenTelemetry 的愿景是为可观察性的三大支柱——分布式追踪、指标和日志——创建一个全球标准。这次发布解决了三大支柱中的第一个——分布式追踪。我们继续致力于指标和日志。
OpenTelemetry 的目的是将两个先前的开源项目:OpenTracing 和 OpenCensus 聚合和日落。在规范[7]稳定之后,OpenTracing 客户将能够使用OpenTracing Shim[8]来迁移他们的检测。OpenCensus 客户目前还没有针对 OpenTelemetry 的垫片,客户可以依靠特定于供应商的指导来实现潜在的未来迁移。
如果你想自己尝试一下,请查看这里[9]的入门指南。
这个开源项目包括了来自30 多个组织[10]的超过 96 位的开发人员[11]的贡献。特别感谢Alex Boten[12](Lightstep)和Leighton Chen[13](Microsoft),他们作为维护人员[14]花费了大量时间,一起审查了 800 多个 pull 请求(有趣的事实!)。
我们未来几个月的路线图包括:
改进和添加测仪库将支持跨常见 Python 工具库(包括 Flask、Django、PostgreSQL 和 MySQL)的开箱即用分布式追踪。许多测仪器库现在还处于试验阶段[16],并将在接下来的几个月里继续成熟。
我们正在积极寻找更多的贡献者!欢迎任何对学习更多关于 OpenTelemetry Python 感兴趣的人加入我们在GitHub[17]上快速增长的社区,加入 CNCF Slack 实例上的 OpenTelemetry Python 频道(如果你是新手,你可以在这里[18]创建一个 CNCF Slack 帐户),或者参加我们每周的社区会议[19]!
[1]
OpenTelemetry 规范: https://github.com/open-telemetry/opentelemetry-specification/releases/tag/v1.0.0
[2]
稳定: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md#stable
[3]
SDK: https://pypi.org/project/opentelemetry-sdk/
[4]
示例: https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples
[5]
入门指南: https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/getting_started
[6]
稳定的 api 文档: https://opentelemetry-python.readthedocs.io/en/stable/
[7]
规范: https://github.com/open-telemetry/opentelemetry-specification/blob/5561534526942dc63f9f9be88fb68ced8a97cd07/specification/compatibility/opentracing.md
[8]
OpenTracing Shim: https://github.com/open-telemetry/opentelemetry-python/tree/main/shim/opentelemetry-opentracing-shim
[9]
这里: https://opentelemetry-python.readthedocs.io/en/latest/getting-started.html
[10]
30 多个组织: https://opentelemetry.devstats.cncf.io/d/66/developer-activity-counts-by-companies?orgId=1&var-period_name=Last%20year&var-metric=contributions&var-repogroup_name=open-telemetry%2Fopentelemetry-python&var-country_name=All&var-companies=All
[11]
超过 96 位的开发人员: https://github.com/open-telemetry/opentelemetry-python/graphs/contributors
[12]
Alex Boten: https://github.com/codeboten
[13]
Leighton Chen: https://github.com/lzchen
[14]
维护人员: https://github.com/open-telemetry/community/blob/main/community-membership.md#community-membership
[15]
Python 测仪库: https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation
[16]
试验阶段: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md#experimental
[17]
GitHub: https://github.com/open-telemetry/opentelemetry-python
[18]
这里: http://slack.cncf.io/
[19]
每周的社区会议: https://github.com/open-telemetry/opentelemetry-python#contributing