Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Sep 26, 2023
1 parent 932ca1c commit aa66f4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions sqflite/lib/src/sentry_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class SentryDatabase extends SentryDatabaseExecutor implements Database {
span?.throwable = exception;
span?.status = SpanStatus.internalError();
breadcrumb.data?['status'] = 'internalError';
breadcrumb = breadcrumb.copyWith(
breadcrumb = breadcrumb.copyWith(
type: 'error',
level: SentryLevel.error,
);
Expand All @@ -191,7 +191,6 @@ class SentryDatabase extends SentryDatabaseExecutor implements Database {
} finally {
await span?.finish();


// ignore: invalid_use_of_internal_member
await _hub.scope.addBreadcrumb(breadcrumb);
}
Expand Down
8 changes: 4 additions & 4 deletions sqflite/lib/src/sentry_database_executor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,10 @@ class SentryDatabaseExecutor implements DatabaseExecutor {
setDatabaseAttributeData(span, _dbName);

var breadcrumb = Breadcrumb(
message: sql,
category: SentryDatabase.dbSqlQueryOp,
data: {},
type: 'query',
message: sql,
category: SentryDatabase.dbSqlQueryOp,
data: {},
type: 'query',
);
setDatabaseAttributeOnBreadcrumb(breadcrumb, _dbName);

Expand Down
3 changes: 2 additions & 1 deletion sqflite/test/sentry_sqflite_database_factory_dart_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void main() {
await db.close();
});

test('starts and finishes a open db breadcrumb when performance enabled', () async {
test('starts and finishes a open db breadcrumb when performance enabled',
() async {
final db = await openDatabase(inMemoryDatabasePath);

expect((db as SentryDatabase).dbName, inMemoryDatabasePath);
Expand Down

0 comments on commit aa66f4a

Please sign in to comment.