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 is 3.15.0, and the page contains documentation for multiple versions, ranging down to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe primary focus of the content is the \u003ccode\u003eSpanContext\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e namespace, providing reference documentation and code samples.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e class represents the context of a span, and is used in conjunction with \u003ccode\u003eExemplar\u003c/code\u003e and \u003ccode\u003eDistribution\u003c/code\u003e during data aggregation, having an ID format of projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID].\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpanContext\u003c/code\u003e inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e class includes a \u003ccode\u003eSpanName\u003c/code\u003e property, which is a string representing the resource name of the span, including trace and span identifiers.\u003c/p\u003e\n"]]],[],null,[]]