Releases: getsentry/sentry-rust
0.21.0
Breaking Changes:
- Bump the minimum required Rust version to 1.42.0.
- The
actix
integration / middleware is now compatible withactix-web 3
. - Removed all deprecated exports and deprecated feature flags.
- The
failure
integration / feature is now off-by-default along with its deprecation. - The
log
andslog
integrations were re-designed, they now offer types that wrap alog::Log
orslog::Drain
and forward log events to the currently active sentryHub
based on an optional filter and an optional mapper. - The new
log
integration will not implicitly calllog::set_max_level_filter
anymore, and users need to do so manually.
Features:
- The SDK will now set a default
environment
based ondebug_assertions
. - Session updates are now sent lazily.
- Add the new
end_session_with_status
global and Hub functions which allow ending a Release Health Session with an explicitSessionStatus
.
Deprecations:
- The
error-chain
andfailure
integration was officially deprecated and will be removed soon.
0.20.1
0.20.0
Highlights:
- The Rust SDK now has experimental support for Release Health Sessions using the
start_session
andend_session
API (global and on theHub
).
Breaking Changes:
- The
Transport
was changed to work onEnvelope
s instead ofEvent
s. Thesend_event
trait function was removed in favor ofsend_envelope
.
Features:
- The
Envelope
,SessionUpdate
, and other related types have been added to thesentry_types::protocol::v7
module. - A
clear_breadcrumbs
method was added toScope
. sentry_contexts::utils
is now public.
Fixes:
- Panic events now have a proper
mechanism
.
Deprecations:
- The
Future
andFutureExt
exports have been renamed toSentryFuture
andSentryFutureExt
respectively.
Thank you:
Features, fixes and improvements in this release have been contributed by:
0.19.1
0.19.0
Highlights:
The sentry
crate has been split up into a sentry-core
, and many smaller per-integration crates. Application users should continue using the sentry
crate, but library users and integration/transport authors are encouraged to use the sentry-core
crate instead.
Additionally, sentry can now be extended via Integration
s.
Breaking Changes:
- The
utils
module has been removed, and most utils have been moved into integrations. - The
integrations
module was completely rewritten. - When constructing a
Client
using aClientOptions
struct manually, it does not have any default integrations, and it does not resolve default options from environment variables any more. Please use the explicitapply_defaults
function instead. Theinit
function will automatically callapply_defaults
. - The
init
function can’t be called with aClient
anymore.
Features:
- Sentry can now capture
std::error::Error
types, using thecapture_error
andHub::capture_error
functions, and an additionalevent_from_error
utility function. - Sentry now has built-in support to bind a
Hub
to aFuture
. - Sentry can now be extended with
Integration
s. - The
ClientInitGuard
,Future
andScopeGuard
structs andapply_defaults
,capture_error
,event_from_error
,with_integration
andparse_type_from_debug
functions have been added to the root exports. - The
FutureExt
,Integration
,IntoBreadcrumbs
,IntoDsn
,Transport
andTransportFactory
traits are now exported. - The
types
module now re-exportssentry-types
.
Deprecations:
- The
internals
module is deprecated. Pleaseuse
items from the crate root or thetypes
module instead. - All the feature flags have been renamed, the old names are still available but
0.18.1
0.18.0
-
Upgrade most dependencies to their current versions (#183):
env_logger 0.7
reqwest 0.10
error-chain 0.12
url 2.1
sentry-types 0.14
-
Remove the
log
andenv_logger
integration from default features (#183). -
Fix backtraces for newer
failure
andbacktrace
versions (#183). -
Fix compilation of the
with_rust_info
feature (#183). -
Add "panics" sections to functions that may panic (#174).
-
Document all feature flags consistently.