Skip to content

Commit 36cb982

Browse files
committed
Pass Other Params to Gauge Method
1 parent c780d68 commit 36cb982

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/sentry/taskworker/adapters.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,19 @@ def gauge(
6565
value: float,
6666
instance: str | None = None,
6767
tags: Tags | None = None,
68-
sample_rate: float = 1,
68+
sample_rate: float = settings.SENTRY_METRICS_SAMPLE_RATE,
6969
unit: str | None = None,
7070
stacklevel: int = 0,
7171
) -> None:
72-
return sentry_metrics.gauge(key, value, tags=tags)
72+
return sentry_metrics.gauge(
73+
key,
74+
value,
75+
instance=instance,
76+
tags=tags,
77+
sample_rate=sample_rate,
78+
unit=unit,
79+
stacklevel=stacklevel,
80+
)
7381

7482
def distribution(
7583
self,

0 commit comments

Comments
 (0)