Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6a5d2c3
hub interface & instanciation
rxlabz Oct 15, 2020
4f01775
- hub capture event
rxlabz Oct 15, 2020
ea5c55f
- hub capture exception
rxlabz Oct 15, 2020
bd09da0
hub captureMessage
rxlabz Oct 15, 2020
c5317a4
fix some tests
rxlabz Oct 15, 2020
6a8910e
fix more tests
rxlabz Oct 15, 2020
f5d3dd0
changelog
rxlabz Oct 15, 2020
f102ac3
fix all tests
rxlabz Oct 15, 2020
055b9b0
feedbacks
rxlabz Oct 15, 2020
370d2d5
fix test : revert to ArgumentError.notNull('options')
rxlabz Oct 15, 2020
974d1f6
remove required hub methods
rxlabz Oct 15, 2020
c8c1df0
implement `Hub.close()`
rxlabz Oct 16, 2020
6c6c649
feedbacks : remove the IHub interface + minors
rxlabz Oct 16, 2020
a924040
Hub.configureScope
rxlabz Oct 16, 2020
823c91c
Hub.clone and Scope.clone
rxlabz Oct 16, 2020
b04d67c
remove the non required scope methods
rxlabz Oct 16, 2020
37cf83c
replace the ListQueue _stack by a DoubleLinkedQueue
rxlabz Oct 16, 2020
b9f9f9e
rename `response` to `sentryId`
rxlabz Oct 16, 2020
5067a36
serialize the potential error stackTrace
rxlabz Oct 16, 2020
54729ba
Revert the DoubleLinkedQueue to a resourceless ListQueue
rxlabz Oct 16, 2020
729d6bc
fix a json serialization test
rxlabz Oct 16, 2020
4ea1537
add a const SentryId.emptyId
rxlabz Oct 16, 2020
5932534
don't assign a new lastEventId if the client capture method is not ca…
rxlabz Oct 16, 2020
97f6c53
feedbacks:
rxlabz Oct 16, 2020
e89c488
feedbacks:
rxlabz Oct 16, 2020
647f1b0
simplify the captureMessage API
rxlabz Oct 19, 2020
91f709a
capture message
rxlabz Oct 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove required hub methods
  • Loading branch information
rxlabz committed Oct 15, 2020
commit 974d1f64d97091ad5dd343ec0f4d94d1d0f35c7a
88 changes: 9 additions & 79 deletions dart/lib/src/hub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ class Hub implements IHub {
}

@override
Hub clone() {
// TODO: implement clone
throw UnimplementedError();
}
Hub clone() => Hub(_options)
.._stack.addAll(_stack)
.._lastEventId = _lastEventId
.._isEnabled = _isEnabled;

@override
void close() {
Expand All @@ -209,56 +209,8 @@ class Hub implements IHub {
}

@override
void removeExtra(String key) {
// TODO: implement removeExtra
throw UnimplementedError();
}

@override
void removeTag({String key}) {
// TODO: implement removeTag
throw UnimplementedError();
}

@override
void setExtra(String key, String value) {
// TODO: implement setExtra
throw UnimplementedError();
}

@override
void setFingerPrint(List<String> fingerPrint) {
// TODO: implement setFingerPrint
throw UnimplementedError();
}

@override
void setLevel(SeverityLevel level) {
// TODO: implement setLevel
throw UnimplementedError();
}

@override
void setTag({String key, String value}) {
// TODO: implement setTag
throw UnimplementedError();
}

@override
void setTransaction(String transaction) {
// TODO: implement setTransaction
throw UnimplementedError();
}

@override
void setUser(User user) {
// TODO: implement setUser
throw UnimplementedError();
}

@override
void startSession() {
// TODO: implement startSession
void pushScope() {
// TODO: implement popScope
throw UnimplementedError();
}

Expand Down Expand Up @@ -293,35 +245,13 @@ abstract class IHub {
/// Captures the message.
Future<SentryId> captureMessage(Message message, {SeverityLevel level});

/// Starts a new session. If there's a running session, it ends it before starting the new one.
void startSession();

/// Flushes out the queue for up to timeout seconds and disable the Hub.
void close();

/// Sets the level of all events sent within current Scope
void setLevel(SeverityLevel level);

/// Sets the name of the current transaction to the current Scope.
void setTransaction(String transaction);

/// Shallow merges user configuration (email, username, etc) to the current Scope.
void setUser(User user);

/// Sets the fingerprint to group specific events together to the current Scope.
void setFingerPrint(List<String> fingerPrint);

/// Sets the tag to a string value to the current Scope, overwriting a potential previous value
void setTag({String key, String value});

/// Removes the tag to a string value to the current Scope
void removeTag({String key});

/// Sets the extra key to an arbitrary value to the current Scope, overwriting a potential previous value
void setExtra(String key, String value);
/// Runs the callback with a new scope which gets dropped at the end
void pushScope();

/// Removes the extra key to an arbitrary value to the current Scope
void removeExtra(String key);
void popScope();

/// Runs the callback with a new scope which gets dropped at the end
void withScope(ScopeCallback callback);
Expand Down