Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom labels for UseHttpClientMetrics? #350

@FrankRua

Description

@FrankRua

Hello,

While using the Prometheus package I see that you can implement metrics on HttpClients using ...AddHttpClient(Options.DefaultName).UseHttpClientMetrics() but it only gives you a finite amount of detail.

Is there a way that you can add specific things from the HttpClient request (like the HttpContext of it?) so that you can have more data on the calls the HttpClient is making. Right now the data is mostly useless when trying to determine metrics around duration / path of different endpoints the HttpClients are calling.

I know you can do this with named HttpClients but that's not an option for me as the amount of HttpClients we would need to create for our services would become hard to maintain after awhile.

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