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
| Name | Type | Description |
|---|---|---|
| scope | promutils.Scope | The Prometheus scope to which the success and failure counters will be registered. This scope provides the context for metric naming and registration. |
Returns
| Type | Description |
|---|---|
SuccessAndFailureCounter | A new SuccessAndFailureCounter object with initialized success and failure counters. |