Class Breadcrumb
Series of application events
Inherited Members
Namespace: Sentry.Protocol
Assembly: Sentry.Protocol.dll
Syntax
[DataContract]
public sealed class Breadcrumb
Constructors
| Improve this Doc View SourceBreadcrumb(String, String, IReadOnlyDictionary<String, String>, String, BreadcrumbLevel)
Initializes a new instance of the Breadcrumb class.
Declaration
public Breadcrumb(string message, string type, IReadOnlyDictionary<string, string> data = null, string category = null, BreadcrumbLevel level = BreadcrumbLevel.Info)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message. |
String | type | The type. |
IReadOnlyDictionary<String, String> | data | The data. |
String | category | The category. |
BreadcrumbLevel | level | The level. |
Properties
| Improve this Doc View SourceCategory
Dotted strings that indicate what the crumb is or where it comes from.
Declaration
[DataMember(Name = "category", EmitDefaultValue = false)]
public string Category { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Typically it’s a module name or a descriptive string. For instance aspnet.mvc.filter could be used to indicate that it came from an Action Filter.
Data
Data associated with this breadcrumb.
Declaration
[DataMember(Name = "data", EmitDefaultValue = false)]
public IReadOnlyDictionary<string, string> Data { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
Remarks
Contains a sub-object whose contents depend on the breadcrumb type. Additional parameters that are unsupported by the type are rendered as a key/value table.
Level
The level of the event.
Declaration
[DataMember(Name = "level", EmitDefaultValue = false)]
public BreadcrumbLevel Level { get; }
Property Value
Type | Description |
---|---|
BreadcrumbLevel |
Remarks
Levels are used in the UI to emphasize and deemphasize the crumb.
Message
If a message is provided, it’s rendered as text and the whitespace is preserved. Very long text might be abbreviated in the UI.
Declaration
[DataMember(Name = "message", EmitDefaultValue = false)]
public string Message { get; }
Property Value
Type | Description |
---|---|
String |
Timestamp
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
Type
The type of breadcrumb.
Declaration
[DataMember(Name = "type", EmitDefaultValue = false)]
public string Type { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
The default type is default which indicates no specific handling. Other types are currently http for HTTP requests and navigation for navigation events.