{
  "description": "The c3p0 instrumentation provides connection pool metrics for c3p0 data sources.",
  "display_name": "c3p0",
  "has_javaagent": true,
  "has_standalone_library": true,
  "javaagent_target_versions": [
    "com.mchange:c3p0:(,)"
  ],
  "library_link": "https://github.com/swaldman/c3p0",
  "markdown_hash": "25446e5eec4e",
  "name": "c3p0-0.9",
  "scope": {
    "name": "io.opentelemetry.c3p0-0.9"
  },
  "semantic_conventions": [
    "DATABASE_POOL_METRICS"
  ],
  "source_path": "instrumentation/c3p0-0.9",
  "telemetry": [
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "pool.name",
              "type": "STRING"
            }
          ],
          "data_type": "LONG_SUM",
          "description": "The number of pending requests for an open connection, cumulative for the entire pool.",
          "instrument": "updowncounter",
          "name": "db.client.connections.pending_requests",
          "unit": "{requests}"
        },
        {
          "attributes": [
            {
              "name": "pool.name",
              "type": "STRING"
            },
            {
              "name": "state",
              "type": "STRING"
            }
          ],
          "data_type": "LONG_SUM",
          "description": "The number of connections that are currently in state described by the state attribute.",
          "instrument": "updowncounter",
          "name": "db.client.connections.usage",
          "unit": "{connections}"
        }
      ],
      "when": "default"
    },
    {
      "metrics": [
        {
          "attributes": [
            {
              "name": "db.client.connection.pool.name",
              "type": "STRING"
            },
            {
              "name": "db.client.connection.state",
              "type": "STRING"
            }
          ],
          "data_type": "LONG_SUM",
          "description": "The number of connections that are currently in state described by the state attribute.",
          "instrument": "updowncounter",
          "name": "db.client.connection.count",
          "unit": "{connection}"
        },
        {
          "attributes": [
            {
              "name": "db.client.connection.pool.name",
              "type": "STRING"
            }
          ],
          "data_type": "LONG_SUM",
          "description": "The number of current pending requests for an open connection.",
          "instrument": "updowncounter",
          "name": "db.client.connection.pending_requests",
          "unit": "{request}"
        }
      ],
      "when": "otel.semconv-stability.opt-in=database"
    }
  ]
}