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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["The 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."],["SpanContext is a sealed class that implements multiple interfaces, including IMessage, IEquatable\u003cSpanContext\u003e, IDeepCloneable\u003cSpanContext\u003e, IBufferMessage, and IMessage."],["SpanContext 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."],["The 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."],["SpanContext has two constructors: a parameterless one, and one that takes another SpanContext as a parameter."]]],[]]