gpt4 book ai didi

python - OpenTelemetry API 与 SDK

转载 作者:行者123 更新时间:2023-12-05 08:10:37 25 4
gpt4 key购买 nike

我很困惑为什么 OpenTelemetry documentaion具有 OpenTelemetry Python API 和 OpenTelemetry Python SDK。
就像在 python 中使用规范时,我们应该考虑 pip install opentelemetry-api 而不是 pip install opentelemetry-sdk

最佳答案

来自实现的 github 页面。

(注意:无法将其放入评论中并且不想单独发布链接)

This repository includes multiple installable packages. Theopentelemetry-api package includes abstract classes and no-opimplementations that comprise the OpenTelemetry API following theOpenTelemetry specification. The opentelemetry-sdk package is thereference implementation of the API.

Libraries that produce telemetry data should only depend onopentelemetry-api, and defer the choice of the SDK to the applicationdeveloper. Applications may depend on opentelemetry-sdk or anotherpackage that implements the API.

关于python - OpenTelemetry API 与 SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72963553/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com