8000 chore: add docstring to clarify LabeledCounterMetric, CounterMetric, … · localstack/localstack@68e55e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68e55e4

Browse files
chore: add docstring to clarify LabeledCounterMetric, CounterMetric, BaseCounter should not be instantiated directly
1 parent 8bc1c26 commit 68e55e4

File tree

1 file changed

+2
-2
lines changed
  • localstack-core/localstack/utils/analytics

1 file changed

+2
-2
lines changed

localstack-core/localstack/utils/analytics/metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def reset(self) -> None:
140140
class CounterMetric(Metric, BaseCounter):
141141
"""
142142
A thread-safe counter for tracking occurrences of an event without labels.
143-
This class is intended for type hinting only 8000 and should not be instantiated directly; use the Counter class instead.
143+
This class should not be instantiated directly, use the Counter class instead.
144144
"""
145145

146146
_namespace: Optional[str]
@@ -175,7 +175,7 @@ def collect(self) -> List[Dict[str, Union[str, int]]]:
175175
class LabeledCounterMetric(Metric):
176176
"""
177177
A labeled counter that tracks occurrences of an event across different label combinations.
178-
This class is intended for type hinting only and should not be instantiated directly; use the Counter class instead.
178+
This class should not be instantiated directly, use the Counter class instead.
179179
"""
180180

181181
_namespace: Optional[str]

0 commit comments

Comments
 (0)
0