Skip to content

fix: Pass request-id in metadata per API #2766

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XuanYang-cn
Copy link
Contributor

@XuanYang-cn XuanYang-cn commented Apr 28, 2025

client-request-id is used to trace each API, and unique for each API. The previous code resets the channel for every API call to set it into global channel interceptor, which has great performance down and also will rewrite each other.

This PR adds client-request-id to per API metadata, and remove some of
the future calls.

See also: #2761, #2765

@XuanYang-cn XuanYang-cn added this to the 2.6.0 milestone Apr 28, 2025
@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: XuanYang-cn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

client-request-id is used to trace each API, and unique for
each API. The previous code resets the channel for every API call to
set it into global channel interceptor, which has great performance down and
also will rewrite each other.

This PR adds client-request-id to per API metadata, and remove some of
the future calls.

See also: milvus-io#2761, milvus-io#2765

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
@XuanYang-cn XuanYang-cn added the PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch label Apr 28, 2025
@mergify mergify bot added the ci-passed label Apr 28, 2025
@XuanYang-cn
Copy link
Contributor Author

@Mergifyio refresh

Copy link

mergify bot commented Apr 29, 2025

refresh

✅ Pull request refreshed

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

Successfully merging this pull request may close these issues.

2 participants