Improve Kestrel metrics (original) (raw)

Is there an existing issue for this?

It's useful to see low-level connection and request information in Kestrel. This information can be used to track regular web app usage, diagnose performance issues and observe malicious activity.

Describe the solution you'd like

Improve Kestrel metrics:

Tracking the number of streams a multiplexed connection created could also be valuable. I'm not sure the best way to do that. Tag on a connection (will need to be rounded to certain values to limit cardinality) or a separate kestrel.connection.streams_count histogram metric.

Additional context

No response