The functions here, aside from Dispose(), do not need to be used in most cases.
They need to be used when updating the current span in a disjoint thread.
NOTE: While it is possible to end a span in another thread any new spans after this may be in
a poor state.
[[["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\u003eISpan\u003c/code\u003e interface, part of the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace, is used for managing trace spans in .NET applications, with the latest version being 5.2.0 and this document covering version 5.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eISpan\u003c/code\u003e inherits from \u003ccode\u003eIDisposable\u003c/code\u003e and includes methods like \u003ccode\u003eAnnotateSpan\u003c/code\u003e, \u003ccode\u003eDisposed\u003c/code\u003e, \u003ccode\u003eSetStackTrace\u003c/code\u003e, and \u003ccode\u003eSpanId\u003c/code\u003e, providing functionality for adding annotations, checking disposal status, setting stack traces, and retrieving the span ID.\u003c/p\u003e\n"],["\u003cp\u003eMost users will not directly interact with the methods of this interface, apart from \u003ccode\u003eDispose()\u003c/code\u003e, but they are necessary for updating the current span within a disjoint thread.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnnotateSpan\u003c/code\u003e method allows adding string-based labels to the current span via a dictionary, while \u003ccode\u003eSetStackTrace\u003c/code\u003e enables setting a \u003ccode\u003eStackTrace\u003c/code\u003e to the current span.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpanId\u003c/code\u003e is designed to get the current span's ID, and \u003ccode\u003eDisposed\u003c/code\u003e checks to see if the span has been ended.\u003c/p\u003e\n"]]],[],null,[]]