Address potential unhandled exceptions in OTLP exporters

未关闭
#5,050 4 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@herin049 已经在做这个了。

开始于 2026年4月7日。

  • #5285 来自 @mohd-ibadullah —— 已关闭,未合并

评估

这个 Issue 还没有评估数据。

描述

bug
Is your feature request related to a problem?

Under scenarios when invalid signal-specific objects as passed to OTLP exporters, an unhandled exception can be thrown which directly violates the requirements outlined by the spec: https://opentelemetry.io/docs/specs/otel/error-handling/

OpenTelemetry implementations MUST NOT throw unhandled exceptions at run time.

Two ways in which this issue can be addressed are:

  1. Update encode_metrics/encode_traces/encode_logs to NOT raise an exception, and instead log an error when unexpected data is encountered
  2. Update OLTP metric exporters to handle the exception, logging the error and returning an export failure result

For additional context see #4996.

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

主要语言
Python
星标
2.7k
派生
1.1k
平均合并
3 天 12 小时
30 天内合并 PR
16

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

open-telemetry/opentelemetry-python 的其他 Issue

查看 open-telemetry/opentelemetry-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。