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"]],[["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\u003eThis webpage details the \u003ccode\u003eSpanContext\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e namespace, which is used to define the context of a span in the format of project/trace/span.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpanContext\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Monitoring.V3.dll\u003c/code\u003e assembly and implements multiple 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 latest version of the \u003ccode\u003eSpanContext\u003c/code\u003e class is 3.15.0, with a history of versions available back to 2.3.0, all specifically for the \u003ccode\u003eSpanContext\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two constructors: a parameterless constructor and one that takes another \u003ccode\u003eSpanContext\u003c/code\u003e object, and it also includes a \u003ccode\u003eSpanName\u003c/code\u003e property to store the formatted resource name of a span.\u003c/p\u003e\n"],["\u003cp\u003eThe full span name format for \u003ccode\u003eSpanName\u003c/code\u003e is: \u003ccode\u003eprojects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]\u003c/code\u003e, where \u003ccode\u003e[TRACE_ID]\u003c/code\u003e and \u003ccode\u003e[SPAN_ID]\u003c/code\u003e are unique hexadecimal identifiers.\u003c/p\u003e\n"]]],[],null,[]]