[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eStartSpanOptions\u003c/code\u003e class in the Google.Cloud.Diagnostics.Common library provides optional configurations for initiating a span.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for the specification of labels to be added to a span via a string key-value pair dictionary, accessible through the \u003ccode\u003eLabels\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanKind\u003c/code\u003e property, also part of the \u003ccode\u003eStartSpanOptions\u003c/code\u003e class, enables users to define the type of span being started.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStartSpanOptions\u003c/code\u003e objects can be created using the \u003ccode\u003eCreate\u003c/code\u003e method, allowing optional parameters for specifying \u003ccode\u003eSpanKind\u003c/code\u003e and labels, with \u003ccode\u003eSpanKind.Unspecified\u003c/code\u003e being the default value.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStartSpanOptions\u003c/code\u003e class has a history of various versions, with the latest version being 5.2.0.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Class StartSpanOptions (5.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.StartSpanOptions)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.StartSpanOptions)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.StartSpanOptions)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.StartSpanOptions)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.StartSpanOptions)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.StartSpanOptions) \n\n public sealed class StartSpanOptions\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common class StartSpanOptions.\n\nOptional configuration to be used when starting a span. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StartSpanOptions \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.Common](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.Common.dll\n\nProperties\n----------\n\n### Labels\n\n public Dictionary\u003cstring, string\u003e Labels { get; }\n\nGets the labels to be added to the span.\n\n### SpanKind\n\n public SpanKind SpanKind { get; }\n\nGets the span kind.\n\nMethods\n-------\n\n### Create(SpanKind, Dictionary\\\u003cstring, string\\\u003e)\n\n public static StartSpanOptions Create(SpanKind spanKind = SpanKind.Unspecified, Dictionary\u003cstring, string\u003e labels = null)\n\nCreates a [StartSpanOptions](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.StartSpanOptions)."]]