public sealed class SpanContext : IMessage<SpanContext>, IEquatable<SpanContext>, IDeepCloneable<SpanContext>, IBufferMessage, IMessage
The context of a span. This is attached to an
[Exemplar][google.api.Distribution.Exemplar]
in [Distribution][google.api.Distribution] values during aggregation.
[[["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 latest version of Google.Cloud.Monitoring.V3.SpanContext is 3.15.0, with multiple previous versions available, ranging from 3.14.0 down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eSpanContext is a sealed class that implements multiple interfaces, including IMessage, IEquatable\u003c/p\u003e\n"],["\u003cp\u003eSpanContext objects contain the name of a span, formatted as projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID], and are attached to Exemplars in Distribution values during aggregation.\u003c/p\u003e\n"],["\u003cp\u003eThe SpanName property within the SpanContext class holds the resource name of the span, following the specified format, where [TRACE_ID] and [SPAN_ID] are unique identifiers in hexadecimal encoding.\u003c/p\u003e\n"],["\u003cp\u003eSpanContext has two constructors: a parameterless one, and one that takes another SpanContext as a parameter.\u003c/p\u003e\n"]]],[],null,[]]