Skip to main content

NewSuccessAndFailureCounter

No overview available.

def NewSuccessAndFailureCounter(
scope: promutils.Scope
) - > SuccessAndFailureCounter

Creates and initializes a new SuccessAndFailureCounter instance, setting up Prometheus counters for tracking successful and failed events within the provided scope.

Parameters

NameTypeDescription
scopepromutils.ScopeThe Prometheus scope to which the success and failure counters will be registered. This scope provides the context for metric naming and registration.

Returns

TypeDescription
SuccessAndFailureCounterA new SuccessAndFailureCounter object with initialized success and failure counters.