Skip to content

Commit

Permalink
fix: metric timer initialization with bad default (#5339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackmin801 committed Nov 2, 2022
1 parent a9ef7bc commit a38705d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jina/serve/instrumentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def __init__(
self,
summary_metric: Optional['Summary'],
histogram: Optional['Histogram'],
histogram_metric_labels: Dict[str, str] = {},
histogram_metric_labels: Optional[Dict[str, str]] = None,
) -> None:
if histogram_metric_labels is None:
histogram_metric_labels = {}
self._summary_metric = summary_metric
self._histogram = histogram
self._histogram_metric_labels = histogram_metric_labels
Expand Down

0 comments on commit a38705d

Please sign in to comment.