-
Notifications
You must be signed in to change notification settings - Fork 377
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
Rename error_handler
settings to on_error
#3341
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.0 #3341 +/- ##
==========================================
+ Coverage 98.06% 98.09% +0.03%
==========================================
Files 1241 1248 +7
Lines 72027 72129 +102
Branches 3395 3397 +2
==========================================
+ Hits 70632 70757 +125
+ Misses 1395 1372 -23 ☔ View full report in Codecov by Sentry. |
Upgrade note suggestions:
The
I would move this line above the table and change it to: Changing the handler name in your configuration from
For GRPC: on_error will be invoked on both server and client side instrumentation. Merge your I'm not exactly sure what "The implementation for on_error should distinguish between the span." means? |
94a6800
to
3540276
Compare
2.0 Upgrade Guide notes
The
error_handler
settings have been replaced byon_error
to align with the options forDatadog::Tracing.trace(options)
.Changing the name in your configuration from
error_handler
toon_error
is all that is required for most integrations.Complete details are below.
error_handler
, it was never used.error_handler
toon_error
error_handler
2. Add
on_error
anderror_status_codes
error_handler
2. Add
on_error
anderror_status_codes
error_handler
,server_error_handler
andclient_error_handler
2. Add
on_error
.error_handler
toon_error
error_handler
toon_error
error_handler
toon_error
error_handler
toon_error
error_handler
toon_error
error_handler
toon_error
For GRPC:
on_error
would be invoke on both server and client side instrumentation. Merge yourserver_error_handler
andclient_error_handler
toon_error
. The implementation foron_error
should distinguish between the server and client.For faraday and excon:
error_handler
settingserror_status_codes
to control tagging span with error, the default is 400...600 (previous only server servers are tagged.)on_error
to control behaviour when exception is raised. For example:Faraday::ConnectionFailed
/Excon::Error::Timeout