Skip to content

Commit 3a433bf

Browse files
CustomDimensions are not supposed to be nested
1 parent 329110f commit 3a433bf

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

datareservoirio/client.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,11 @@ def wrapper(self, series_id, start=None, end=None, **kwargs):
327327
).isoformat()
328328
number_of_samples = len(result)
329329
properties = {
330-
"custom_dimensions": {
331-
"series_id": series_id,
332-
"start": start_date_as_str,
333-
"end": end_date_as_str,
334-
"elapsed": elapsed_time,
335-
"number-of-samples": number_of_samples,
336-
}
330+
"series_id": series_id,
331+
"start": start_date_as_str,
332+
"end": end_date_as_str,
333+
"elapsed": elapsed_time,
334+
"number-of-samples": number_of_samples,
337335
}
338336
metric().info("Timer", extra=properties)
339337
return result

0 commit comments

Comments
 (0)