public sealed class SpanContext : IMessage<SpanContext>, IEquatable<SpanContext>, IDeepCloneable<SpanContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Monitoring v3 API class SpanContext.
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-03-21 UTC."],[[["The latest version available for the Google Cloud Monitoring v3 API class SpanContext is 3.15.0, with multiple previous versions available, ranging back to version 2.3.0."],["The `SpanContext` class represents the context of a span, which is included in `Distribution` values during aggregation and contains the name of a span."],["The span name within `SpanContext` follows the format `projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]`, and identifies a span in a trace."],["The `SpanContext` class implements several interfaces, including `IMessage\u003cSpanContext\u003e`, `IEquatable\u003cSpanContext\u003e`, `IDeepCloneable\u003cSpanContext\u003e`, `IBufferMessage`, and `IMessage`."],["The `SpanContext` class has a `SpanName` property, which is of type string, that stores the resource name of the span in a specific format."]]],[]]