Skip to content

Conversation

@yangyy93
Copy link

@yangyy93 yangyy93 commented Nov 6, 2025

Ⅰ. Describe what this PR did

在配置链路时新增自定义标签的选项,有以下逻辑:

当链路追踪开启时生效,默认为空

支持添加多个自定义标签,每个自定义标签的key不能为空且不能重复。

自定义标签的值分为固定值,从环境变量获取,从请求头中获取,而且值的获取方式只能选择其中一个。从环境变量获取和请求头中获取时可以设置默认值。值不允许为空。

Ⅱ. Does this pull request fix one issue?

fixes #3098

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Nov 6, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望网关链路追踪增加自定义标签功能 || I hope gateway link tracking will add custom label functionality

2 participants