Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Do not log gRPC NotFound and Canceled status code #1645

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

alejandrodnm
Copy link
Contributor

@alejandrodnm alejandrodnm commented Sep 14, 2022

Description

  • NotFound is returned, for example, when querying a Trace and the trace is not found.
  • Canceled when the context is canceled.

Before we were checking the errors for context.Canceled but gRPC doesn't wrap the errors, it just creates an Status object that contains the error message.

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • Updated the relevant documentation

@alejandrodnm alejandrodnm force-pushed the adn/grpc-error-log branch 3 times, most recently from 9ade36b to c04d236 Compare September 14, 2022 13:46
@alejandrodnm alejandrodnm changed the title Do not log context canceled or not found request errors Do not log gRPC NotFound and Canceled status code Sep 14, 2022
@alejandrodnm alejandrodnm marked this pull request as ready for review September 14, 2022 13:50
@alejandrodnm alejandrodnm requested a review from a team as a code owner September 14, 2022 13:50
- NotFound is returned, for example, when querying a Trace and the trace
  is not found.
- Canceled when the context is canceled.

Before we were checking the errors for context.Canceled but gRPC doesn't
wrap the errors, it just creates an Status object that contains the
error message.
@alejandrodnm alejandrodnm merged commit 4aa9a58 into master Sep 28, 2022
@alejandrodnm alejandrodnm deleted the adn/grpc-error-log branch September 28, 2022 09:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants