Azure / Azure/azure-sdk-for-java

[FEATURE REQ][Thin client]: HTTP/2 connection-level metrics in diagnostics — pool health, per-connection stats, and lifecycle events

Open
#42,896 0 comments 0 reactions 1 assignee Claimed by @jeet1995 View on GitHub
Client Cosmos cosmos-java-ecosystem-se-planning cosmos:v4-item
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

## Summary

Thin client diagnostics already capture per-request context: `endpoint` (shows `:10250/` thin client URL), `parentChannelId`, `channelId`, and `isHttp2`. What's missing is connection-level metrics — pool health, per-connection lifecycle stats, and Micrometer integration for monitoring.

## Already Done

- `endpoint` in `GatewayStatistics` points to thin client URL (`:10250/`)
- `parentChannelId` / `channelId` identify HTTP/2 parent connection and stream
- `isHttp2: true` distinguishes thin client from gateway

## What's Missing — Connection-Level Metrics

## Acceptance Criteria

- [ ] HTTP/2 connection pool metrics surfaced (active connections, idle connections, pending acquires)
- [ ] Per-connection stats: requests served, errors, GOAWAY count, PING RTT
- [ ] Connection lifecycle events observable (created, evicted, closed, recycled)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.