Skip to content

Commit 82a8c3a

Browse files
committed
Enable span extraction from event
1 parent b31e66f commit 82a8c3a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

sentry/sentry.conf.example.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55

66
BYTE_MULTIPLIER = 1024
77
UNITS = ("K", "M", "G")
8+
9+
810
def unit_text_to_bytes(text):
911
unit = text[-1].upper()
1012
power = UNITS.index(unit) + 1
11-
return float(text[:-1])*(BYTE_MULTIPLIER**power)
13+
return float(text[:-1]) * (BYTE_MULTIPLIER**power)
1214

1315

1416
# Generously adapted from pynetlinux: https://github.com/rlisagor/pynetlinux/blob/e3f16978855c6649685f0c43d4c3fcf768427ae5/pynetlinux/ifconfig.py#L197-L223
@@ -114,7 +116,7 @@ def get_internal_network():
114116
"BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
115117
"LOCATION": ["memcached:11211"],
116118
"TIMEOUT": 3600,
117-
"OPTIONS": {"ignore_exc": True}
119+
"OPTIONS": {"ignore_exc": True},
118120
}
119121
}
120122

@@ -191,7 +193,9 @@ def get_internal_network():
191193
###################
192194

193195
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+
)
195199

196200
##############
197201
# Web Server #
@@ -248,7 +252,7 @@ def get_internal_network():
248252
# Mail #
249253
########
250254

251-
SENTRY_OPTIONS["mail.list-namespace"] = env('SENTRY_MAIL_HOST', 'localhost')
255+
SENTRY_OPTIONS["mail.list-namespace"] = env("SENTRY_MAIL_HOST", "localhost")
252256
SENTRY_OPTIONS["mail.from"] = f"sentry@{SENTRY_OPTIONS['mail.list-namespace']}"
253257

254258
############
@@ -288,6 +292,7 @@ def get_internal_network():
288292
"projects:plugins",
289293
"projects:rate-limits",
290294
"projects:servicehooks",
295+
"projects:span-metrics-extraction",
291296
)
292297
}
293298
)
@@ -296,7 +301,7 @@ def get_internal_network():
296301
# MaxMind Integration #
297302
#######################
298303

299-
GEOIP_PATH_MMDB = '/geoip/GeoLite2-City.mmdb'
304+
GEOIP_PATH_MMDB = "/geoip/GeoLite2-City.mmdb"
300305

301306
#########################
302307
# Bitbucket Integration #

0 commit comments

Comments
 (0)