5.11.0
Features
-
Make
:valueinSingleExceptionInterfacewritable, so that it can be modified inbefore_sendunderevent.exception.values[n].value#2072 -
Add
sampledfield todynamic_sampling_context#2092 -
Consolidate HTTP span data conventions with OpenTelemetry with
Sentry::Span::DataConventions#2093 -
Consolidate database span data conventions with OpenTelemetry for ActiveRecord and Redis #2100
-
Add new
config.trace_propagation_targetsoption to set targets for which headers are propagated in outgoing HTTP requests #2079# takes an array of strings or regexps config.trace_propagation_targets = [/.*/] # default is to all targets config.trace_propagation_targets = [/example.com/, 'foobar.org/api/v2']
-
Tracing without Performance
- Implement
PropagationContextonScopeand addSentry.get_trace_propagation_headersAPI #2084 - Implement
Sentry.continue_traceAPI #2089
The SDK now supports connecting arbitrary events (Errors / Transactions / Replays) across distributed services and not just Transactions.
To continue an incoming trace starting with this version of the SDK, useSentry.continue_traceas follows.# rack application def call(env) transaction = Sentry.continue_trace(env, name: 'transaction', op: 'op') Sentry.start_transaction(transaction: transaction) end
To inject headers into outgoing requests, use
Sentry.get_trace_propagation_headersto get a hash of headers to add to your request. - Implement
Bug Fixes
- Duplicate
Rails.loggerbefore assigning it to the SDK (#2086)