Breadcrumb class
Structured data to describe more information prior to the event captured.
See Sentry.captureEvent()
.
The outgoing JSON representation is:
{
"timestamp": 1000
"message": "message",
"category": "category",
"data": {"key": "value"},
"level": "info",
"type": "default"
}
See also:
- Annotations
-
- @immutable
Constructors
-
Breadcrumb({String? message, DateTime? timestamp, String? category, Map<
String, dynamic> ? data, SentryLevel? level, String? type, Map<String, dynamic> ? unknown}) - Creates a breadcrumb that can be attached to an SentryEvent.
-
Breadcrumb.console({String? message, SentryLevel? level, DateTime? timestamp, Map<
String, dynamic> ? data}) -
factory
-
Breadcrumb.fromJson(Map<
String, dynamic> jsonData) -
Deserializes a Breadcrumb from JSON Map.
factory
- Breadcrumb.http({required Uri url, required String method, int? statusCode, String? reason, Duration? requestDuration, SentryLevel? level, DateTime? timestamp, int? requestBodySize, int? responseBodySize, String? httpQuery, String? httpFragment})
-
factory
-
Breadcrumb.userInteraction({String? message, SentryLevel? level, DateTime? timestamp, Map<
String, dynamic> ? data, required String subCategory, String? viewId, String? viewClass}) -
factory
Properties
- category → String?
-
A dot-separated string describing the source of the breadcrumb, e.g. "ui.click".
final
-
data
→ Map<
String, dynamic> ? -
Data associated with the breadcrumb.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → SentryLevel?
-
Severity of the breadcrumb.
final
- message → String?
-
Describes the breadcrumb.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The time the breadcrumb was recorded.
final
- type → String?
-
Describes what type of breadcrumb this is.
final
-
unknown
→ Map<
String, dynamic> ? -
final
Methods
-
copyWith(
{String? message, String? category, Map< String, dynamic> ? data, SentryLevel? level, String? type, DateTime? timestamp}) → Breadcrumb -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this breadcrumb to a map that can be serialized to JSON according to the Sentry protocol.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited