Apache Thrift
OpenTelemetry Java agent instrumentation
This instrumentation enables RPC client and RPC server spans and metrics for Apache Thrift.
- Name:
thrift-0.13 - Scope:
io.opentelemetry.thrift-0.13 - Target versions:
org.apache.thrift:libthrift:[0.13.0,) - Library: https://thrift.apache.org
Telemetry
When default
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
rpc.client.duration | histogram | HISTOGRAM | ms | The duration of an outbound RPC invocation. |
rpc.server.duration | histogram | HISTOGRAM | ms | The duration of an inbound RPC invocation. |
| Metric | Attributes |
|---|---|
rpc.client.duration | network.type (STRING), rpc.method (STRING), rpc.service (STRING), rpc.system (STRING), server.address (STRING), server.port (LONG) |
rpc.server.duration | network.type (STRING), rpc.method (STRING), rpc.service (STRING), rpc.system (STRING), server.address (STRING), server.port (LONG) |
Spans
| Span kind | Attributes |
|---|---|
| CLIENT | network.peer.address (STRING), network.peer.port (LONG), network.type (STRING), rpc.method (STRING), rpc.service (STRING), rpc.system (STRING), server.address (STRING), server.port (LONG) |
| SERVER | network.local.address (STRING), network.local.port (LONG), network.peer.address (STRING), network.peer.port (LONG), network.type (STRING), rpc.method (STRING), rpc.service (STRING), rpc.system (STRING), server.address (STRING), server.port (LONG) |
When otel.semconv-stability.opt-in=rpc
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
rpc.client.call.duration | histogram | HISTOGRAM | s | Measures the duration of outbound remote procedure calls (RPC). |
rpc.server.call.duration | histogram | HISTOGRAM | s | Measures the duration of inbound remote procedure calls (RPC). |
| Metric | Attributes |
|---|---|
rpc.client.call.duration | rpc.method (STRING), rpc.system.name (STRING), server.address (STRING), server.port (LONG) |
rpc.server.call.duration | rpc.method (STRING), rpc.system.name (STRING), server.address (STRING), server.port (LONG) |
Spans
| Span kind | Attributes |
|---|---|
| CLIENT | error.type (STRING), network.peer.address (STRING), network.peer.port (LONG), network.type (STRING), rpc.method (STRING), rpc.system.name (STRING), server.address (STRING), server.port (LONG) |
| SERVER | error.type (STRING), network.local.address (STRING), network.local.port (LONG), network.peer.address (STRING), network.peer.port (LONG), network.type (STRING), rpc.method (STRING), rpc.system.name (STRING), server.address (STRING), server.port (LONG) |