public sealed class StartSpanOptionsOptional configuration to be used when starting a span.
Namespace
Google.Cloud.Diagnostics.CommonAssembly
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 |
Dictionary<String, String> |
|
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 |
SpanKindOptional, the span kind. Defaults to Unspecified |
labels |
Dictionary<String, String>Optional, labels to add to the span. |
| Returns | |
|---|---|
| Type | Description |
StartSpanOptions |
|