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
namestringName of the span.
kindActivityKindThe ActivityKind of the span.
Properties
Kind
Gets the kind of the span.
public ActivityKind Kind { get; }
Property Value
Name
Gets the name of the span.
public string Name { get; }