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

feat(tracing): added tracing middleware #327

Merged
merged 5 commits into from
Oct 17, 2024
Merged

feat(tracing): added tracing middleware #327

merged 5 commits into from
Oct 17, 2024

Conversation

flc1125
Copy link
Contributor

@flc1125 flc1125 commented Oct 17, 2024

The tracing middleware provides a way to trace the execution of a request through the application. It is based on the OpenTelemetry standard and can be used with any tracer that implements this standard.

The package is forked from tracing and optimized on this basis. Thanks to the original author for his contribution.


Change items:

  1. Upgraded the semconv specification from 1.4.0 to 1.26.0
  2. Supplemented some attribute information

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request go Pull requests that update Go code labels Oct 17, 2024
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 97.64151% with 5 lines in your changes missing coverage. Please review.

Project coverage is 76.19%. Comparing base (e2a4fa0) to head (d5ae49a).
Report is 2 commits behind head on 2.x.

Files with missing lines Patch % Lines
middleware/tracing/tracing.go 92.30% 3 Missing ⚠️
middleware/tracing/span.go 98.05% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x     #327      +/-   ##
==========================================
+ Coverage   74.81%   76.19%   +1.38%     
==========================================
  Files         102      107       +5     
  Lines        3291     3503     +212     
==========================================
+ Hits         2462     2669     +207     
- Misses        754      758       +4     
- Partials       75       76       +1     

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

@flc1125 flc1125 merged commit db00f60 into 2.x Oct 17, 2024
12 checks passed
@flc1125 flc1125 deleted the kratos-tracing branch October 17, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(middleware/tracing): refactor the tracing middleware based on the official version
1 participant