|
5 | 5 |
|
6 | 6 | import pytest |
7 | 7 | import requests |
8 | | -from dirty_equals import IsInt, IsOneOf |
| 8 | +from dirty_equals import IsInt |
9 | 9 | from inline_snapshot import snapshot |
10 | 10 | from opentelemetry.metrics import CallbackOptions, Observation |
11 | 11 | from opentelemetry.sdk.metrics._internal.export import MetricExporter, MetricExportResult |
@@ -230,15 +230,7 @@ def observable_counter(options: CallbackOptions): |
230 | 230 | 'start_time_unix_nano': IsInt(), |
231 | 231 | 'time_unix_nano': IsInt(), |
232 | 232 | 'value': 4300, |
233 | | - 'exemplars': [ |
234 | | - { |
235 | | - 'filtered_attributes': None, |
236 | | - 'value': 4321, |
237 | | - 'time_unix_nano': IsInt(), |
238 | | - 'span_id': None, |
239 | | - 'trace_id': None, |
240 | | - } |
241 | | - ], |
| 233 | + 'exemplars': [], |
242 | 234 | } |
243 | 235 | ], |
244 | 236 | 'aggregation_temporality': AggregationTemporality.DELTA, |
@@ -273,15 +265,7 @@ def observable_gauge(options: CallbackOptions): |
273 | 265 | 'start_time_unix_nano': None, |
274 | 266 | 'time_unix_nano': IsInt(), |
275 | 267 | 'value': 4000, |
276 | | - 'exemplars': [ |
277 | | - { |
278 | | - 'filtered_attributes': None, |
279 | | - 'value': IsOneOf(300, 4000), |
280 | | - 'time_unix_nano': IsInt(), |
281 | | - 'span_id': None, |
282 | | - 'trace_id': None, |
283 | | - } |
284 | | - ], |
| 268 | + 'exemplars': [], |
285 | 269 | } |
286 | 270 | ] |
287 | 271 | }, |
@@ -315,15 +299,7 @@ def observable_counter(options: CallbackOptions): |
315 | 299 | 'start_time_unix_nano': IsInt(), |
316 | 300 | 'time_unix_nano': IsInt(), |
317 | 301 | 'value': 4321, |
318 | | - 'exemplars': [ |
319 | | - { |
320 | | - 'filtered_attributes': None, |
321 | | - 'value': 4321, |
322 | | - 'time_unix_nano': IsInt(), |
323 | | - 'span_id': None, |
324 | | - 'trace_id': None, |
325 | | - } |
326 | | - ], |
| 302 | + 'exemplars': [], |
327 | 303 | } |
328 | 304 | ], |
329 | 305 | 'aggregation_temporality': AggregationTemporality.CUMULATIVE, |
|
0 commit comments