public sealed class StartSpanOptions
Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class StartSpanOptions.
Optional configuration to be used when starting a span.
Namespace
GoogleCloudGoogle.Cloud.DiagnosticsCommonAssembly
Google.Cloud.Diagnostics.Common.dll
Properties
Labels
public Dictionary<string, string> Labels { get; }
Gets the labels to be added to the span.
Property Value | |
---|---|
Type | Description |
Dictionarystringstring |
SpanKind
public SpanKind SpanKind { get; }
Gets the span kind.
Property Value | |
---|---|
Type | Description |
SpanKind |
Methods
Create(SpanKind, Dictionary<string, string>)
public static StartSpanOptions Create(SpanKind spanKind = SpanKind.Unspecified, Dictionary<string, string> labels = null)
Creates a StartSpanOptions.
Parameters | |
---|---|
Name | Description |
spanKind | SpanKind Optional, the span kind. Defaults to Unspecified |
labels | Dictionarystringstring Optional, labels to add to the span. |
Returns | |
---|---|
Type | Description |
StartSpanOptions |