envoyproxy/envoy

Tracing context and access logging integration

Open

#16,962 opened on 2021年6月14日

GitHub で見る
 (5 comments) (3 reactions) (1 assignee)C++ (5,373 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (平均マージ 8d) (30d で 378 merged PRs)

説明

In this PR, we propose the ability to integrate metadata associated with HTTP tracing (e.g. Trace ID) with access logging. For example, suppose a request generates a trace context like the following

{
  "trace_id": "xxx",
  "spans": [.
    {
      "span_id": "yyyy",
      ...
    }
  ]
  ...
}

By providing such a context to a dedicated access logging filter (this filter must be provided optimized for the tracing provider), the following log message is generated, for example.

{"trace_id": "xxx", "message":"..."}

The specific context of this function is explained in detail at here.

cc. @wu-sheng

[optional Relevant Links:]

https://github.com/SkyAPM/cpp2sky/issues/75

コントリビューターガイド