RPC
as of v1.45.0Remote procedure calls: gRPC, JSON-RPC, ONC RPC and the framework layers on top of them.
rpc 26onc_rpc 4jsonrpc 2signalr 2
- Attributes
- 34
- Metrics
- 14
- Signals
- 5
- Stable
- 6
- Deprecated
- 19
Signals
What this domain emits, and the attributes each one carries, most strongly required first. An attribute marked * is required on that signal; * is conditionally required.
Spans 2
- rpc.call.clientclientStableThis span represents an outgoing Remote Procedure Call (RPC).
rpc.system.name*error.type*rpc.method*rpc.method_original*rpc.status_code*network.peer.addressnetwork.peer.portserver.addressserver.portrpc.request.headerrpc.response.headerrpc.response.trailer
- rpc.call.serverserverStableThis span represents an incoming Remote Procedure Call (RPC).
rpc.system.name*error.type*rpc.method*rpc.method_original*rpc.status_code*server.port*network.peer.addressnetwork.peer.portserver.addressrpc.request.headerrpc.response.headerrpc.response.trailer
Events 3
- rpc.client.call.exceptionDevelopmentThis event represents an exception that occurred during an outgoing RPC call, such as network failures, timeouts, serial
- rpc.messageDeprecatedDescribes a message sent or received within the context of an RPC call.
rpc.message.compressed_sizerpc.message.idrpc.message.typerpc.message.uncompressed_size
- rpc.server.call.exceptionDevelopmentThis event represents an exception that occurred during incoming RPC call processing, such as application errors, intern
Metrics 14
- rpc.client.call.durationStablehistogram · sMeasures the duration of an outgoing Remote Procedure Call (RPC).
- rpc.client.durationDeprecatedhistogram · msDeprecated, use rpc.client.call.duration instead. Note: the unit also changed from ms to s.
- rpc.client.request.sizeDeprecatedhistogram · ByMeasures the size of RPC request messages (uncompressed).
- rpc.client.requests_per_rpcDeprecatedhistogram · {count}Measures the number of messages received per RPC.
- rpc.client.response.sizeDeprecatedhistogram · ByMeasures the size of RPC response messages (uncompressed).
- rpc.client.responses_per_rpcDeprecatedhistogram · {count}Measures the number of messages sent per RPC.
- rpc.server.call.durationStablehistogram · sMeasures the duration of an incoming Remote Procedure Call (RPC).
- rpc.server.durationDeprecatedhistogram · msDeprecated, use rpc.server.call.duration instead. Note: the unit also changed from ms to s.
- rpc.server.request.sizeDeprecatedhistogram · ByMeasures the size of RPC request messages (uncompressed).
- rpc.server.requests_per_rpcDeprecatedhistogram · {count}Measures the number of messages received per RPC.
- rpc.server.response.sizeDeprecatedhistogram · ByMeasures the size of RPC response messages (uncompressed).
- rpc.server.responses_per_rpcDeprecatedhistogram · {count}Measures the number of messages sent per RPC.
- signalr.server.active_connectionsStableupdowncounter · {connection}Number of connections that are currently active on the server.
- signalr.server.connection.durationStablehistogram · sThe duration of connections on the server.
Specification
- Spansare bound by the trace specification — 312 requirements across 8 documents, 176 of them MUST or SHALL.
- Metricsare bound by the metrics specification — 569 requirements across 8 documents, 296 of them MUST or SHALL.
- Eventsare bound by the logs specification — 163 requirements across 5 documents, 84 of them MUST or SHALL.
Requirements that name this domain 1
This is a list of additional propagators that MAY be maintained and distributed as OpenTelemetry Core packages: Jaeger. Status: Deprecated, use the W3C TraceContext instead; OpenCensus BinaryFormat. Propagation format used by OpenCensus, which describes how to format the span context into the binary format, and does not prescribe a key. It is commonly used with OpenCensus gRPC using the
grpc-trace-binpropagation key
On the wire, this lands in trace/v1/trace, metrics/v1/metrics, logs/v1/logs. Field-by-field definitions are under OTLP.
Attributes 34
rpc26 attributes
- rpc.connect_rpc.error_code
- rpc.connect_rpc.request.metadata
- rpc.connect_rpc.response.metadataDeprecatedDeprecated, use rpc.response.header and rpc.response.trailer.
- rpc.grpc.request.metadata
- rpc.grpc.response.metadataDeprecatedDeprecated, use rpc.response.header and rpc.response.trailer.
- rpc.grpc.status_codeDeprecatedDeprecated, use string representation on the rpc.status_code attribute instead.
- rpc.jsonrpc.error_codeDeprecatedDeprecated, use string representation on the rpc.status_code attribute instead.
- rpc.jsonrpc.error_messageDeprecatedDeprecated, use the span status description when reporting JSON-RPC spans.
- rpc.jsonrpc.request_id
- rpc.jsonrpc.version
- rpc.message.compressed_sizeDeprecatedCompressed size of the message in bytes.
- rpc.message.idDeprecatedMUST be calculated as two different counters starting from 1 one for sent messages and one for received message.
- rpc.message.typeDeprecatedWhether this is a received or sent message.
- rpc.message.uncompressed_sizeDeprecatedUncompressed size of the message in bytes.
- rpc.methodStableThe fully-qualified logical name of the method from the RPC interface perspective.
- rpc.method_originalStableThe original name of the method used by the client.
- rpc.request.headerRelease candidateRPC request headers or metadata, <key> being the normalized header name (lowercase), the value being the header values.
- rpc.request.metadata
- rpc.response.headerRelease candidateRPC response headers or metadata sent before the response payload, <key> being the normalized header name (lowercase), the value being the header values.
- rpc.response.metadataDeprecatedDeprecated, use rpc.response.header and rpc.response.trailer.
- rpc.response.status_code
- rpc.response.trailerRelease candidateRPC response trailers or metadata sent after the response payload, <key> being the normalized trailer name (lowercase), the value being the trailer values.
- rpc.serviceDeprecatedDeprecated, use fully-qualified rpc.method instead.
- rpc.status_codeStableStatus code of the RPC returned by the RPC server or generated by the client
- rpc.system
- rpc.system.nameStableThe Remote Procedure Call (RPC) system.
onc_rpc4 attributes
- onc_rpc.procedure.nameDevelopmentONC/Sun RPC procedure name.
- onc_rpc.procedure.numberDevelopmentONC/Sun RPC procedure number.
- onc_rpc.program.nameDevelopmentONC/Sun RPC program name.
- onc_rpc.versionDevelopmentONC/Sun RPC program version.
jsonrpc2 attributes
- jsonrpc.protocol.versionDevelopmentProtocol version, as specified in the jsonrpc property of the request and its corresponding response.
- jsonrpc.request.idDevelopmentA string representation of the id property of the request and its corresponding response.
signalr2 attributes
- signalr.connection.statusStableSignalR HTTP connection closure status.
- signalr.transportStableSignalR transport type
Recent changes
Breaking and notable changes to this domain across the last 6 semantic-conventions releases.
- Renamedattributerpc.response.status_codeRenamed to
rpc.status_code. - Renamedattributerpc.connect_rpc.error_codeRenamed to
rpc.status_code. - Renamedattributerpc.connect_rpc.request.metadataRenamed to
rpc.request.header. - Renamedattributerpc.grpc.request.metadataRenamed to
rpc.request.header. - Renamedattributerpc.request.metadataRenamed to
rpc.request.header. - Deprecatedattributerpc.connect_rpc.response.metadataSplit to
rpc.response.headerfor metadata sent before the response payload andrpc.response.trailerfor metadata sent after it. - Deprecatedattributerpc.grpc.response.metadataSplit to
rpc.response.headerfor metadata sent before the response payload andrpc.response.trailerfor metadata sent after it. - Deprecatedattributerpc.response.metadataSplit to
rpc.response.headerfor metadata sent before the response payload andrpc.response.trailerfor metadata sent after it. - Strengthattributerpc.methodOn
rpc.client.call.duration: conditionally required to required. - Stabilitymetricrpc.client.call.durationPromoted to stable.
Topics are this site's grouping of upstream namespaces, not a structure the OpenTelemetry project publishes. JSON · All domains