1 Star 0 Fork 694

yx_2048 / skywalking

forked from SkyWalking / skywalking 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Skywalking-Cross-Process-Correlation-Headers-Protocol-v1.md 1.23 KB
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
Wing 提交于 2021-05-13 17:16 . Refine protocols (#6936)

SkyWalking Cross Process Correlation Headers Protocol

  • Version 1.0

The Cross Process Correlation Headers Protocol is used to transport custom data by leveraging the capability of Cross Process Propagation Headers Protocol.

This is an optional and additional protocol for language tracer implementation. All tracer implementation could consider implementing this. Cross Process Correlation Header key is sw8-correlation. The value is the encoded(key):encoded(value) list with elements splitted by , such as base64(string key):base64(string value),base64(string key2):base64(string value2).

Recommendations for language APIs

The following implementation method is recommended for different language APIs.

  1. TraceContext#putCorrelation and TraceContext#getCorrelation are recommended to write and read the correlation context, with key/value string.
  2. The key should be added if it is absent.
  3. The latter writes should override the previous value.
  4. The total number of all keys should be less than 3, and the length of each value should be less than 128 bytes.
  5. The context should be propagated as well when tracing context is propagated across threads and processes.
Java
1
https://gitee.com/yx_2048/sky-walking.git
git@gitee.com:yx_2048/sky-walking.git
yx_2048
sky-walking
skywalking
master

搜索帮助