MCPcopy Create free account
hub / github.com/HackSoftware/Django-Styleguide-Example / traces_sampler

Function traces_sampler

config/settings/sentry.py:20–64  ·  view source on GitHub ↗

We want to track only web transactions, and ignore all Celery transactions. Here's an example context from Celery: { "transaction_context": { "trace_id": "08c7c8b4d8744977a24d40457fc36d0b", "span_id": "9a78f06a999ae7a2",

(sampling_context)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected