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

try to update to new middleware #5740

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Conversation

bjartek
Copy link
Contributor

@bjartek bjartek commented Apr 19, 2024

Updating the grpc middleware to v2.1.0 and use the new code for the logging interceptor.

note that the

was removed in the stable api because "it was not beeing used", if this is used here and we want to do this we have to put the fields into context and then inject them in.

Fixes #5739

Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

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

looks good. Thanks for the improvement!

I think the lint error can be fixed by updating line 16 with logging.LevelDebug

engine/common/rpc/logging_interceptor.go Outdated Show resolved Hide resolved
bjartek and others added 2 commits April 21, 2024 10:29
Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
@bjartek
Copy link
Contributor Author

bjartek commented Apr 21, 2024

fixed linter and applies suggestions. PTAL.

@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.71%. Comparing base (8afb152) to head (a469584).
Report is 1141 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5740      +/-   ##
==========================================
+ Coverage   56.00%   63.71%   +7.70%     
==========================================
  Files        1024      103     -921     
  Lines       99327    11665   -87662     
==========================================
- Hits        55632     7432   -48200     
+ Misses      39455     3495   -35960     
+ Partials     4240      738    -3502     
Flag Coverage Δ
unittests 63.71% <ø> (+7.70%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@peterargue peterargue added this pull request to the merge queue Apr 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 23, 2024
@peterargue peterargue added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 24, 2024
@peterargue peterargue added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 24, 2024
@peterargue peterargue added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 24, 2024
@peterargue peterargue added this pull request to the merge queue Apr 24, 2024
@peterargue peterargue removed this pull request from the merge queue due to a manual request Apr 24, 2024
@peterargue peterargue added this pull request to the merge queue Apr 25, 2024
Merged via the queue into onflow:master with commit a962fc7 Apr 25, 2024
55 checks passed
@bjartek bjartek deleted the grpc-middleware branch April 25, 2024 14:35
This pull request was closed.
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.

update go-grpc-middleware to not prerelease
4 participants