The default label name was being set at PromMetrics class creation within terafoundation instead of being set at initialization. It previously was getting the value for name from context.name, but this doesn't always match with teraslice.name and would never be correct if used with spaces.
There is now a test in prom-metrics-spec.ts that checks the default labels for the correct values.
The default label
name
was being set atPromMetrics
class creation withinterafoundation
instead of being set at initialization. It previously was getting the value forname
fromcontext.name
, but this doesn't always match withteraslice.name
and would never be correct if used withspaces
.There is now a test in
prom-metrics-spec.ts
that checks the default labels for the correct values.