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

tracing: Do not auto register ErrorReporterCreateServerSpanHook #600

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

fishy
Copy link
Member

@fishy fishy commented Feb 6, 2023

Currently tracing.InitFromConfig, which is called from baseplate.New, auto registers ErrorReporterCreateServerSpanHook. With the prometheus metrics we already have very good visibility on the errors happened on thrift/grpc/http servers, and those additional sentry reports mostly just adds noise and cost without being useful. Also in the current setup there's not really an easy way for service owners to unregister ErrorReporterCreateServerSpanHook after they called baseplate.New.

As a result, flip it to opt-in. If a service really want it, they can register it themselves in their main function, after baseplate.New call.

@fishy fishy requested a review from a team as a code owner February 6, 2023 21:49
@fishy fishy requested review from konradreiche, pacejackson and ghirsch-reddit and removed request for a team February 6, 2023 21:49
Copy link
Member

@konradreiche konradreiche left a comment

Choose a reason for hiding this comment

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

This is great, I had a custom initializer to opt-out.

Currently tracing.InitFromConfig, which is called from baseplate.New,
auto registers ErrorReporterCreateServerSpanHook. With the prometheus
metrics we already have very good visibility on the errors happened on
thrift/grpc/http servers, and those additional sentry reports mostly
just adds noise and cost without being useful. Also in the current setup
there's not really an easy way for service owners to unregister
ErrorReporterCreateServerSpanHook after they called baseplate.New.

As a result, flip it to opt-in. If a service really want it, they can
register it themselves in their main function, after baseplate.New call.
@fishy fishy force-pushed the tracing-no-error-report-sentry branch from 878e42b to f95e2b3 Compare February 15, 2023 00:00
@fishy fishy merged commit f04f921 into reddit:master Feb 15, 2023
@fishy fishy deleted the tracing-no-error-report-sentry branch February 15, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants