otel spans not flushed in _after?
还没有人认领这个 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DataDog/datadog-lambda-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
DataDog/datadog-lambda-python#758 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 76/100
DataDog/datadog-lambda-python#755 ·
-
难度 4/5 3-5 天 新手友好度 30/100
DataDog/datadog-lambda-python#688 ·
-
难度 3/5 1-2 天 新手友好度 45/100
DataDog/datadog-lambda-python#666 · 1 个 reaction ·
-
DataDog/datadog-lambda-python#633 · 2 条评论 · 已指派 1 人 ·
查看 DataDog/datadog-lambda-python 的全部 Issue
相似的 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 90/100
simonw/sqlite-utils#872 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100