Open lmolkova opened 7 months ago
@JamesNK Please let me know if you're not the right person to look at this.
kestrel.active_connections
,kestrel.queued_connections
could be measured with something likekestrel.current.connections
orkestrel.connections
and additional attribute likekestrel.connection.state
=active
|queued
.
How would a connection go from queued to active? Would you need to subtract it and then add it again?
e.g.
Connection is queued: kestrel.connections
state=queued
+ 1
Connection is ready: kestrel.connections
state=queued
- 1 AND kestrel.connections
state=active
+ 1
Connection is finished: kestrel.connections
state=active
- 1
kestrel.active_connections
,kestrel.queued_connections
could be measured with something likekestrel.current.connections
orkestrel.connections
and additional attribute likekestrel.connection.state
=active
|queued
.How would a connection go from queued to active? Would you need to subtract it and then add it again?
e.g. Connection is queued:
kestrel.connections
state=queued
+ 1 Connection is ready:kestrel.connections
state=queued
- 1 ANDkestrel.connections
state=active
+ 1 Connection is finished:kestrel.connections
state=active
- 1
yes, that'd be the way.
Still, the cost (breaking change) may be much higher than the benefit, so I've created this issue only for bookkeeping reasons.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Not related to any functional problem.
Describe the solution you'd like
Several kestrel connection metrics could be grouped together to better align with otel recommendations.
See the original discussion in https://github.com/open-telemetry/semantic-conventions/pull/283#discussion_r1400552625
TL;DR:
kestrel.active_connections
,kestrel.queued_connections
could be measured with something likekestrel.current.connections
orkestrel.connections
and additional attribute likekestrel.connection.state
=active
|queued
.kestrel.upgraded_connections
might also be measured with the same counter using an attribute that captures original protocol version (e.g.http.protocol.initial_version
).Additional context
No response