Skip to content

Very slow response doing http request to /metrics #488

@eturgeon123

Description

@eturgeon123

Upgrading to .net8.0 we noticed a major drop in the performance of the library regarding the time response when we call the URL for the metrics. Especially for services that do DNS resolve a lot. It can take like 30 secs or one minute to get the full response of the /metrics page.

I tried to trace the code and I noticed that the method "WriteMetricPointAsync" is called like 27k times, while handling the node "system_net_nameresolution_dns_lookup_duration_bucket"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions