OpenTelemetry PHP

RpcIncubatingAttributes

Semantic attributes and corresponding values for rpc.

Tags
see
https://opentelemetry.io/docs/specs/semconv/registry/attributes/rpc/

May contain @experimental Semantic Conventions which may change or be removed in the future.

Table of Contents

Constants

RPC_CONNECT_RPC_ERROR_CODE  : mixed = 'rpc.connect_rpc.error_code'
Deprecated, use `rpc.status_code` attribute instead.
RPC_CONNECT_RPC_ERROR_CODE_VALUE_ABORTED  : mixed = 'aborted'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_ALREADY_EXISTS  : mixed = 'already_exists'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_CANCELLED  : mixed = 'cancelled'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_DATA_LOSS  : mixed = 'data_loss'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_DEADLINE_EXCEEDED  : mixed = 'deadline_exceeded'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_FAILED_PRECONDITION  : mixed = 'failed_precondition'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_INTERNAL  : mixed = 'internal'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_INVALID_ARGUMENT  : mixed = 'invalid_argument'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_NOT_FOUND  : mixed = 'not_found'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_OUT_OF_RANGE  : mixed = 'out_of_range'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_PERMISSION_DENIED  : mixed = 'permission_denied'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_RESOURCE_EXHAUSTED  : mixed = 'resource_exhausted'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNAUTHENTICATED  : mixed = 'unauthenticated'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNAVAILABLE  : mixed = 'unavailable'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNIMPLEMENTED  : mixed = 'unimplemented'
RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNKNOWN  : mixed = 'unknown'
RPC_CONNECT_RPC_REQUEST_METADATA  : mixed = 'rpc.connect_rpc.request.metadata'
Deprecated, use `rpc.request.header` instead.
RPC_CONNECT_RPC_RESPONSE_METADATA  : mixed = 'rpc.connect_rpc.response.metadata'
Deprecated, use `rpc.response.header` and `rpc.response.trailer`.
RPC_GRPC_REQUEST_METADATA  : mixed = 'rpc.grpc.request.metadata'
Deprecated, use `rpc.request.header` instead.
RPC_GRPC_RESPONSE_METADATA  : mixed = 'rpc.grpc.response.metadata'
Deprecated, use `rpc.response.header` and `rpc.response.trailer`.
RPC_GRPC_STATUS_CODE  : mixed = 'rpc.grpc.status_code'
Deprecated, use string representation on the `rpc.status_code` attribute instead.
RPC_GRPC_STATUS_CODE_VALUE_ABORTED  : mixed = 10
ABORTED
RPC_GRPC_STATUS_CODE_VALUE_ALREADY_EXISTS  : mixed = 6
ALREADY_EXISTS
RPC_GRPC_STATUS_CODE_VALUE_CANCELLED  : mixed = 1
CANCELLED
RPC_GRPC_STATUS_CODE_VALUE_DATA_LOSS  : mixed = 15
DATA_LOSS
RPC_GRPC_STATUS_CODE_VALUE_DEADLINE_EXCEEDED  : mixed = 4
DEADLINE_EXCEEDED
RPC_GRPC_STATUS_CODE_VALUE_FAILED_PRECONDITION  : mixed = 9
FAILED_PRECONDITION
RPC_GRPC_STATUS_CODE_VALUE_INTERNAL  : mixed = 13
INTERNAL
RPC_GRPC_STATUS_CODE_VALUE_INVALID_ARGUMENT  : mixed = 3
INVALID_ARGUMENT
RPC_GRPC_STATUS_CODE_VALUE_NOT_FOUND  : mixed = 5
NOT_FOUND
RPC_GRPC_STATUS_CODE_VALUE_OK  : mixed = 0
OK
RPC_GRPC_STATUS_CODE_VALUE_OUT_OF_RANGE  : mixed = 11
OUT_OF_RANGE
RPC_GRPC_STATUS_CODE_VALUE_PERMISSION_DENIED  : mixed = 7
PERMISSION_DENIED
RPC_GRPC_STATUS_CODE_VALUE_RESOURCE_EXHAUSTED  : mixed = 8
RESOURCE_EXHAUSTED
RPC_GRPC_STATUS_CODE_VALUE_UNAUTHENTICATED  : mixed = 16
UNAUTHENTICATED
RPC_GRPC_STATUS_CODE_VALUE_UNAVAILABLE  : mixed = 14
UNAVAILABLE
RPC_GRPC_STATUS_CODE_VALUE_UNIMPLEMENTED  : mixed = 12
UNIMPLEMENTED
RPC_GRPC_STATUS_CODE_VALUE_UNKNOWN  : mixed = 2
UNKNOWN
RPC_JSONRPC_ERROR_CODE  : mixed = 'rpc.jsonrpc.error_code'
Deprecated, use string representation on the `rpc.status_code` attribute instead.
RPC_JSONRPC_ERROR_MESSAGE  : mixed = 'rpc.jsonrpc.error_message'
Deprecated, use the span status description when reporting JSON-RPC spans.
RPC_JSONRPC_REQUEST_ID  : mixed = 'rpc.jsonrpc.request_id'
Deprecated, use `jsonrpc.request.id` instead.
RPC_JSONRPC_VERSION  : mixed = 'rpc.jsonrpc.version'
Deprecated, use `jsonrpc.protocol.version` instead.
RPC_MESSAGE_COMPRESSED_SIZE  : mixed = 'rpc.message.compressed_size'
Compressed size of the message in bytes.
RPC_MESSAGE_ID  : mixed = 'rpc.message.id'
MUST be calculated as two different counters starting from `1` one for sent messages and one for received message.
RPC_MESSAGE_TYPE  : mixed = 'rpc.message.type'
Whether this is a received or sent message.
RPC_MESSAGE_TYPE_VALUE_RECEIVED  : mixed = 'RECEIVED'
RPC_MESSAGE_TYPE_VALUE_SENT  : mixed = 'SENT'
RPC_MESSAGE_UNCOMPRESSED_SIZE  : mixed = 'rpc.message.uncompressed_size'
Uncompressed size of the message in bytes.
RPC_METHOD  : mixed = 'rpc.method'
The fully-qualified logical name of the method from the RPC interface perspective.
RPC_METHOD_ORIGINAL  : mixed = 'rpc.method_original'
The original name of the method used by the client.
RPC_REQUEST_HEADER  : mixed = 'rpc.request.header'
RPC request headers or metadata, `<key>` being the normalized header name (lowercase), the value being the header values.
RPC_REQUEST_METADATA  : mixed = 'rpc.request.metadata'
Deprecated, use `rpc.request.header` instead.
RPC_RESPONSE_HEADER  : mixed = 'rpc.response.header'
RPC response headers or metadata sent before the response payload, `<key>` being the normalized header name (lowercase), the value being the header values.
RPC_RESPONSE_METADATA  : mixed = 'rpc.response.metadata'
Deprecated, use `rpc.response.header` and `rpc.response.trailer`.
RPC_RESPONSE_STATUS_CODE  : mixed = 'rpc.response.status_code'
Deprecated, use `rpc.status_code` instead.
RPC_RESPONSE_TRAILER  : mixed = 'rpc.response.trailer'
RPC response trailers or metadata sent after the response payload, `<key>` being the normalized trailer name (lowercase), the value being the trailer values.
RPC_SERVICE  : mixed = 'rpc.service'
Deprecated, use fully-qualified `rpc.method` instead.
RPC_STATUS_CODE  : mixed = 'rpc.status_code'
Status code of the RPC returned by the RPC server or generated by the client Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.
RPC_SYSTEM  : mixed = 'rpc.system'
Deprecated, use `rpc.system.name` attribute instead.
RPC_SYSTEM_NAME  : mixed = 'rpc.system.name'
The Remote Procedure Call (RPC) system.
RPC_SYSTEM_NAME_VALUE_CONNECTRPC  : mixed = 'connectrpc'
[Connect RPC](https://connectrpc.com/)
RPC_SYSTEM_NAME_VALUE_DUBBO  : mixed = 'dubbo'
[Apache Dubbo](https://dubbo.apache.org/)
RPC_SYSTEM_NAME_VALUE_GRPC  : mixed = 'grpc'
[gRPC](https://grpc.io/)
RPC_SYSTEM_NAME_VALUE_JSONRPC  : mixed = 'jsonrpc'
[JSON-RPC](https://www.jsonrpc.org/)
RPC_SYSTEM_VALUE_APACHE_DUBBO  : mixed = 'apache_dubbo'
Apache Dubbo
RPC_SYSTEM_VALUE_CONNECT_RPC  : mixed = 'connect_rpc'
Connect RPC
RPC_SYSTEM_VALUE_DOTNET_WCF  : mixed = 'dotnet_wcf'
RPC_SYSTEM_VALUE_GRPC  : mixed = 'grpc'
gRPC
RPC_SYSTEM_VALUE_JAVA_RMI  : mixed = 'java_rmi'
Java RMI
RPC_SYSTEM_VALUE_JSONRPC  : mixed = 'jsonrpc'
JSON-RPC
RPC_SYSTEM_VALUE_ONC_RPC  : mixed = 'onc_rpc'
[ONC RPC (Sun RPC)](https://datatracker.ietf.org/doc/html/rfc5531)

Constants

RPC_CONNECT_RPC_ERROR_CODE

Deprecated, use `rpc.status_code` attribute instead.

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE = 'rpc.connect_rpc.error_code'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_ABORTED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_ABORTED = 'aborted'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_ALREADY_EXISTS

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_ALREADY_EXISTS = 'already_exists'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_CANCELLED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_CANCELLED = 'cancelled'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_DATA_LOSS

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_DATA_LOSS = 'data_loss'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_DEADLINE_EXCEEDED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_DEADLINE_EXCEEDED = 'deadline_exceeded'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_FAILED_PRECONDITION

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_FAILED_PRECONDITION = 'failed_precondition'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_INTERNAL

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_INTERNAL = 'internal'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_INVALID_ARGUMENT

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_INVALID_ARGUMENT = 'invalid_argument'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_NOT_FOUND

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_NOT_FOUND = 'not_found'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_OUT_OF_RANGE

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_OUT_OF_RANGE = 'out_of_range'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_PERMISSION_DENIED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_PERMISSION_DENIED = 'permission_denied'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_RESOURCE_EXHAUSTED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_RESOURCE_EXHAUSTED = 'resource_exhausted'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNAUTHENTICATED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNAUTHENTICATED = 'unauthenticated'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNAVAILABLE

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNAVAILABLE = 'unavailable'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNIMPLEMENTED

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNIMPLEMENTED = 'unimplemented'
Tags
experimental

RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNKNOWN

Replaced by rpc.status_code.

public mixed RPC_CONNECT_RPC_ERROR_CODE_VALUE_UNKNOWN = 'unknown'
Tags
experimental

RPC_CONNECT_RPC_REQUEST_METADATA

Deprecated, use `rpc.request.header` instead.

Replaced by rpc.request.header.

public mixed RPC_CONNECT_RPC_REQUEST_METADATA = 'rpc.connect_rpc.request.metadata'
Tags
experimental

RPC_CONNECT_RPC_RESPONSE_METADATA

Deprecated, use `rpc.response.header` and `rpc.response.trailer`.

Split to rpc.response.header for metadata sent before the response payload and rpc.response.trailer for metadata sent after it.

public mixed RPC_CONNECT_RPC_RESPONSE_METADATA = 'rpc.connect_rpc.response.metadata'
Tags
experimental

RPC_GRPC_REQUEST_METADATA

Deprecated, use `rpc.request.header` instead.

Replaced by rpc.request.header.

public mixed RPC_GRPC_REQUEST_METADATA = 'rpc.grpc.request.metadata'
Tags
experimental

RPC_GRPC_RESPONSE_METADATA

Deprecated, use `rpc.response.header` and `rpc.response.trailer`.

Split to rpc.response.header for metadata sent before the response payload and rpc.response.trailer for metadata sent after it.

public mixed RPC_GRPC_RESPONSE_METADATA = 'rpc.grpc.response.metadata'
Tags
experimental

RPC_GRPC_STATUS_CODE

Deprecated, use string representation on the `rpc.status_code` attribute instead.

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE = 'rpc.grpc.status_code'
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_ABORTED

ABORTED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_ABORTED = 10
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_ALREADY_EXISTS

ALREADY_EXISTS

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_ALREADY_EXISTS = 6
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_CANCELLED

CANCELLED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_CANCELLED = 1
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_DATA_LOSS

DATA_LOSS

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_DATA_LOSS = 15
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_DEADLINE_EXCEEDED

DEADLINE_EXCEEDED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_DEADLINE_EXCEEDED = 4
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_FAILED_PRECONDITION

FAILED_PRECONDITION

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_FAILED_PRECONDITION = 9
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_INTERNAL

INTERNAL

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_INTERNAL = 13
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_INVALID_ARGUMENT

INVALID_ARGUMENT

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_INVALID_ARGUMENT = 3
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_NOT_FOUND

NOT_FOUND

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_NOT_FOUND = 5
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_OK

OK

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_OK = 0
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_OUT_OF_RANGE

OUT_OF_RANGE

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_OUT_OF_RANGE = 11
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_PERMISSION_DENIED

PERMISSION_DENIED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_PERMISSION_DENIED = 7
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_RESOURCE_EXHAUSTED

RESOURCE_EXHAUSTED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_RESOURCE_EXHAUSTED = 8
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_UNAUTHENTICATED

UNAUTHENTICATED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_UNAUTHENTICATED = 16
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_UNAVAILABLE

UNAVAILABLE

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_UNAVAILABLE = 14
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_UNIMPLEMENTED

UNIMPLEMENTED

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_UNIMPLEMENTED = 12
Tags
experimental

RPC_GRPC_STATUS_CODE_VALUE_UNKNOWN

UNKNOWN

Use string representation of the gRPC status code on the rpc.status_code attribute.

public mixed RPC_GRPC_STATUS_CODE_VALUE_UNKNOWN = 2
Tags
experimental

RPC_JSONRPC_ERROR_CODE

Deprecated, use string representation on the `rpc.status_code` attribute instead.

Use string representation of the error code on the rpc.status_code attribute.

public mixed RPC_JSONRPC_ERROR_CODE = 'rpc.jsonrpc.error_code'
Tags
experimental

RPC_JSONRPC_ERROR_MESSAGE

Deprecated, use the span status description when reporting JSON-RPC spans.

Use the span status description when reporting JSON-RPC spans.

public mixed RPC_JSONRPC_ERROR_MESSAGE = 'rpc.jsonrpc.error_message'
Tags
experimental

RPC_JSONRPC_REQUEST_ID

Deprecated, use `jsonrpc.request.id` instead.

Replaced by jsonrpc.request.id.

public mixed RPC_JSONRPC_REQUEST_ID = 'rpc.jsonrpc.request_id'
Tags
experimental

RPC_JSONRPC_VERSION

Deprecated, use `jsonrpc.protocol.version` instead.

Replaced by jsonrpc.protocol.version.

public mixed RPC_JSONRPC_VERSION = 'rpc.jsonrpc.version'
Tags
experimental

RPC_MESSAGE_COMPRESSED_SIZE

Compressed size of the message in bytes.

Deprecated, no replacement at this time.

public mixed RPC_MESSAGE_COMPRESSED_SIZE = 'rpc.message.compressed_size'
Tags
experimental

RPC_MESSAGE_ID

MUST be calculated as two different counters starting from `1` one for sent messages and one for received message.

Deprecated, no replacement at this time.

public mixed RPC_MESSAGE_ID = 'rpc.message.id'

This way we guarantee that the values will be consistent between different implementations.

Tags
experimental

RPC_MESSAGE_TYPE

Whether this is a received or sent message.

Deprecated, no replacement at this time.

public mixed RPC_MESSAGE_TYPE = 'rpc.message.type'
Tags
experimental

RPC_MESSAGE_TYPE_VALUE_RECEIVED

Deprecated, no replacement at this time.

public mixed RPC_MESSAGE_TYPE_VALUE_RECEIVED = 'RECEIVED'
Tags
experimental

RPC_MESSAGE_TYPE_VALUE_SENT

Deprecated, no replacement at this time.

public mixed RPC_MESSAGE_TYPE_VALUE_SENT = 'SENT'
Tags
experimental

RPC_MESSAGE_UNCOMPRESSED_SIZE

Uncompressed size of the message in bytes.

Deprecated, no replacement at this time.

public mixed RPC_MESSAGE_UNCOMPRESSED_SIZE = 'rpc.message.uncompressed_size'
Tags
experimental

RPC_METHOD

The fully-qualified logical name of the method from the RPC interface perspective.

public mixed RPC_METHOD = 'rpc.method'

The method name MAY have unbounded cardinality in edge or error cases.

Some RPC frameworks or libraries provide a fixed set of recognized methods for client stubs and server implementations. Instrumentations for such frameworks MUST set this attribute to the original method name only when the method is recognized by the framework or library.

When the method is not recognized, for example, when the server receives a request for a method that is not predefined on the server, or when instrumentation is not able to reliably detect if the method is predefined, the attribute MUST be set to _OTHER.

If the RPC instrumentation could end up converting valid RPC methods to _OTHER, then it SHOULD provide a way to configure the list of recognized RPC methods.

The rpc.method can be different from the name of any implementing method/function. The code.function.name attribute may be used to record the fully-qualified method actually executing the call on the server side, or the RPC client stub method on the client side.

Tags
stable

RPC_METHOD_ORIGINAL

The original name of the method used by the client.

public mixed RPC_METHOD_ORIGINAL = 'rpc.method_original'
Tags
stable

RPC_REQUEST_HEADER

RPC request headers or metadata, `<key>` being the normalized header name (lowercase), the value being the header values.

public mixed RPC_REQUEST_HEADER = 'rpc.request.header'

Instrumentations SHOULD require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information.

For example, a header my-custom-key with value ["1.2.3.4", "1.2.3.5"] SHOULD be recorded as the rpc.request.header.my-custom-key attribute with value ["1.2.3.4", "1.2.3.5"]

The attribute value MUST consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the RPC library provides access to headers.

Values that the RPC system exposes as binary data, or that are otherwise not valid UTF-8 strings, SHOULD be base64-encoded when recorded.

Tags
experimental

RPC_REQUEST_METADATA

Deprecated, use `rpc.request.header` instead.

Replaced by rpc.request.header.

public mixed RPC_REQUEST_METADATA = 'rpc.request.metadata'
Tags
experimental

RPC_RESPONSE_HEADER

RPC response headers or metadata sent before the response payload, `<key>` being the normalized header name (lowercase), the value being the header values.

public mixed RPC_RESPONSE_HEADER = 'rpc.response.header'

Instrumentations SHOULD require an explicit configuration of which headers are to be captured. Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information.

For example, a header my-custom-key with value ["attribute_value"] SHOULD be recorded as the rpc.response.header.my-custom-key attribute with value ["attribute_value"]

The attribute value MUST consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the RPC library provides access to headers.

Values that the RPC system exposes as binary data, or that are otherwise not valid UTF-8 strings, SHOULD be base64-encoded when recorded.

Tags
experimental

RPC_RESPONSE_METADATA

Deprecated, use `rpc.response.header` and `rpc.response.trailer`.

Split to rpc.response.header for metadata sent before the response payload and rpc.response.trailer for metadata sent after it.

public mixed RPC_RESPONSE_METADATA = 'rpc.response.metadata'
Tags
experimental

RPC_RESPONSE_STATUS_CODE

Deprecated, use `rpc.status_code` instead.

Replaced by rpc.status_code.

public mixed RPC_RESPONSE_STATUS_CODE = 'rpc.response.status_code'
Tags
experimental

RPC_RESPONSE_TRAILER

RPC response trailers or metadata sent after the response payload, `<key>` being the normalized trailer name (lowercase), the value being the trailer values.

public mixed RPC_RESPONSE_TRAILER = 'rpc.response.trailer'

Instrumentations SHOULD require an explicit configuration of which trailers are to be captured. Including all response trailers can be a security risk - explicit configuration helps avoid leaking sensitive information.

For example, a trailer my-custom-key with value ["attribute_value"] SHOULD be recorded as the rpc.response.trailer.my-custom-key attribute with value ["attribute_value"]

The attribute value MUST consist of either multiple trailer values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the RPC library provides access to trailers.

Values that the RPC system exposes as binary data, or that are otherwise not valid UTF-8 strings, SHOULD be base64-encoded when recorded.

Tags
experimental

RPC_SERVICE

Deprecated, use fully-qualified `rpc.method` instead.

Value should be included in rpc.method which is expected to be a fully-qualified name.

public mixed RPC_SERVICE = 'rpc.service'
Tags
experimental

RPC_STATUS_CODE

Status code of the RPC returned by the RPC server or generated by the client Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.

public mixed RPC_STATUS_CODE = 'rpc.status_code'

The value MAY use a standardized string representation of a numeric status code, if one exists, instead of the numeric code. The value MAY be a synthetic status provided by the client library rather than returned by the remote service. Semantic conventions for individual RPC frameworks SHOULD document what rpc.status_code means in the context of that system and which values are considered to represent errors.

Tags
stable

RPC_SYSTEM

Deprecated, use `rpc.system.name` attribute instead.

Replaced by rpc.system.name.

public mixed RPC_SYSTEM = 'rpc.system'
Tags
experimental

RPC_SYSTEM_NAME

The Remote Procedure Call (RPC) system.

public mixed RPC_SYSTEM_NAME = 'rpc.system.name'

The client and server RPC systems may differ for the same RPC interaction. For example, a client may use Apache Dubbo or Connect RPC to communicate with a server that uses gRPC since both protocols provide compatibility with gRPC.

Tags
stable

RPC_SYSTEM_NAME_VALUE_CONNECTRPC

[Connect RPC](https://connectrpc.com/)

public mixed RPC_SYSTEM_NAME_VALUE_CONNECTRPC = 'connectrpc'
Tags
stable

RPC_SYSTEM_NAME_VALUE_DUBBO

[Apache Dubbo](https://dubbo.apache.org/)

public mixed RPC_SYSTEM_NAME_VALUE_DUBBO = 'dubbo'
Tags
stable

RPC_SYSTEM_NAME_VALUE_GRPC

[gRPC](https://grpc.io/)

public mixed RPC_SYSTEM_NAME_VALUE_GRPC = 'grpc'
Tags
stable

RPC_SYSTEM_NAME_VALUE_JSONRPC

[JSON-RPC](https://www.jsonrpc.org/)

public mixed RPC_SYSTEM_NAME_VALUE_JSONRPC = 'jsonrpc'
Tags
stable

RPC_SYSTEM_VALUE_APACHE_DUBBO

Apache Dubbo

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_APACHE_DUBBO = 'apache_dubbo'
Tags
experimental

RPC_SYSTEM_VALUE_CONNECT_RPC

Connect RPC

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_CONNECT_RPC = 'connect_rpc'
Tags
experimental

RPC_SYSTEM_VALUE_DOTNET_WCF

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_DOTNET_WCF = 'dotnet_wcf'

.NET WCF

Tags
experimental

RPC_SYSTEM_VALUE_GRPC

gRPC

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_GRPC = 'grpc'
Tags
experimental

RPC_SYSTEM_VALUE_JAVA_RMI

Java RMI

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_JAVA_RMI = 'java_rmi'
Tags
experimental

RPC_SYSTEM_VALUE_JSONRPC

JSON-RPC

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_JSONRPC = 'jsonrpc'
Tags
experimental

RPC_SYSTEM_VALUE_ONC_RPC

[ONC RPC (Sun RPC)](https://datatracker.ietf.org/doc/html/rfc5531)

Replaced by rpc.system.name.

public mixed RPC_SYSTEM_VALUE_ONC_RPC = 'onc_rpc'
Tags
experimental
On this page

Search results