Class StartSpanOptions
Optional configuration to be used when starting a span.
Inheritance
System.Object
StartSpanOptions
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Diagnostics.Common
Assembly: Google.Cloud.Diagnostics.Common.dll
Syntax
public sealed class StartSpanOptions
Properties
Labels
Gets the labels to be added to the span.
Declaration
public Dictionary<string, string> Labels { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
SpanKind
Gets the span kind.
Declaration
public SpanKind SpanKind { get; }
Property Value
| Type | Description |
|---|---|
| SpanKind |
Methods
Create(SpanKind, Dictionary<String, String>)
Creates a StartSpanOptions.
Declaration
public static StartSpanOptions Create(SpanKind spanKind = SpanKind.Unspecified, Dictionary<string, string> labels = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SpanKind | spanKind | Optional, the span kind. Defaults to Unspecified |
| System.Collections.Generic.Dictionary<System.String, System.String> | labels | Optional, labels to add to the span. |
Returns
| Type | Description |
|---|---|
| StartSpanOptions |