dotnet / dotnet/aspnetcore

Byte rate metrics

Open
#54,745 3 comments 2 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I would be interested to know how many bytes are read/written from/to the ASP.NET Core sockets to understand more how much data is my server processing. That could for example explain why the load on my server is increasing even though the number of requests did not change.

### Describe the solution you'd like

Two new metrics for ASP.NET Core:
- `aspnetcore.request.bytes_read`: number of bytes read from the sockets
- `aspnetcore.response.bytes_written`: number of bytes written to the sockets

OTEL doesn't seem to define a convention for byte rates: https://opentelemetry.io/docs/specs/semconv/http/http-metrics.

### Additional context

_No response_

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.