This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/thrift-0.13.md.

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

MetricInstrumentTypeUnitDescription
rpc.client.durationhistogramHISTOGRAMmsThe duration of an outbound RPC invocation.
rpc.server.durationhistogramHISTOGRAMmsThe duration of an inbound RPC invocation.
MetricAttributes
rpc.client.durationnetwork.type (STRING), rpc.method (STRING), rpc.service (STRING), rpc.system (STRING), server.address (STRING), server.port (LONG)
rpc.server.durationnetwork.type (STRING), rpc.method (STRING), rpc.service (STRING), rpc.system (STRING), server.address (STRING), server.port (LONG)

Spans

Span kindAttributes
CLIENTnetwork.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)
SERVERnetwork.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

MetricInstrumentTypeUnitDescription
rpc.client.call.durationhistogramHISTOGRAMsMeasures the duration of outbound remote procedure calls (RPC).
rpc.server.call.durationhistogramHISTOGRAMsMeasures the duration of inbound remote procedure calls (RPC).
MetricAttributes
rpc.client.call.durationrpc.method (STRING), rpc.system.name (STRING), server.address (STRING), server.port (LONG)
rpc.server.call.durationrpc.method (STRING), rpc.system.name (STRING), server.address (STRING), server.port (LONG)

Spans

Span kindAttributes
CLIENTerror.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)
SERVERerror.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)

Data

  • JSON (latest): /data/javaagent/instrumentations/thrift-0.13/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/thrift-0.13/thrift-0.13-19969000e516.json
  • Explore: /java-agent/instrumentation/thrift-0.13