Skip to content

Commit 08c3b85

Browse files
committedApr 8, 2025··
proper sentry debug image uploads
1 parent d9ef57c commit 08c3b85

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed
 

‎.github/workflows/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
sudo apt-get update
3737
sudo apt-get install -y musl-tools pkg-config libssl-dev
3838
39+
- name: Install Sentry CLI
40+
run: |
41+
curl -sL https://sentry.io/get-cli/ | bash
42+
3943
- name: Rust Cache
4044
uses: Swatinem/rust-cache@v2
4145
with:
@@ -44,6 +48,8 @@ jobs:
4448
- name: Build binary
4549
run: |
4650
cargo build --release --target ${{ matrix.target }}
51+
sentry-cli --url ${{ secrets.SENTRY_URL }} debug-files upload --include-sources --org ${{ secrets.SENTRY_ORG }} --project ${{ secrets.SENTRY_PROJECT }} --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} target/${{ matrix.target }}/release/api
52+
4753
strip target/${{ matrix.target }}/release/api
4854
mkdir -p dist/${{ matrix.arch }}
4955
cp target/${{ matrix.target }}/release/api dist/${{ matrix.arch }}/api

‎Cargo.lock

+4-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "api"
33
version = "2.2.2"
44
edition = "2024"
55

6+
[profile.release]
7+
debug = "limited"
8+
69
[dependencies]
710
axum = "0.8.1"
811
colored = "3.0.0"

‎src/telemetry.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl TelemetryLogger {
213213
.unwrap();
214214
}
215215

216-
for t in telemetry.iter() {
216+
for t in telemetry {
217217
sqlx::query!(
218218
"
219219
INSERT INTO telemetry_data (panel_id, telemetry_version, ip, continent, country, data, created)

0 commit comments

Comments
 (0)
Please sign in to comment.