{
  "description": "This instrumentation enables RPC client and RPC server spans and metrics for Apache Thrift.",
  "display_name": "Apache Thrift",
  "has_javaagent": true,
  "has_standalone_library": true,
  "javaagent_target_versions": [
    "org.apache.thrift:libthrift:[0.13.0,)"
  ],
  "library_link": "https://thrift.apache.org",
  "markdown_hash": "a5617c749e0e",
  "name": "thrift-0.13",
  "scope": {
    "name": "io.opentelemetry.thrift-0.13"
  },
  "semantic_conventions": [
    "RPC_CLIENT_SPANS",
    "RPC_CLIENT_METRICS",
    "RPC_SERVER_SPANS",
    "RPC_SERVER_METRICS"
  ],
  "source_path": "instrumentation/thrift-0.13",
  "telemetry": [
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.service",
              "type": "STRING"
            },
            {
              "name": "rpc.system",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "The duration of an outbound RPC invocation.",
          "instrument": "histogram",
          "name": "rpc.client.duration",
          "unit": "ms"
        },
        {
          "attributes": [
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.service",
              "type": "STRING"
            },
            {
              "name": "rpc.system",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "The duration of an inbound RPC invocation.",
          "instrument": "histogram",
          "name": "rpc.server.duration",
          "unit": "ms"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.service",
              "type": "STRING"
            },
            {
              "name": "rpc.system",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [
            {
              "name": "network.local.address",
              "type": "STRING"
            },
            {
              "name": "network.local.port",
              "type": "LONG"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.service",
              "type": "STRING"
            },
            {
              "name": "rpc.system",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "span_kind": "SERVER"
        }
      ],
      "when": "default"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.system.name",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Measures the duration of outbound remote procedure calls (RPC).",
          "instrument": "histogram",
          "name": "rpc.client.call.duration",
          "unit": "s"
        },
        {
          "attributes": [
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.system.name",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Measures the duration of inbound remote procedure calls (RPC).",
          "instrument": "histogram",
          "name": "rpc.server.call.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "error.type",
              "type": "STRING"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.system.name",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "span_kind": "CLIENT"
        },
        {
          "attributes": [
            {
              "name": "error.type",
              "type": "STRING"
            },
            {
              "name": "network.local.address",
              "type": "STRING"
            },
            {
              "name": "network.local.port",
              "type": "LONG"
            },
            {
              "name": "network.peer.address",
              "type": "STRING"
            },
            {
              "name": "network.peer.port",
              "type": "LONG"
            },
            {
              "name": "network.type",
              "type": "STRING"
            },
            {
              "name": "rpc.method",
              "type": "STRING"
            },
            {
              "name": "rpc.system.name",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            }
          ],
          "span_kind": "SERVER"
        }
      ],
      "when": "otel.semconv-stability.opt-in=rpc"
    }
  ]
}