Skip to content

Commit 891a8fb

Browse files
committed
set db-system
1 parent 8d1e9ec commit 891a8fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

supabase/lib/src/sentry_supabase_tracing_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SentrySupabaseTracingClient extends BaseClient {
7373
span.setData('db.operation', supabaseRequest.operation.value);
7474
// ignore: invalid_use_of_internal_member
7575
span.setData('origin', SentryTraceOrigins.autoDbSupabase);
76-
76+
span.setData('db.system', 'postgres');
7777
return span;
7878
}
7979
}

supabase/test/sentry_supabase_tracing_client_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void main() {
5050
expect(span.data['db.table'], 'mock-table');
5151
expect(span.data['db.url'], 'https://example.com');
5252
expect(span.data['db.sdk'], version);
53+
expect(span.data['db.system'], 'postgres');
5354
// ignore: invalid_use_of_internal_member
5455
expect(span.data['origin'], SentryTraceOrigins.autoDbSupabase);
5556
}

0 commit comments

Comments
 (0)