@@ -14,19 +14,31 @@ def setUp(self):
1414 def test_incr (self , mock_incr ):
1515 self .backend .incr ("foo" , instance = "bar" )
1616 mock_incr .assert_called_once_with (
17- "sentrytest.foo" , 1 , sample_rate = 1 , tags = ["instance:bar" ], host = get_hostname ()
17+ "sentrytest.foo" ,
18+ 1 ,
19+ sample_rate = 1 ,
20+ tags = ["instance:bar" ],
21+ host = get_hostname (hostname_from_config = True ),
1822 )
1923
2024 @patch ("datadog.threadstats.base.ThreadStats.timing" )
2125 def test_timing (self , mock_timing ):
2226 self .backend .timing ("foo" , 30 , instance = "bar" )
2327 mock_timing .assert_called_once_with (
24- "sentrytest.foo" , 30 , sample_rate = 1 , tags = ["instance:bar" ], host = get_hostname ()
28+ "sentrytest.foo" ,
29+ 30 ,
30+ sample_rate = 1 ,
31+ tags = ["instance:bar" ],
32+ host = get_hostname (hostname_from_config = True ),
2533 )
2634
2735 @patch ("datadog.threadstats.base.ThreadStats.gauge" )
2836 def test_gauge (self , mock_gauge ):
2937 self .backend .gauge ("foo" , 5 , instance = "bar" )
3038 mock_gauge .assert_called_once_with (
31- "sentrytest.foo" , 5 , sample_rate = 1 , tags = ["instance:bar" ], host = get_hostname ()
39+ "sentrytest.foo" ,
40+ 5 ,
41+ sample_rate = 1 ,
42+ tags = ["instance:bar" ],
43+ host = get_hostname (hostname_from_config = True ),
3244 )
0 commit comments