---
title: "Limiting Trace Propagation"
url: https://docs.sentry.io/platforms/python/tracing/distributed-tracing/limiting-trace-propagation/
---

# Limiting Trace Propagation | Sentry for Python

By default, trace information (`sentry-trace` and `baggage` headers) will be added to all outgoing HTTP requests. If you want to limit the URLs where trace information is added, you can specify that using the `trace_propagation_targets` option:

```python
import sentry_sdk

sentry_sdk.init(
    dsn="___PUBLIC_DSN___",
    trace_propagation_targets=[
        "https://myproject.org",
        r"https://.*\.otherservice.org/.*",
    ],
    # ...
)
```

In the example above, trace information will be added to all requests to URLs that contain `myproject.org` and to all sub domains of `otherservice.org`, like `https://api.otherservice.org/something/` and `https://payment.otherservice.org/something/`.

See our [config options](https://docs.sentry.io/platforms/python/configuration/options.md#trace-propagation-targets) documentation for more information about the `trace_propagation_targets` option.
