Class SpanAttribute

Namespace
Cratis.Traces
Assembly
Cratis.Fundamentals.dll

Attribute for marking a method as a span for the traces code generator.

[AttributeUsage(AttributeTargets.Method)]
public sealed class SpanAttribute : Attribute
Inheritance
SpanAttribute
Inherited Members
Extension Methods

Constructors

SpanAttribute(string, ActivityKind)

Attribute for marking a method as a span for the traces code generator.

public SpanAttribute(string name, ActivityKind kind = ActivityKind.Internal)

Parameters

name string

Name of the span.

kind ActivityKind

The ActivityKind of the span.

Properties

Kind

Gets the kind of the span.

public ActivityKind Kind { get; }

Property Value

ActivityKind

Name

Gets the name of the span.

public string Name { get; }

Property Value

string