public sealed class AttributeContext : IMessage<AttributeContext>, IEquatable<AttributeContext>, IDeepCloneable<AttributeContext>, IBufferMessage, IMessage
This message defines the standard attribute vocabulary for Google APIs.
An attribute is a piece of metadata that describes an activity on a network
service. For example, the size of an HTTP request, or the status code of
an HTTP response.
Each attribute has a type and a name, which is logically defined as
a proto message field in AttributeContext. The field type becomes the
attribute type, and the field path becomes the attribute name. For example,
the attribute source.ip maps to field AttributeContext.source.ip.
This message definition is guaranteed not to have any wire breaking change.
So you can use it directly for passing attributes across different systems.
NOTE: Different system may generate different subset of attributes. Please
verify the system specification before relying on an attribute generated
a system.
public AttributeContext.Types.Peer Destination { get; set; }
The destination of a network activity, such as accepting a TCP connection.
In a multi hop network activity, the destination represents the receiver of
the last hop.
public AttributeContext.Types.Peer Origin { get; set; }
The origin of a network activity. In a multi hop network activity,
the origin represents the sender of the first hop. For the first hop,
the source and the origin must have the same content.
public AttributeContext.Types.Resource Resource { get; set; }
Represents a target resource that is involved with a network activity.
If multiple resources are involved with an activity, this must be the
primary one.
public AttributeContext.Types.Peer Source { get; set; }
The source of a network activity, such as starting a TCP connection.
In a multi hop network activity, the source represents the sender of the
last hop.
[[["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."],[[["The `AttributeContext` class defines a standard vocabulary for describing network service activities using attributes, which are pieces of metadata like HTTP request size or response status codes."],["Each attribute within `AttributeContext` is defined by its type and name, which correspond to a proto message field and its path, respectively, ensuring consistency across different systems."],["`AttributeContext` provides details about various aspects of a network activity, including the source, destination, request, response, and involved resources, represented by different properties."],["The `AttributeContext` class includes properties for representing an API operation, and the origin of a network activity, and supports extensions for advanced use cases such as logging and metrics."],["The latest available version for this document is 2.15.0, and previous versions 2.10.0 and 2.2.0 are also available for review."]]],[]]