Skip to content

0.39.0

Compare
Choose a tag to compare
@sentry-release-bot sentry-release-bot released this 10 Jun 12:00

Logs

Support for Sentry structured logs has been added to the SDK.

  • To set up logs, enable the logs feature of the sentry crate and set enable_logs to true in your client options.
  • Then, use the logger_trace!, logger_debug!, logger_info!, logger_warn!, logger_error! and logger_fatal! macros to capture logs.
  • To filter or update logs before they are sent, you can use the before_send_log client option.
  • Please note that breaking changes could occur until the API is finalized.

Features

Behavioral changes

  • refactor(core): remove support for traceparent (#807) by @lcian
    • The SDK doesn't support parsing the traceparent distributed tracing header anymore. This means that continue_from_headers (and, as a consequence, parse_headers) will only take into account the sentry-trace header from now on.
    • If you need to continue traces based on the information in the traceparent header, please parse the information from it and then use the API to manually create the desired transaction.
  • feat(core): implement Tracing without Performance (#811) by @lcian
    • The SDK now implements Tracing without Performance, which makes it so that each Scope is associated with an object holding some tracing information.
    • This information is used as a fallback when capturing an event with tracing disabled or otherwise no ongoing span, to still allow related events to be linked by a trace.
    • A new API Scope::iter_trace_propagation_headers has been provided that will use the fallback tracing information if there is no current Span on the Scope.

Breaking changes

  • refactor: remove debug-logs feature (#820) by @lcian
    • The deprecated debug-logs feature of the sentry crate, used for the SDK's own internal logging, has been removed.