We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 121c9d2 commit 1110e33Copy full SHA for 1110e33
sentry_sdk/_types.py
@@ -256,6 +256,7 @@ class SDKInfo(TypedDict):
256
)
257
258
MetricType = Literal["counter", "gauge", "distribution"]
259
+ MetricUnit = Union[DurationUnit, InformationUnit]
260
261
Metric = TypedDict(
262
"Metric",
@@ -266,7 +267,7 @@ class SDKInfo(TypedDict):
266
267
"name": str,
268
"type": MetricType,
269
"value": float,
- "unit": Optional[str],
270
+ "unit": Optional[MetricUnit],
271
"attributes": Attributes,
272
},
273
0 commit comments