Class PipelineSpan
- Namespace
- ReferenceApplication.Web.Governance.Pipeline
- Assembly
- ReferenceApplication.Web.dll
A span observed by the in-process listener.
public sealed record PipelineSpan : IEquatable<PipelineSpan>
- Inheritance
-
PipelineSpan
- Implements
- Inherited Members
Constructors
PipelineSpan(string, string, string, string, string?, string, DateTimeOffset, double, string, IReadOnlyDictionary<string, string>)
A span observed by the in-process listener.
public PipelineSpan(string Source, string Name, string TraceId, string SpanId, string? ParentSpanId, string Kind, DateTimeOffset StartUtc, double DurationMilliseconds, string Status, IReadOnlyDictionary<string, string> Tags)
Parameters
SourcestringThe activity source name.
NamestringThe span name.
TraceIdstringThe W3C trace identifier.
SpanIdstringThe span identifier.
ParentSpanIdstringThe parent span identifier, when there is one.
KindstringThe span kind.
StartUtcDateTimeOffsetWhen the span started.
DurationMillisecondsdoubleHow long the span lasted.
StatusstringThe span status.
TagsIReadOnlyDictionary<string, string>A small set of the span's tags.
Properties
DurationMilliseconds
How long the span lasted.
public double DurationMilliseconds { get; init; }
Property Value
Kind
The span kind.
public string Kind { get; init; }
Property Value
Name
The span name.
public string Name { get; init; }
Property Value
ParentSpanId
The parent span identifier, when there is one.
public string? ParentSpanId { get; init; }
Property Value
Source
The activity source name.
public string Source { get; init; }
Property Value
SpanId
The span identifier.
public string SpanId { get; init; }
Property Value
StartUtc
When the span started.
public DateTimeOffset StartUtc { get; init; }
Property Value
Status
The span status.
public string Status { get; init; }
Property Value
Tags
A small set of the span's tags.
public IReadOnlyDictionary<string, string> Tags { get; init; }
Property Value
TraceId
The W3C trace identifier.
public string TraceId { get; init; }