otel spans not flushed in _after?

未关闭
#682 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
aws, python

调研方向

检查 datadog_wrapper 的 _after 方法,并比较它如何 flush ddtrace 生成的 spans 与来自 opentelemetry-api 的 spans。使用 Datadog Lambda Layer 86 和 Python 3.11.14 重现一个未捕获的异常;当这些 spans 能够可靠地到达 Datadog 时,工作就完成了。

由索引模型根据 Issue 内容生成。

描述

Expected Behavior

Spans from uncaught exceptions should still reliably reach datadog.

Actual Behavior

Many spans from uncaught errors are lost before they can be sent.

This needs further investigation, but I suspect it's because datadog_wrapper's _after method specifically flushes ddtrace-generated spans but not opentelemetry-api ones? Maybe it needs to also call TracerProvider.force_flush if applicable?

Specifications

  • Datadog Lambda Layer version: 86
  • Python version: 3.11.14

Stacktrace

Paste here
主要语言
Python
星标
102
派生
52
平均合并
5 天 19 小时
30 天内合并 PR
2

贡献指南

打开贡献指南

从这里开始

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

DataDog/datadog-lambda-python 的其他 Issue

查看 DataDog/datadog-lambda-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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