Skip to content

Commit e170eca

Browse files
committed
Merge branch 'master' into fix/linux-debug-images
* master: (59 commits) fix: Correctly apply environment from env (#293) fix: Make Rust 1.48 clippy happy (#294) docs: Document integrations and the Hub better (#291) ref: Remove deprecated error-chain and failure crates (#290) release: 0.21.0 meta: Update Changelog feat: End sessions with explicit status (#289) fix: Scope transaction name can be overriden in sentry-actix (#287) fix: sentry-actix should not capture client errors (#286) fix: Clean up sentry-actix toml (#285) ref: Remove empty integrations (#283) feat: Add support for actix-web 3 (#282) feat: Preliminary work to integrate Performance Monitoring (#276) ref: Introduce a SessionFlusher (#279) fix: Set a default environment based on debug_assertions (#280) ref: Rearchitect the log and slog Integrations (#268) ref: Deprecate public fields on Integrations (#267) ci: Make testfast actually fast (#273) fix: Update surf and unbreak CI (#274) ci: Use smarter cache action (#272) ...
2 parents 67f3b24 + 8463d71 commit e170eca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+3671
-2001
lines changed

.appveyor.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.craft.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
---
2-
# Configuration for sentry-craft (https://github.com/getsentry/craft)
1+
minVersion: "0.10.1"
32
github:
43
owner: getsentry
54
repo: sentry-rust
5+
changelogPolicy: auto
6+
7+
statusProvider:
8+
name: github
9+
artifactProvider:
10+
name: none
11+
612
targets:
713
- name: crates
8-
- name: gh-pages
14+
noDevDeps: true
915
- name: github
10-
changelogPolicy: simple
16+
- name: registry
17+
type: sdk
18+
config:
19+
canonical: "cargo:sentry"

.github/workflows/ci.yml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "release/**"
8+
pull_request:
9+
10+
jobs:
11+
lints:
12+
name: Lints
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout sources
16+
uses: actions/checkout@v2
17+
18+
- name: Install stable toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: stable
23+
override: true
24+
components: rustfmt, clippy
25+
26+
- uses: Swatinem/rust-cache@v1
27+
28+
- name: Run cargo fmt
29+
uses: actions-rs/cargo@v1
30+
with:
31+
command: fmt
32+
args: --all -- --check
33+
34+
- name: Run cargo clippy
35+
uses: actions-rs/clippy-check@v1
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
args: --all-features --workspace --tests --examples -- -D clippy::all
39+
40+
check:
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
os: [ubuntu-latest, macos-latest, windows-latest]
45+
rust: [stable]
46+
47+
name: checkall using ${{ matrix.rust }} on ${{ matrix.os }}
48+
runs-on: ${{ matrix.os }}
49+
50+
env:
51+
RUSTFLAGS: -Dwarnings
52+
53+
steps:
54+
- name: Checkout sources
55+
uses: actions/checkout@v2
56+
57+
- name: Install rust toolchain
58+
uses: actions-rs/toolchain@v1
59+
with:
60+
profile: minimal
61+
toolchain: ${{ matrix.rust }}
62+
override: true
63+
64+
- uses: Swatinem/rust-cache@v1
65+
66+
- run: make checkall
67+
68+
test:
69+
strategy:
70+
fail-fast: false
71+
matrix:
72+
os: [ubuntu-latest, macos-latest, windows-latest]
73+
rust: [stable]
74+
75+
name: testall using ${{ matrix.rust }} on ${{ matrix.os }}
76+
runs-on: ${{ matrix.os }}
77+
78+
steps:
79+
- name: Checkout sources
80+
uses: actions/checkout@v2
81+
82+
- name: Install rust toolchain
83+
uses: actions-rs/toolchain@v1
84+
with:
85+
profile: minimal
86+
toolchain: ${{ matrix.rust }}
87+
override: true
88+
89+
- uses: Swatinem/rust-cache@v1
90+
91+
- name: Run cargo test
92+
uses: actions-rs/cargo@v1
93+
with:
94+
command: test
95+
args: --workspace --all-features
96+
97+
fast-MSRV:
98+
strategy:
99+
fail-fast: false
100+
matrix:
101+
os: [ubuntu-latest, macos-latest, windows-latest]
102+
rust: [1.42.0]
103+
104+
name: checkfast/testfast using ${{ matrix.rust }} on ${{ matrix.os }}
105+
runs-on: ${{ matrix.os }}
106+
107+
env:
108+
RUSTFLAGS: -Dwarnings
109+
110+
steps:
111+
- name: Checkout sources
112+
uses: actions/checkout@v2
113+
114+
- name: Install rust toolchain
115+
uses: actions-rs/toolchain@v1
116+
with:
117+
profile: minimal
118+
toolchain: ${{ matrix.rust }}
119+
override: true
120+
121+
- uses: Swatinem/rust-cache@v1
122+
123+
- run: make checkfast
124+
125+
- run: make testfast

.travis.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,122 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
**Breaking Changes**:
6+
7+
- The deprecated `error-chain` and `failure` integrations, features and crates were removed.
8+
9+
**Fixes**:
10+
11+
- Fix regression defaulting `ClientOptions::environment` from `SENTRY_ENVIRONMENT`.
12+
13+
## 0.21.0
14+
15+
**Breaking Changes**:
16+
17+
- Bump the minimum required Rust version to **1.42.0**.
18+
- The `actix` integration / middleware is now compatible with `actix-web 3`.
19+
- Removed all deprecated exports and deprecated feature flags.
20+
- The `failure` integration / feature is now off-by-default along with its deprecation.
21+
- The `log` and `slog` integrations were re-designed, they now offer types that wrap a `log::Log` or `slog::Drain` and forward log events to the currently active sentry `Hub` based on an optional filter and an optional mapper.
22+
- The new `log` integration will not implicitly call `log::set_max_level_filter` anymore, and users need to do so manually.
23+
24+
**Features**:
25+
26+
- The SDK will now set a default `environment` based on `debug_assertions`.
27+
- Session updates are now sent lazily.
28+
- Add the new `end_session_with_status` global and Hub functions which allow ending a Release Health Session with an explicit `SessionStatus`.
29+
30+
**Deprecations**:
31+
32+
- The `error-chain` and `failure` integration was officially deprecated and will be removed soon.
33+
34+
## 0.20.1
35+
36+
**Fixes**:
37+
38+
- Fixed a deadlock when nesting `configure_scope` calls.
39+
- Improved transport shutdown logic and fixed a potential deadlock on shutdown.
40+
41+
## 0.20.0
42+
43+
**Highlights**:
44+
45+
- The Rust SDK now has **experimental** support for [Release Health Sessions](https://docs.sentry.io/product/releases/health/) using the `start_session` and `end_session` API (global and on the `Hub`).
46+
47+
**Breaking Changes**:
48+
49+
- The `Transport` was changed to work on `Envelope`s instead of `Event`s. The `send_event` trait function was removed in favor of `send_envelope`.
50+
51+
**Features**:
52+
53+
- The `Envelope`, `SessionUpdate`, and other related types have been added to the `sentry_types::protocol::v7` module.
54+
- A `clear_breadcrumbs` method was added to `Scope`.
55+
- `sentry_contexts::utils` is now public.
56+
57+
**Fixes**:
58+
59+
- Panic events now have a proper `mechanism`.
60+
61+
**Deprecations**:
62+
63+
- The `Future` and `FutureExt` exports have been renamed to `SentryFuture` and `SentryFutureExt` respectively.
64+
65+
**Thank you**:
66+
67+
Features, fixes and improvements in this release have been contributed by:
68+
69+
- [@Jake-Shadle](https://github.com/Jake-Shadle)
70+
- [@maxcountryman](https://github.com/maxcountryman)
71+
- [@ErichDonGubler](https://github.com/ErichDonGubler)
72+
- [@nCrazed](https://github.com/nCrazed)
73+
- [@jrconlin](https://github.com/jrconlin)
74+
75+
## 0.19.1
76+
77+
**Fixes**:
78+
79+
- Better deal with concurrent Hub access.
80+
81+
## 0.19.0
82+
83+
**Highlights**:
84+
85+
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.
86+
87+
Additionally, sentry can now be extended via `Integration`s.
88+
89+
**Breaking Changes**:
90+
91+
- The `utils` module has been removed, and most utils have been moved into integrations.
92+
- The `integrations` module was completely rewritten.
93+
- When constructing a `Client` using a `ClientOptions` struct manually, it does not have any default integrations, and it does not resolve default options from environment variables any more. Please use the explicit `apply_defaults` function instead. The `init` function will automatically call `apply_defaults`.
94+
- The `init` function can’t be called with a `Client` anymore.
95+
96+
**Features**:
97+
98+
- Sentry can now capture `std::error::Error` types, using the `capture_error` and `Hub::capture_error` functions, and an additional `event_from_error` utility function.
99+
- Sentry now has built-in support to bind a `Hub` to a `Future`.
100+
- Sentry can now be extended with `Integration`s.
101+
- The `ClientInitGuard`, `Future` and `ScopeGuard` structs and `apply_defaults`, `capture_error`, `event_from_error`, `with_integration` and `parse_type_from_debug` functions have been added to the root exports.
102+
- The `FutureExt`, `Integration`, `IntoBreadcrumbs`, `IntoDsn`, `Transport` and `TransportFactory` traits are now exported.
103+
- The `types` module now re-exports `sentry-types`.
104+
105+
**Deprecations**:
106+
107+
- The `internals` module is deprecated. Please `use` items from the crate root or the `types` module instead.
108+
- All the feature flags have been renamed, the old names are still available but will be removed in the future.
109+
110+
## 0.18.1
111+
112+
- Fix potential segfault with `with_debug_meta` (#211).
113+
- Fix panic when running inside of tokio (#186).
114+
3115
## 0.18.0
4116

117+
- Bump the minimum required Rust version to **1.40.0**.
5118
- Upgrade most dependencies to their current versions (#183):
119+
6120
- `env_logger 0.7`
7121
- `reqwest 0.10`
8122
- `error-chain 0.12`

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ members = [
77
"sentry-contexts",
88
"sentry-core",
99
"sentry-debug-images",
10-
"sentry-error-chain",
11-
"sentry-failure",
1210
"sentry-log",
1311
"sentry-panic",
1412
"sentry-slog",

0 commit comments

Comments
 (0)