Skip to content

Commit fd7a63c

Browse files
committed
Merge branch 'main' into feat/span-first
2 parents 471badc + 1302124 commit fd7a63c

Some content is hidden

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

57 files changed

+3173
-36
lines changed

.craft.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ targets:
1919
packages/isar:
2020
packages/link:
2121
packages/firebase_remote_config:
22+
packages/supabase:
2223
- name: github
2324
- name: registry
2425
sdks:
@@ -33,3 +34,5 @@ targets:
3334
pub:sentry_isar:
3435
pub:sentry_link:
3536
pub:sentry_firebase_remote_config:
37+
# TODO: after we published supabase we need to add it to the registry repo and then uncomment here
38+
# pub:sentry_supabase:

.github/workflows/diagrams.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
working-directory: ./packages/firebase_remote_config
6060
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg
6161

62+
- name: supabase
63+
working-directory: ./packages/supabase
64+
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg
65+
6266
# Source: https://stackoverflow.com/a/58035262
6367
- name: Extract branch name
6468
shell: bash

.github/workflows/min_version_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
flutter-version: '3.24.0'
5353

54-
- uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # pin@v1.267.0
54+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # pin@v1.268.0
5555
with:
5656
ruby-version: '3.1.2' # https://github.com/flutter/flutter/issues/109385#issuecomment-1212614125
5757

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Get auth token
2121
id: token
22-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
22+
uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
2323
with:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

.github/workflows/supabase.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: sentry-supabase
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- release/**
7+
pull_request:
8+
paths:
9+
- '!**/*.md'
10+
- '!**/class-diagram.svg'
11+
- '.github/workflows/supabase.yml'
12+
- '.github/workflows/analyze.yml'
13+
- '.github/actions/dart-test/**'
14+
- '.github/actions/coverage/**'
15+
- 'packages/dart/**'
16+
- 'packages/flutter/**'
17+
- 'packages/supabase/**'
18+
19+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
build:
26+
name: '${{ matrix.os }} | ${{ matrix.sdk }}'
27+
runs-on: ${{ matrix.os }}-latest
28+
timeout-minutes: 30
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os: [macos, ubuntu, windows]
33+
sdk: [stable, beta]
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- uses: ./.github/actions/flutter-test
39+
with:
40+
directory: packages/supabase
41+
web: false
42+
43+
# TODO: don't set coverage for now to finish publishing it
44+
# - uses: ./.github/actions/coverage
45+
# if: runner.os == 'Linux' && matrix.sdk == 'stable'
46+
# with:
47+
# token: ${{ secrets.CODECOV_TOKEN }}
48+
# directory: packages/supabase
49+
# coverage: sentry_supabase
50+
# min-coverage: 55
51+
52+
analyze:
53+
uses: ./.github/workflows/analyze.yml
54+
with:
55+
package: packages/supabase
56+
sdk: flutter

.github/workflows/testflight.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v5
1818
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
1919
- run: xcodes select 16.3
20-
- uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # pin@v1.267.0
20+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # pin@v1.268.0
2121
with:
2222
ruby-version: '2.7.5'
2323
bundler-cache: true

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Changelog
22

3-
## Unreleased
3+
## 9.9.0-beta.3
44

55
### Features
66

77
- Add `Sentry.setAttributes` and `Sentry.removeAttribute` ([#3352](https://github.com/getsentry/sentry-dart/pull/3352))
88
- These attributes are set at the scope level and apply to all logs (and later to metrics and spans).
99
- When a scope attribute conflicts with a log-level attribute, the log-level attribute always takes precedence.
10+
- Sentry Supabase Integration ([#2913](https://github.com/getsentry/sentry-dart/pull/2913))
11+
- Adds the `sentry_supabase` package to instrument supabase with Sentry breadcrumbs, traces and errors.
1012

1113
### Fixes
1214

docs/sdk-versions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This document shows which version of the various Sentry SDKs are used in which S
66

77
| Sentry Flutter SDK | Sentry Android SDK | Sentry Cocoa SDK | Sentry JavaScript SDK | Sentry Native SDK |
88
| ------------------ | ------------------ | ---------------- | --------------------- | ----------------- |
9+
| 9.9.0-beta.3 | 8.21.1 | 8.56.2 | 10.6.0 | 0.10.0 |
910
| 9.8.0-beta.1 | 8.21.1 | 8.56.2 | 10.6.0 | 0.10.0 |
1011
| 9.8.0 | 8.21.1 | 8.56.2 | 10.6.0 | 0.10.0 |
1112
| 9.7.0 | 8.21.1 | 8.56.2 | 10.6.0 | 0.10.0 |

packages/dart/lib/src/constants.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ class SentrySpanOperations {
1616
class SentrySpanData {
1717
static const String dbSystemKey = 'db.system';
1818
static const String dbNameKey = 'db.name';
19+
static const String dbSchemaKey = 'db.schema';
20+
static const String dbTableKey = 'db.table';
21+
static const String dbUrlKey = 'db.url';
22+
static const String dbSdkKey = 'db.sdk';
23+
static const String dbQueryKey = 'db.query';
24+
static const String dbBodyKey = 'db.body';
25+
static const String dbOperationKey = 'db.operation';
26+
static const String httpResponseStatusCodeKey = 'http.response.status_code';
27+
static const String httpResponseContentLengthKey =
28+
'http.response_content_length';
1929

2030
static const String dbSystemSqlite = 'db.sqlite';
31+
static const String dbSystemPostgresql = 'postgresql';
2132
}
2233

2334
@internal

packages/dart/lib/src/sentry_trace_origins.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ class SentryTraceOrigins {
2727
static const autoDbDriftQueryInterceptor = 'auto.db.drift.query.interceptor';
2828
static const autoUiTimeToDisplay = 'auto.ui.time_to_display';
2929
static const manualUiTimeToDisplay = 'manual.ui.time_to_display';
30+
static const autoDbSupabase = 'auto.db.supabase';
3031
}

0 commit comments

Comments
 (0)