I've got this config:
def sentry_traces_sampler(sampling_context):
if tx_context := sampling_context.get("transaction_context"):
if tx_context.get("name") == "/mqtt-sync/":
return 0.01
return 0.1
GITHUB_SHA = env("GITHUB_SHA", "")
RELEASE_VERSION = env("RELEASE_VERSION", "")
if RELEASE_VERSION == "main":
RELEASE_VERSION = GITHUB_SHA
SENTRY_DSN = env("SENTRY_DSN", None)
SENTRY_ENV = env("SENTRY_ENVIRONMENT", "development")
if SENTRY_DSN:
sentry_sdk.init(
dsn=SENTRY_DSN,
environment=SENTRY_ENV,
release=RELEASE_VERSION,
integrations=[
DjangoIntegration(),
StrawberryIntegration(
async_execution=False,
),
],
enable_tracing=True,
traces_sampler=sentry_traces_sampler,
send_default_pii=True,
)
however, i'm still seeing a higher than expected volume come through for the mqtt-sync transaction. How can i be sure it's accurately filtering? it's blowing through my performance units. i think it's the only one but not sure.