Show / Hide Table of Contents

    Class Breadcrumb

    Series of application events

    Inheritance
    Object
    Breadcrumb
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Sentry.Protocol
    Assembly: Sentry.Protocol.dll
    Syntax
    [DataContract]
    public sealed class Breadcrumb

    Constructors

    | Improve this Doc View Source

    Breadcrumb(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 Source

    Category

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Timestamp

    Declaration
    public DateTimeOffset Timestamp { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX