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 \u003ccode\u003eSpanContext\u003c/code\u003e class provides context for spans attached to \u003ccode\u003eExemplar\u003c/code\u003e in \u003ccode\u003eDistribution\u003c/code\u003e values during aggregation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpanContext\u003c/code\u003e contains the span name, which follows the format: \u003ccode\u003eprojects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e class has several implementations such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 3.15.0, and the provided content has versions ranging from 2.3.0 up to 3.15.0 of the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e class contains a property \u003ccode\u003eSpanName\u003c/code\u003e of type string, which is the resource name of the span.\u003c/p\u003e\n"]]],[],null,[]]