NewTestScope
Returns a randomly-named scope for use in tests. The generated name starts with "test" followed by 6 random alphabetic characters, adhering to Prometheus metric naming requirements.
def NewTestScope() - > Scope
Returns a randomly-named scope for use in tests. Prometheus requires that metric names begin with a single word, which is generated from the alphabetic testScopeNameCharset.
Returns
| Type | Description |
|---|---|
Scope | A new Scope object with a randomly generated name prefixed with "test". |