5
5
6
6
BYTE_MULTIPLIER = 1024
7
7
UNITS = ("K" , "M" , "G" )
8
+
9
+
8
10
def unit_text_to_bytes (text ):
9
11
unit = text [- 1 ].upper ()
10
12
power = UNITS .index (unit ) + 1
11
- return float (text [:- 1 ])* (BYTE_MULTIPLIER ** power )
13
+ return float (text [:- 1 ]) * (BYTE_MULTIPLIER ** power )
12
14
13
15
14
16
# Generously adapted from pynetlinux: https://github.com/rlisagor/pynetlinux/blob/e3f16978855c6649685f0c43d4c3fcf768427ae5/pynetlinux/ifconfig.py#L197-L223
@@ -114,7 +116,7 @@ def get_internal_network():
114
116
"BACKEND" : "django.core.cache.backends.memcached.PyMemcacheCache" ,
115
117
"LOCATION" : ["memcached:11211" ],
116
118
"TIMEOUT" : 3600 ,
117
- "OPTIONS" : {"ignore_exc" : True }
119
+ "OPTIONS" : {"ignore_exc" : True },
118
120
}
119
121
}
120
122
@@ -191,7 +193,9 @@ def get_internal_network():
191
193
###################
192
194
193
195
SENTRY_RELEASE_HEALTH = "sentry.release_health.metrics.MetricsReleaseHealthBackend"
194
- SENTRY_RELEASE_MONITOR = "sentry.release_health.release_monitor.metrics.MetricReleaseMonitorBackend"
196
+ SENTRY_RELEASE_MONITOR = (
197
+ "sentry.release_health.release_monitor.metrics.MetricReleaseMonitorBackend"
198
+ )
195
199
196
200
##############
197
201
# Web Server #
@@ -248,7 +252,7 @@ def get_internal_network():
248
252
# Mail #
249
253
########
250
254
251
- SENTRY_OPTIONS ["mail.list-namespace" ] = env (' SENTRY_MAIL_HOST' , ' localhost' )
255
+ SENTRY_OPTIONS ["mail.list-namespace" ] = env (" SENTRY_MAIL_HOST" , " localhost" )
252
256
SENTRY_OPTIONS ["mail.from" ] = f"sentry@{ SENTRY_OPTIONS ['mail.list-namespace' ]} "
253
257
254
258
############
@@ -288,6 +292,7 @@ def get_internal_network():
288
292
"projects:plugins" ,
289
293
"projects:rate-limits" ,
290
294
"projects:servicehooks" ,
295
+ "projects:span-metrics-extraction" ,
291
296
)
292
297
}
293
298
)
@@ -296,7 +301,7 @@ def get_internal_network():
296
301
# MaxMind Integration #
297
302
#######################
298
303
299
- GEOIP_PATH_MMDB = ' /geoip/GeoLite2-City.mmdb'
304
+ GEOIP_PATH_MMDB = " /geoip/GeoLite2-City.mmdb"
300
305
301
306
#########################
302
307
# Bitbucket Integration #
0 commit comments