From 7a751c848bdc1b0119635b2e0999858ef2e9e197 Mon Sep 17 00:00:00 2001 From: okozachenko Date: Tue, 25 Aug 2020 16:15:37 +0300 Subject: [PATCH] Use default sample rate for sentry Change-Id: Icb8f07e590d4d6c0ab2678c3ccc174b9edad3735 --- images/barbican/barbican-wsgi-api | 5 +---- images/glance/glance-wsgi-api | 5 +---- images/heat/heat-engine | 5 +---- images/heat/heat-wsgi-api | 5 +---- images/heat/heat-wsgi-api-cfn | 5 +---- images/horizon/wsgi.py | 5 +---- images/keystone/keystone-wsgi-public | 5 +---- images/magnum/magnum-api-wsgi | 5 +---- images/placement/placement-api | 5 +---- 9 files changed, 9 insertions(+), 36 deletions(-) diff --git a/images/barbican/barbican-wsgi-api b/images/barbican/barbican-wsgi-api index 0184167b..4b5bd2b7 100755 --- a/images/barbican/barbican-wsgi-api +++ b/images/barbican/barbican-wsgi-api @@ -24,10 +24,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("barbican").version -sentry_sdk.init( - release="barbican@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="barbican@%s" % VERSION) application = get_api_wsgi_script() application = wsgi.SentryWsgiMiddleware(application) diff --git a/images/glance/glance-wsgi-api b/images/glance/glance-wsgi-api index 2e520ea4..6c2aa7af 100644 --- a/images/glance/glance-wsgi-api +++ b/images/glance/glance-wsgi-api @@ -23,10 +23,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("glance").version -sentry_sdk.init( - release="glance@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="glance@%s" % VERSION) application = init_app() application = wsgi.SentryWsgiMiddleware(application) diff --git a/images/heat/heat-engine b/images/heat/heat-engine index 660845be..e7fc4515 100755 --- a/images/heat/heat-engine +++ b/images/heat/heat-engine @@ -22,10 +22,7 @@ from heat.cmd.engine import main VERSION = pkg_resources.get_distribution("openstack-heat").version -sentry_sdk.init( - release="openstack-heat@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="openstack-heat@%s" % VERSION) if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) diff --git a/images/heat/heat-wsgi-api b/images/heat/heat-wsgi-api index cb1b7365..82459afc 100755 --- a/images/heat/heat-wsgi-api +++ b/images/heat/heat-wsgi-api @@ -23,10 +23,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("openstack-heat").version -sentry_sdk.init( - release="openstack-heat@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="openstack-heat@%s" % VERSION) application = init_application() application = wsgi.SentryWsgiMiddleware(application) diff --git a/images/heat/heat-wsgi-api-cfn b/images/heat/heat-wsgi-api-cfn index f1f73c74..1436a5e5 100755 --- a/images/heat/heat-wsgi-api-cfn +++ b/images/heat/heat-wsgi-api-cfn @@ -23,10 +23,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("openstack-heat").version -sentry_sdk.init( - release="openstack-heat@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="openstack-heat@%s" % VERSION) application = init_application() application = wsgi.SentryWsgiMiddleware(application) diff --git a/images/horizon/wsgi.py b/images/horizon/wsgi.py index 8dbd215c..53743a05 100644 --- a/images/horizon/wsgi.py +++ b/images/horizon/wsgi.py @@ -29,10 +29,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("horizon").version -sentry_sdk.init( - release="horizon@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="horizon@%s" % VERSION) # Add this file path to sys.path in order to import settings sys.path.insert(0, os.path.normpath(os.path.join( diff --git a/images/keystone/keystone-wsgi-public b/images/keystone/keystone-wsgi-public index b75820f0..d1f9a506 100644 --- a/images/keystone/keystone-wsgi-public +++ b/images/keystone/keystone-wsgi-public @@ -23,10 +23,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("keystone").version -sentry_sdk.init( - release="keystone@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="keystone@%s" % VERSION) application = initialize_public_application() application = wsgi.SentryWsgiMiddleware(application) diff --git a/images/magnum/magnum-api-wsgi b/images/magnum/magnum-api-wsgi index de3dd1fd..081ebd75 100755 --- a/images/magnum/magnum-api-wsgi +++ b/images/magnum/magnum-api-wsgi @@ -24,10 +24,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("magnum").version -sentry_sdk.init( - release="magnum@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="magnum@%s" % VERSION) application = build_wsgi_app() application = wsgi.SentryWsgiMiddleware(application) diff --git a/images/placement/placement-api b/images/placement/placement-api index 8dcd0d26..8e835e0f 100755 --- a/images/placement/placement-api +++ b/images/placement/placement-api @@ -23,10 +23,7 @@ from sentry_sdk.integrations import wsgi VERSION = pkg_resources.get_distribution("openstack-placement").version -sentry_sdk.init( - release="placement@%s" % VERSION, - traces_sample_rate=0.1 -) +sentry_sdk.init(release="placement@%s" % VERSION) application = init_application() application = wsgi.SentryWsgiMiddleware(application)