Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] 希望提供HTTP/2协议自定义错误指标定义插件 #7570

Open
3 tasks done
pegasusljn opened this issue Jul 26, 2024 · 1 comment
Open
3 tasks done

[FR] 希望提供HTTP/2协议自定义错误指标定义插件 #7570

pegasusljn opened this issue Jul 26, 2024 · 1 comment
Assignees
Labels

Comments

@pegasusljn
Copy link

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

背景:很多情况下,微服务、模块之间的HTTP/2调用发生的原始错误, 会被统一的错误处理、try catch等逻辑处理掉, 转换成一系列错误码返回, 这种情况下,HTTP/2的错误流量会被漏掉。所以希望能在HTTP中增加一个插件入口,能够注入用户的自定义逻辑来判断HTTP流量是否正常
需求:提供插件入口, 允许用户注入小段自定义逻辑或规则,根据http返回数据、status_code等信息判断流量是否发生异常,支持到l7.flow_metric和l7.flow_log的统计

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@sharang sharang self-assigned this Jul 26, 2024
@sharang
Copy link
Member

sharang commented Sep 2, 2024

https://deepflow.io/docs/zh/integration/process/wasm-plugin/#%E5%85%B3%E4%BA%8E-wasm-%E6%8F%92%E4%BB%B6%E7%B3%BB%E7%BB%9F

通过 cbpf 和 ebpf-kprobe 采集 http2 调用日志时,已经支持了 wasm plugin 增强,见上面的文档。

通过 ebpf-uprobe 采集 http2 调用日志时,数据结构特殊(是压缩前的 key-value pair header + payload byte array),插件增强能力还在开发中。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants