Skip to content

Add DisableErrSkip option to span status#37

Merged
odeke-em merged 1 commit intoopencensus-integrations:masterfrom
a8m:master
Jun 24, 2019
Merged

Add DisableErrSkip option to span status#37
odeke-em merged 1 commit intoopencensus-integrations:masterfrom
a8m:master

Conversation

@a8m
Copy link
Copy Markdown
Contributor

@a8m a8m commented Jun 23, 2019

Adding a DisableErrSkip option to TraceOptions in order to be able to suppress driver.ErrSkip errors in spans.

Right now, it's really annoying to see many "non-real failures" reporting in the tracing dashboard (many spans with status != 0), since ocsql sets the span's status to non zero when the error is driver.ErrSkip, which is not a real failure.

I'm keeping the behavior backward compatible by disabling the error reporting only when this option is being set explicitly.

Attaching here screenshots with before/after:

  • Before:

before1

before2

  • After - spans with driver.ErrSkip still hold the message, but are not reported as errors:

after 1

Awesome package, thanks for creating this.

@jcchavezs
Copy link
Copy Markdown

jcchavezs commented Jun 23, 2019 via email

Copy link
Copy Markdown
Member

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

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

Thank you for working on this @a8m and welcome to the ocsql project!

I've added a small suggestion but otherwise LGTM!

Comment thread driver.go
@odeke-em odeke-em merged commit 41ee6eb into opencensus-integrations:master Jun 24, 2019
@Seklfreak Seklfreak mentioned this pull request Nov 18, 2019
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.

3 participants