{
  "description": "This standalone instrumentation enables HTTP server spans and HTTP server metrics for the Ktor server.",
  "display_name": "Ktor",
  "features": [
    "HTTP_ROUTE"
  ],
  "has_standalone_library": true,
  "library_link": "https://ktor.io/",
  "markdown_hash": "8d047138abbc",
  "name": "ktor-1.0",
  "scope": {
    "name": "io.opentelemetry.ktor-1.0",
    "schema_url": "https://opentelemetry.io/schemas/1.41.0"
  },
  "semantic_conventions": [
    "HTTP_SERVER_SPANS",
    "HTTP_SERVER_METRICS"
  ],
  "source_path": "instrumentation/ktor/ktor-1.0",
  "telemetry": [
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "http.route",
              "type": "STRING"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "url.scheme",
              "type": "STRING"
            }
          ],
          "data_type": "HISTOGRAM",
          "description": "Duration of HTTP server requests.",
          "instrument": "histogram",
          "name": "http.server.request.duration",
          "unit": "s"
        }
      ],
      "spans": [
        {
          "attributes": [
            {
              "name": "client.address",
              "type": "STRING"
            },
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "url.path",
              "type": "STRING"
            },
            {
              "name": "url.query",
              "type": "STRING"
            },
            {
              "name": "url.scheme",
              "type": "STRING"
            },
            {
              "name": "user_agent.original",
              "type": "STRING"
            }
          ],
          "span_kind": "CONSUMER"
        },
        {
          "attributes": [
            {
              "name": "client.address",
              "type": "STRING"
            },
            {
              "name": "error.type",
              "type": "STRING"
            },
            {
              "name": "http.request.method",
              "type": "STRING"
            },
            {
              "name": "http.request.method_original",
              "type": "STRING"
            },
            {
              "name": "http.response.status_code",
              "type": "LONG"
            },
            {
              "name": "http.route",
              "type": "STRING"
            },
            {
              "name": "network.protocol.version",
              "type": "STRING"
            },
            {
              "name": "server.address",
              "type": "STRING"
            },
            {
              "name": "server.port",
              "type": "LONG"
            },
            {
              "name": "url.path",
              "type": "STRING"
            },
            {
              "name": "url.query",
              "type": "STRING"
            },
            {
              "name": "url.scheme",
              "type": "STRING"
            },
            {
              "name": "user_agent.original",
              "type": "STRING"
            }
          ],
          "span_kind": "SERVER"
        }
      ],
      "when": "default"
    }
  ]
}