Class StartSpanOptions (4.4.0)

public sealed class StartSpanOptions

Optional configuration to be used when starting a span.

Inheritance

Object > StartSpanOptions

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

Labels

public Dictionary<string, string> Labels { get; }

Gets the labels to be added to the span.

Property Value
TypeDescription
Dictionary<String, String>

SpanKind

public SpanKind SpanKind { get; }

Gets the span kind.

Property Value
TypeDescription
SpanKind

Methods

Create(SpanKind, Dictionary<String, String>)

public static StartSpanOptions Create(SpanKind spanKind = SpanKind.Unspecified, Dictionary<string, string> labels = null)

Creates a StartSpanOptions.

Parameters
NameDescription
spanKindSpanKind

Optional, the span kind. Defaults to Unspecified

labelsDictionary<String, String>

Optional, labels to add to the span.

Returns
TypeDescription
StartSpanOptions