Add mechanism for exporters to signal backpressure to callers

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

维护者通常 3 天内回复

还没有人认领这个 Issue。

  • #8928 来自 @codedbyadiiii —— 已关闭,未合并

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
java
领域
observability

调研方向

首先跟踪 BSP、BLRP 和 PMR 如何调用 SpanExporter、LogRecordExporter 和 MetricExporter,并等待 CompletableResultCode。查看相关 issue #7099 和 #4264 以了解上下文。完成的标准是 exporter 可以声明并发或 backpressure 能力,并且 processor 使用该信号,同时不削弱现有的保护行为。

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

描述

Feature Request

Right now, our processors (BSP, BLRP, PMR) call exporters (SpanExporter, LogRecordExporter, MetricExporter) and wait for resulting CompletableResultCode to complete before calling again. This is meant to be protective of exporters: There's no guarantee that an exporter is written in such a way that it can handle the load of many concurrent calls to export. A well written exporter would respond immediately with CompletableResultCodes so long as it has extra concurrent processing capacity, and block calls to export when its capacity is full.

Since we can't ensure all exporters are written with this in mind, we take the conservative approach and do not call them concurrently.

But this limits the throughput of exporters that are written to be able to handle concurrent export calls while signalling backpressure to callers.

Let's adjust our exporter contracts so that they can signal to callers what types of concurrent / backpressure capabilities they have, such that BSP, BLRP, PMR can call export concurrently on exporters that advertise that capability.

This is related to https://github.com/open-telemetry/opentelemetry-java/issues/7099, https://github.com/open-telemetry/opentelemetry-java/issues/4264, but a specific implementation recommendation based improving exporters to be able to opt into concurrent invocation by BSP, BLRP, PMR.

cc @trask

主要语言
Java
星标
2.5k
派生
1.1k
平均合并
5 天 11 小时
30 天内合并 PR
41

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

open-telemetry/opentelemetry-java 的其他 Issue

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

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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