Skip to content

feat: support encoding and decoding TSF headers without TSF Consul - #1846

Merged
fuyuwei01 merged 2 commits into
Tencent:2021from
fuyuwei01:2021
Oct 26, 2026
Merged

fuyuwei01 merged 2 commits into
Tencent:2021from
fuyuwei01:2021

Conversation

@fuyuwei01

Copy link
Copy Markdown
Collaborator

…1816)

  • feat: support encoding and decoding TSF headers without TSF Consul

Allow TSF-Tags transfer on Polaris via spring.cloud.tencent.metadata.tsf-header-compatible so putTag still works when Consul is off.

  • chore: fill changelog PR number 1816.

  • refactor: centralize TSF header compatible check in TsfContextUtils


PR Type

Describe what this PR does for and how you did.

Adding the issue link (#xxx) if possible.

Note

Checklist

  • Add information of this PR to CHANGELOG.md in root of project.
  • Add documentation in javadoc or comment below the PR if necessary.

peerless1024 and others added 2 commits October 26, 2026 15:12
…encent#1816)

* feat: support encoding and decoding TSF headers without TSF Consul

Allow TSF-Tags transfer on Polaris via spring.cloud.tencent.metadata.tsf-header-compatible so putTag still works when Consul is off.

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: fill changelog PR number 1816.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: centralize TSF header compatible check in TsfContextUtils

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: evelynwei <evelynwei@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The 2021 branch uses Spring Boot 2.x, so servlet classes are in
javax.servlet instead of jakarta.servlet.

Co-Authored-By: Codex
Signed-off-by: fuyuwei01 <fuyuwei01@qq.com>
@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.57143% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.23%. Comparing base (634cc2b) to head (7768a0d).

Files with missing lines Patch % Lines
...ncodeTransferMedataRestTemplateEnhancedPlugin.java 40.00% 3 Missing ⚠️
...e/EncodeTransferMedataWebClientEnhancedPlugin.java 40.00% 2 Missing and 1 partial ⚠️
.../core/EncodeTransferMedataFeignEnhancedPlugin.java 60.00% 2 Missing ⚠️
...ta/core/EncodeTransferMedataScgEnhancedPlugin.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               2021    #1846      +/-   ##
============================================
+ Coverage     55.94%   56.23%   +0.28%     
  Complexity      149      149              
============================================
  Files           481      481              
  Lines         14051    14074      +23     
  Branches       1753     1754       +1     
============================================
+ Hits           7861     7914      +53     
+ Misses         5560     5520      -40     
- Partials        630      640      +10     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peerless1024 peerless1024 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fuyuwei01
fuyuwei01 merged commit 9482b26 into Tencent:2021 Oct 26, 2026
13 checks passed
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.

2 participants