public sealed class SpanContext : IMessage<SpanContext>, IEquatable<SpanContext>, IDeepCloneable<SpanContext>, IBufferMessage, IMessage
The context of a span, attached to
[Exemplars][google.api.Distribution.Exemplars]
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 the \u003ccode\u003eSpanContext\u003c/code\u003e is 3.15.0, with various other versions available, ranging down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpanContext\u003c/code\u003e is a class representing the context of a span, which is attached to exemplars in distribution values during aggregation.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eSpanContext\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage<SpanContext>\u003c/code\u003e, \u003ccode\u003eIEquatable<SpanContext>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<SpanContext>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e contains the \u003ccode\u003eSpanName\u003c/code\u003e property, which is the resource name of the span, formatted as projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID].\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e class includes two constructors: a default constructor and one that accepts another \u003ccode\u003eSpanContext\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]