envoyproxy/envoy

tracing: Add support for including response headers in custom tags

Open

#29,036 创建于 2023年8月16日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)C++ (5,373 fork)batch import
area/tracingenhancementhelp wantedno stalebot

仓库指标

Star
 (27,997 star)
PR 合并指标
 (平均合并 8天) (30 天内合并 378 个 PR)

描述

At the moment, it's possible to specify custom tags in the HTTP connection manager, but the only kinds of custom tag are literal, environment, request_header, and metadata.

I'd like to be able to include some data from response headers in spans. My rough understanding of the control flow is that the tags are only added to the span when it's finalized, ie, after the downstream response has been sent. I believe this means the headers should be available, and it's a matter of adding the config and plumbing to make it work.

There should probably be both upstream and downstream response headers, since it's possible to use upstream headers to signal things to envoy but then strip those from the downstream response, or to add extra headers to the downstream response that aren't present on the upstream response.

贡献者指南