Skip to content
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

fileservice: refactor http trace #20177

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Conversation

reusee
Copy link
Contributor

@reusee reusee commented Nov 19, 2024

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #20129 #20221

What this PR does / why we need it:

refactor HTTP trace to reduce cost.

Copy link
Contributor

@fengttt fengttt left a comment

Choose a reason for hiding this comment

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

What exactly is the change?
Do we have a number of how much/big is the improvement?

@reusee
Copy link
Contributor Author

reusee commented Nov 20, 2024

What exactly is the change? Do we have a number of how much/big is the improvement?

现在的代码,即使 Read 命中缓存,没有任何http操作,也一样会初始化httptrace。这个pr改成将httptrace放在object storage层,只在实际发生http操作时,才加上。开销是必然会降低的。

另外现在的代码未覆盖所有可能涉及http操作的路径,这个pr修正了。

@reusee reusee requested a review from fengttt November 20, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement size/L Denotes a PR that changes [500,999] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants