- chore(deps): bump rustls (#592) by @utkarshgupta137
- Apply scope metadata to transactions (#590) by @loewenheim
- feat(tracing): Improve structure for tracing errors (#585) by @jan-auer
- feat(crons): Add monitor check-in types to sentry-types (#577) by @evanpurkhiser
Features:
- Add a new
(tower-)axum-matched-pathfeature to use theMatchedPathas transaction name, along with attaching the request metadata to the transaction.
Fixes:
- Fix rate-limiting/filtering of raw envelopes.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- Aligned profiling-related protocol types.
Features:
- Added a
ProfilesSamplerto theClientOptions.
Fixes:
- Fix building
ureqtransport without thenative-tlsfeature. - Fixed serialization of raw
Envelopes, and added a newfrom_bytes_rawconstructor.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- The minimum supported Rust version was bumped to 1.66.0 due to CI workflow misconfiguration.
Fixes:
- Switch to checked version of
from_secs_f64intimestamp_to_datetimefunction to prevent panics (#554) by @olksdr
Internal:
- Disable unnecessary default regex features for
sentry-backtrace(#552) by @xfix - Use correct Rust toolchain for MSRV jobs (#555) by @kamilogorek
Features:
debug_imagesis now a default feature. (#545- Added a
from_path_rawfunction toEnvelopethat reads an envelope from a file without parsing anything. (#549) - Added a
datamethod toperformance::Spanthat gives access to the span's attached data. (#548)
Fixes:
- Envelopes will be discarded rather than blocking if the transport channel fills up. (#546)
- fix: Prefer
match_patternovermatch_namein actix (#539) by @wuerges - feat(profiling): Add profile context to transaction. (#538) by @viglia
- Re-disable scheduled jobs on forks (#537) by @MarijnS95
- fix: Avoid Deadlock popping ScopeGuards out of order (#536) by @Swatinem
- sentry-core: make TraceContext publicly readable (#534) by @tommilligan
- sentry-core: make TransactionContext.trace_id readable (#533) by @tommilligan
- docs: fix outdated
native-tls/rustlsinfo in README (#535) by @seritools - features: Make
tower-httpenable thetowerfeature (#532) by @Turbo87
Features:
- Users of
TransactionContextmay now addcustomcontext to it. This may be used bytraces_samplerto decide sampling rates on a per-transaction basis. (#512)
Fixes:
- Correctly strip crates hashes for v0 symbol mangling. (#525)
Internal:
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Allow
traces_samplerto inspect well known properties ofTransactionContext(#514)
Breaking Changes:
- The minimum supported Rust version was bumped to 1.60.0 due to requirements from dependencies. (#498)
- Added the
traces_sampleroption toClientOptions. This allows the user to customise sampling rates on a per-transaction basis. (#510)
Features:
- Add support for Profiling feature. (#479)
- Add
SSL_VERIFYoption to control certificate verification. (#508) - Add Windows OS version to OS context (#499)
- Add a
tower-httpfeature as a shortcut (#493)
Internal:
- Take advantage of weak features in Rust 1.60 for TLS enablement (#454)
- Turn off
pprofdefault features (#491) - Change session update logic to follow the spec (#477)
- Extract public
event_from_errorfn insentry-anyhow(#476)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- The minimum supported Rust version was bumped to 1.57.0 due to requirements from dependencies. (#472)
- Add the
rust-versionfield to the manifest. (#473) - Update to edition 2021. (#473)
Features:
Internal:
- Replace ancient
lazy_staticcrate withonce_cellorconstslices. (#471)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- Updated the
debugidanduuiddependencies to versions0.8.0and1.0.0respectively.
Features:
- Request data can now be attached to Transactions and Spans via
set_transaction. (#439) - macOS versions are now reported instead of the Darwin kernel version. (#451)
- Support capturing the error of functions instrumented with
#[instrument(err)]. (#453) - Support capturing span data of instrumented functions. (#445)
- Expose the
debug_imagesfunction fromsentry-debug-images.
Fixes:
- Generate a more correct request URL in the
sentry-towerintegration. (#460) - Do not
panicon invalidHTTP(S)_PROXYenv. (#450)
Internal:
- Project Ids in DSN are treated as opaque strings. (#452)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- The minimum supported Rust version was bumped to 1.54.0 due to requirements from dependencies.
- Updated the
sentry-actixintegration toactix-web@4. (#437)
Features:
- Calling
Scope::set_transactionwill override the Transaction name of any currently running performance monitoring transaction. (#433)
Fixes:
- Make sure Spans/Transactions have a meaningful/non-empty name. (#434)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
Fixes:
- Remove unused
serde_jsonfeature fromcurldependency. (#420) sentry-tracing: When converting atracingevent to asentryevent, don't create an exception if the original event doesn't have one (#423)sentry-tracing: Add line numbers and tags into custom Contexts sections. (#430)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Make sure
sentry-corecompiler without theclientfeature. (#416) - Fix incorrect wrapping of Service Futures in
sentry-towerthat could lead to memory leaks combined with the Http Service. (#417)
Breaking Changes:
- The minimum supported Rust version was bumped to 1.53.0 due to requirements from dependencies.
- The
backtracefeature ofsentry-anyhowis enabled by default. (#362) - The
tracing-subscriberdependency ofsentry-tracinghas been bumped to version0.3.x. (#377) Scope::add_event_processornow takes a generic parameter instead of a boxed function.(#380)- The new performance monitoring APIs required changes to a few
protocoltypes. - A few more constructors are now decorated with
#[must_use]. - Usage of
chronoin public API types was removed in favor ofSystemTime. (#409)
Features:
- Added manual APIs for performance monitoring and span/transaction collection. (#395)
- Added span/transaction collection to
sentry-tracing. (#350, #400) - Added a new crate
sentry-towerand featuretowerthat enables integration withtower. (#356) - The new
sentry-towercrate has ahttpfeature which can be used to log request details and start new performance monitoring spans based on incoming distributed tracing headers. (#397) - Similarly, the
sentry-actixintegration also has the ability to start new performance monitoring spans based on incoming distributed tracing headers. (#411) - Added a new feature
surf-h1for usingsurfwith the h1 client. (#357) - Added support for
Span::recordtosentry-tracing. (#364) - Errors captured in the
tracingintegration are being reported as sentry Exceptions. (#412) - Added Windows support for debug images. (#366)
Fixes:
- The
tokiodependency is now only required for thecurl,reqwest, andsurffeatures. (#363) - The rate limiting implementation was updated to follow the expected behavior. (#410)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- The minimum supported Rust version was bumped to 1.46.0 due to requirements from dependencies.
Features:
- Added support for pre-aggregated Sessions using the new
SessionMode::Requestoption. This requires Sentry 21.2. - Added a new
Client::flushmethod to explicitly flush the transport and use that to make sure events are flushed out when usingpanic=abort. - Added a new
flushhook to theTransporttrait. - Exposed a new
RateLimiterutility that transport implementations can use to drop envelopes early when the DSN is being rate limited. - Optionally allow capturing backtraces from anyhow errors.
- Added new crate
sentry-tracingand featuretracingthat enables support to capture Events and Breadcrumbs from tracing logs.
Fixes:
- Honor the
attach_stacktraceoption correctly when capturing errors. - Added the missing
addr_modeproperty toFrame. - Fixed extracting the error type from a
anyhow::msg.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- The minimum supported Rust version was bumped to 1.45.0.
- The deprecated
error-chainandfailureintegrations, features and crates were removed.
Features:
- The
slogintegration now supports capturingslog::KVpairs for both breadcrumbs and events. - Preliminary support for attachments was added to
sentry-typesand theEnvelope. However, deeper integration into the SDK is not yet complete.
Fixes:
- Fix regression defaulting
ClientOptions::environmentfromSENTRY_ENVIRONMENT. - The
debug-imagesintegration now captures the correctimage_addr. - Do not send invalid exception events in the
logandslogintegrations. Both integrations no longer attach the location. To receive location information, setoptions.attach_stacktracetotrue. - Process all event backtraces the same way.
- Fix a panic in the session flusher.
Updates:
- Updated
reqwestto version0.11, which is based ontokio 1. - Removed usage of the abandoned
imcrate, thus solving a transitive RUSTSEC advisory.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking Changes:
- Bump the minimum required Rust version to 1.42.0.
- The
actixintegration / middleware is now compatible withactix-web 3. - Removed all deprecated exports and deprecated feature flags.
- The
failureintegration / feature is now off-by-default along with its deprecation. - The
logandslogintegrations were re-designed, they now offer types that wrap alog::Logorslog::Drainand forward log events to the currently active sentryHubbased on an optional filter and an optional mapper. - The new
logintegration will not implicitly calllog::set_max_level_filteranymore, and users need to do so manually.
Features:
- The SDK will now set a default
environmentbased ondebug_assertions. - Session updates are now sent lazily.
- Add the new
end_session_with_statusglobal and Hub functions which allow ending a Release Health Session with an explicitSessionStatus.
Deprecations:
- The
error-chainandfailureintegration was officially deprecated and will be removed soon.
Fixes:
- Fixed a deadlock when nesting
configure_scopecalls. - Improved transport shutdown logic and fixed a potential deadlock on shutdown.
Highlights:
- The Rust SDK now has experimental support for Release Health Sessions using the
start_sessionandend_sessionAPI (global and on theHub).
Breaking Changes:
- The
Transportwas changed to work onEnvelopes instead ofEvents. Thesend_eventtrait function was removed in favor ofsend_envelope.
Features:
- The
Envelope,SessionUpdate, and other related types have been added to thesentry_types::protocol::v7module. - A
clear_breadcrumbsmethod was added toScope. sentry_contexts::utilsis now public.
Fixes:
- Panic events now have a proper
mechanism.
Deprecations:
- The
FutureandFutureExtexports have been renamed toSentryFutureandSentryFutureExtrespectively.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Better deal with concurrent Hub access.
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 Integrations.
Breaking Changes:
- The
utilsmodule has been removed, and most utils have been moved into integrations. - The
integrationsmodule was completely rewritten. - When constructing a
Clientusing aClientOptionsstruct manually, it does not have any default integrations, and it does not resolve default options from environment variables any more. Please use the explicitapply_defaultsfunction instead. Theinitfunction will automatically callapply_defaults. - The
initfunction can’t be called with aClientanymore.
Features:
- Sentry can now capture
std::error::Errortypes, using thecapture_errorandHub::capture_errorfunctions, and an additionalevent_from_errorutility function. - Sentry now has built-in support to bind a
Hubto aFuture. - Sentry can now be extended with
Integrations. - The
ClientInitGuard,FutureandScopeGuardstructs andapply_defaults,capture_error,event_from_error,with_integrationandparse_type_from_debugfunctions have been added to the root exports. - The
FutureExt,Integration,IntoBreadcrumbs,IntoDsn,TransportandTransportFactorytraits are now exported. - The
typesmodule now re-exportssentry-types.
Deprecations:
- The
internalsmodule is deprecated. Pleaseuseitems from the crate root or thetypesmodule instead. - All the feature flags have been renamed, the old names are still available but will be removed in the future.
- Fix potential segfault with
with_debug_meta(#211). - Fix panic when running inside of tokio (#186).
-
Bump the minimum required Rust version to 1.40.0.
-
Upgrade most dependencies to their current versions (#183):
env_logger 0.7reqwest 0.10error-chain 0.12url 2.1sentry-types 0.14
-
Remove the
logandenv_loggerintegration from default features (#183). -
Fix backtraces for newer
failureandbacktraceversions (#183). -
Fix compilation of the
with_rust_infofeature (#183). -
Add "panics" sections to functions that may panic (#174).
-
Document all feature flags consistently.
- Upgrade findshlibs (#153)
- Bump the minimum required Rust version to 1.34.0.
- Fix potentially broken payloads when using the
curltransport (#152). - Report the SDK as
sentry.rustfor analytics (#142).
- Fix backtraces with inline frames in newer Rust versions (#141).
- Added a feature flag to disable the default sentry features in sentry-actix. (#139)
- Added
with_rustlsandwith_native_tlsfeatures to control SSL in the default reqwest transport. (#137)
- Added support for passing custom reqwest clients/curl handles to the transport (#130)
- Correct dependency bump for sentry types.
- Upgraded to newer version of the internal sentry types crate.
- Fixed a potential issue where an event might have been dropped if it was sent right after the curl transport was created.
- Fixed an issue where turning off the http transports would cause a compile error.
- Added support for reading
SENTRY_ENVIRONMENTandSENTRY_RELEASEenvironment variables. - Added support for panicking with failure errors.
- Added
attach_stacktracesconfiguration option to logging integration - Fixed a bug where
emit_breadcrumbswas incorrectly handled. - Restructured the transport system. You can now disable the builtin HTTP reqwest based transport or opt for the curl transport.
- Fixed a potential issue where an event might have been dropped if it was sent right after the reqwest transport was created.
- Added support for server side symbolication for linux platforms.
Breaking Change: This release requires Rust 1.31 or newer.
- Upgrade the logger integration to
env_logger:0.6 - Support debug identifiers of loaded images on Linux (#114)
- Update
sentry-typesto the latest version - Fix
log::log_enabled!when log integration is active
- Resolve a memory leak in the actix integration.
- Fix an issue where dropping a scope guard for a non active hub resulted in a panic.
- Added support for the new failure
Fail::name - Improved support for actix failure based error
- Added
RefUnwindSafeforClientOptions - Remove the never supported
reposoption.
- Upgrade reqwest to 0.9
- Add support for debug logging through the log crate (
with_debug_to_logfeature) - Added debug log for when events are dropped in the transport.
- Fix compilation error in
sentry-actix(#87)
- Added
sentry::with_scope - Updated the sentry types to 0.8.x
- Streamline types with other SDKs. Most notabe changes:
Event::idhas been renamed toEvent::event_idEvent::exceptionshas been renamed toEvent::exception- Some collections are now wrapped in
Values
- Added more debug logs.
- Removed
drain_events. Events are now drained by callingClient::closeor on the transport onTransport::shutdown. - Removed
Hub::add_event_processor. This was replaced byScope::add_event_processorwhich is easier to use (only returns factory function)/ - Added various new client configuration values.
- Unified option handling
This is likely to be the final API before 1.0
- Remove null byte terminator from device model context (#33)
- Fix
unamebreaking builds on Windows (#32) - Fix the crate documentation link (#31)