Skip to content

New ASP.NET Core Metrics #4468

Open
Open
@justindbaur

Description

@justindbaur

Are you requesting automatic instrumentation for a framework or library? Please describe.

  • Framework or library name : ASP.NET Core
  • Library type: Web Framework
  • Library version: v8.0.0-preview.4+

Is your feature request related to a problem? Please describe.
New/Existing metrics are not being relayed to DataDog that come out of ASP.NET Core. The list of metrics I see produced by them are as follows:

  • Microsoft.AspNetCore.Hosting
    • current-requests: Number of HTTP requests that are currently active on the server.
    • request-duration: The duration of HTTP requests on the server.
  • Microsoft.AspNetCore.Server.Kestral
    • current-connections: Number of connections that are currently active on the server.
    • connection-duration: The duration of connections on the server.
    • rejected-connections: Number of connections rejected by the server. Connections are rejected when the currently active count exceeds the value configured with MaxConcurrentConnections.
    • queued-connections: Number of connections that are currently queued and are waiting to start.
    • queued-requests: Number of HTTP requests on multiplexed connections (HTTP/2 and HTTP/3) that are currently queued and are waiting to start.
    • current-upgraded-connections: Number of HTTP connections that are currently upgraded (WebSockets). The number only tracks HTTP/1.1 connections.
    • tls-handshake-duration: The duration of TLS handshakes on the server.
    • current-tls-handshakes: Number of TLS handshakes that are currently in progress on the server.
  • Microsoft.AspNetCore.Http.Connections
    • current-connections: Number of connections that are currently active on the server.
    • connection-duration: The duration of connections on the server.
    • current-transports: Number of negotiated transports that are currently active on the server.

Describe the solution you'd like
As far as I can see, there are only mappings for 7 of these. I would love for it to automatically map some of these new ones.

Describe alternatives you've considered
Make it possible to map custom metrics so that they don't just get continueed here. This could be done through an environment variable that takes a string in a similar format to how the dotnet-counter tool parses the --counter argument.

Additional context
Metrics added in this PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions