diff --git a/frontik/integrations/statsd.py b/frontik/integrations/statsd.py index 6c2648ebb..01c4be340 100644 --- a/frontik/integrations/statsd.py +++ b/frontik/integrations/statsd.py @@ -210,6 +210,6 @@ def create_statsd_client(options: Options, app: FrontikApplication) -> Union[Sta options.statsd_port, options.statsd_default_periodic_send_interval_sec, options.statsd_max_udp_size, - app=app.app_module_name, + app=app.app_name, ) return statsd_client diff --git a/tests/test_statsd_integration.py b/tests/test_statsd_integration.py index 9a4dad7a0..e20560329 100644 --- a/tests/test_statsd_integration.py +++ b/tests/test_statsd_integration.py @@ -39,6 +39,6 @@ def test_send_to_statsd(self): metrics = '\n'.join(metrics).split('\n') - assert 'count_metric.tag1_is_tag1.tag2_is_tag2.app_is_tests-projects-test_app:10|c' in metrics - assert 'gauge_metric.tag_is_tag3.app_is_tests-projects-test_app:100|g' in metrics - assert 'time_metric.tag_is_tag4.app_is_tests-projects-test_app:1000|ms' in metrics + assert 'count_metric.tag1_is_tag1.tag2_is_tag2.app_is_test_app:10|c' in metrics + assert 'gauge_metric.tag_is_tag3.app_is_test_app:100|g' in metrics + assert 'time_metric.tag_is_tag4.app_is_test_app:1000|ms' in metrics