@@ -10,7 +10,7 @@ class TestSentrySDKMetricsBackend:
1010 def backend (self ):
1111 return SentrySDKMetricsBackend (prefix = "test." , experimental_sample_rate = 1.0 )
1212
13- @mock .patch ("sentry_sdk._metrics .count" )
13+ @mock .patch ("sentry_sdk.metrics .count" )
1414 def test_incr (self , mock_count , backend ):
1515 with mock .patch .object (backend , "_should_send" , return_value = True ):
1616 backend .incr ("foo" , tags = {"x" : "y" }, amount = 2 , unit = "count" )
@@ -22,7 +22,7 @@ def test_incr(self, mock_count, backend):
2222 attributes = {"x" : "y" },
2323 )
2424
25- @mock .patch ("sentry_sdk._metrics .count" )
25+ @mock .patch ("sentry_sdk.metrics .count" )
2626 def test_incr_no_unit (self , mock_count , backend ):
2727 with mock .patch .object (backend , "_should_send" , return_value = True ):
2828 backend .incr ("foo" , tags = {"x" : "y" }, amount = 2 )
@@ -34,7 +34,7 @@ def test_incr_no_unit(self, mock_count, backend):
3434 attributes = {"x" : "y" },
3535 )
3636
37- @mock .patch ("sentry_sdk._metrics .gauge" )
37+ @mock .patch ("sentry_sdk.metrics .gauge" )
3838 def test_gauge (self , mock_gauge , backend ):
3939 with mock .patch .object (backend , "_should_send" , return_value = True ):
4040 backend .gauge ("bar" , value = 42.0 , tags = {"x" : "y" }, unit = "bytes" )
@@ -46,7 +46,7 @@ def test_gauge(self, mock_gauge, backend):
4646 attributes = {"x" : "y" },
4747 )
4848
49- @mock .patch ("sentry_sdk._metrics .distribution" )
49+ @mock .patch ("sentry_sdk.metrics .distribution" )
5050 def test_distribution (self , mock_distribution , backend ):
5151 with mock .patch .object (backend , "_should_send" , return_value = True ):
5252 backend .distribution ("baz" , value = 100.0 , tags = {"x" : "y" }, unit = "millisecond" )
@@ -58,7 +58,7 @@ def test_distribution(self, mock_distribution, backend):
5858 attributes = {"x" : "y" },
5959 )
6060
61- @mock .patch ("sentry_sdk._metrics .count" )
61+ @mock .patch ("sentry_sdk.metrics .count" )
6262 def test_incr_with_instance (self , mock_count , backend ):
6363 with mock .patch .object (backend , "_should_send" , return_value = True ):
6464 backend .incr ("foo" , instance = "web" , tags = {"x" : "y" }, amount = 1 )
@@ -76,13 +76,13 @@ def test_timing_noop(self, backend):
7676 def test_event_noop (self , backend ):
7777 backend .event ("title" , "message" )
7878
79- @mock .patch ("sentry_sdk._metrics .count" )
79+ @mock .patch ("sentry_sdk.metrics .count" )
8080 def test_incr_sampling (self , mock_count ):
8181 backend = SentrySDKMetricsBackend (prefix = "test." , experimental_sample_rate = 0.0 )
8282 backend .incr ("foo" , amount = 1 )
8383 mock_count .assert_not_called ()
8484
85- @mock .patch ("sentry_sdk._metrics .count" )
85+ @mock .patch ("sentry_sdk.metrics .count" )
8686 def test_incr_deny_list (self , mock_count ):
8787 backend = SentrySDKMetricsBackend (
8888 prefix = "test." , experimental_sample_rate = 1.0 , deny_list = ["test.denied" ]
0 commit comments