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(log) : support logging with context(#596) #705

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

Mulavar
Copy link
Contributor

@Mulavar Mulavar commented Jul 11, 2023

What this PR does:

  1. add composite logger to manage main/sql/tx logger
  2. support to parse and propagate the trace context to logging
  3. make the logger achieve context level isolation

Which issue(s) this PR fixes:

Fixes #596

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.43 🎉

Comparison is base (39096e4) 36.77% compared to head (dd583a2) 37.20%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #705      +/-   ##
==========================================
+ Coverage   36.77%   37.20%   +0.43%     
==========================================
  Files         229      230       +1     
  Lines       24016    24504     +488     
==========================================
+ Hits         8832     9117     +285     
- Misses      14177    14343     +166     
- Partials     1007     1044      +37     
Impacted Files Coverage Δ
pkg/executor/redirect.go 4.40% <0.00%> (+0.58%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

pkg/executor/redirect.go Outdated Show resolved Hide resolved
@jjeffcaii jjeffcaii changed the title [LOG]Support logging with context(#596) feat(log) : support logging with context(#596) Jul 13, 2023
1. add composite logger to manage main/sql/tx logger
2. support to parse and propagate the trace context to logging
3. make the logger achieve context level isolation
@sonarcloud
Copy link

sonarcloud bot commented Jul 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
11.9% 11.9% Duplication

@maronghe maronghe merged commit 7ea76b0 into arana-db:master Jul 17, 2023
12 checks passed
Lvnszn pushed a commit to Lvnszn/arana that referenced this pull request Jul 22, 2023
1. add composite logger to manage main/sql/tx logger
2. support to parse and propagate the trace context to logging
3. make the logger achieve context level isolation
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.

[Feature] add log for sharding logic SQL and real SQL.
6 participants