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-04-17 UTC."],[[["The webpage provides documentation for the `SpanContext` class within the Google Cloud Monitoring v3 API, covering versions from 2.3.0 up to the latest 3.15.0."],["`SpanContext` is used to represent the context of a span, attaching it to an `Exemplar` within `Distribution` values during aggregation."],["The `SpanContext` class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from `object`."],["The class includes a `SpanName` property, which represents the resource name of the span in the format `projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]`."],["The `SpanContext` class has two constructors: one default and one that accepts another `SpanContext` instance for cloning purposes."]]],[]]