PragmaticFlow / NBomber

Modern and flexible load testing framework for Pull and Push scenarios, designed to test any system regardless a protocol (HTTP/WebSockets/AMQP etc) or a semantic model (Pull/Push).
https://nbomber.com
Other
2.08k stars 129 forks source link

Implement custom Metrics API #732

Open AntyaDev opened 2 months ago

AntyaDev commented 2 months ago

reference discussion

var step1 = await Step.Run("login", context, async () =>
{
    context.Metric.Counter.Increment("success");

    context.Metric.Counter.Increment("success", 10);

    context.Metric.Counter.Decrement("success");

    return Response.Ok();
});

https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.metrics?view=net-8.0