File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tests/integrations/litestar Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55
66from sentry_sdk import capture_message
77from sentry_sdk .integrations .litestar import LitestarIntegration
8+ from tests .conftest import ApproxDict
89
910from typing import Any
1011
@@ -202,7 +203,7 @@ def is_matching_span(expected_span, actual_span):
202203 return (
203204 expected_span ["op" ] == actual_span ["op" ]
204205 and expected_span ["description" ] == actual_span ["description" ]
205- and expected_span ["tags" ] == actual_span ["tags" ]
206+ and ApproxDict ( expected_span ["tags" ]) == actual_span ["tags" ]
206207 )
207208
208209 actual_litestar_spans = list (
@@ -298,7 +299,7 @@ def is_matching_span(expected_span, actual_span):
298299 return (
299300 expected_span ["op" ] == actual_span ["op" ]
300301 and actual_span ["description" ].startswith (expected_span ["description" ])
301- and expected_span ["tags" ] == actual_span ["tags" ]
302+ and ApproxDict ( expected_span ["tags" ]) == actual_span ["tags" ]
302303 )
303304
304305 actual_litestar_spans = list (
You can’t perform that action at this time.
0 commit comments