Table of Contents

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

Source string

The activity source name.

Name string

The span name.

TraceId string

The W3C trace identifier.

SpanId string

The span identifier.

ParentSpanId string

The parent span identifier, when there is one.

Kind string

The span kind.

StartUtc DateTimeOffset

When the span started.

DurationMilliseconds double

How long the span lasted.

Status string

The span status.

Tags IReadOnlyDictionary<string, string>

A small set of the span's tags.

Properties

DurationMilliseconds

How long the span lasted.

public double DurationMilliseconds { get; init; }

Property Value

double

Kind

The span kind.

public string Kind { get; init; }

Property Value

string

Name

The span name.

public string Name { get; init; }

Property Value

string

ParentSpanId

The parent span identifier, when there is one.

public string? ParentSpanId { get; init; }

Property Value

string

Source

The activity source name.

public string Source { get; init; }

Property Value

string

SpanId

The span identifier.

public string SpanId { get; init; }

Property Value

string

StartUtc

When the span started.

public DateTimeOffset StartUtc { get; init; }

Property Value

DateTimeOffset

Status

The span status.

public string Status { get; init; }

Property Value

string

Tags

A small set of the span's tags.

public IReadOnlyDictionary<string, string> Tags { get; init; }

Property Value

IReadOnlyDictionary<string, string>

TraceId

The W3C trace identifier.

public string TraceId { get; init; }

Property Value

string