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"]],[["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 available for the Google Cloud Monitoring v3 API class SpanContext is 3.15.0, with multiple previous versions ranging down to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eSpanContext is a class within the Google.Cloud.Monitoring.V3 namespace, providing context for spans attached to Exemplar values during aggregation.\u003c/p\u003e\n"],["\u003cp\u003eThe SpanContext class implements interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanName\u003c/code\u003e property within SpanContext represents the resource name of a span, following a specific format that includes project, trace, and span IDs.\u003c/p\u003e\n"],["\u003cp\u003eThis class has two constructors, a default one, and another that can be passed an instance of a SpanContext object.\u003c/p\u003e\n"]]],[],null,[]]