---
title: "Limiting Trace Propagation"
url: https://docs.sentry.io/platforms/ruby/guides/rails/tracing/trace-propagation/limiting-trace-propagation/
---

# Limiting Trace Propagation | Sentry for Rails

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:

```ruby
Sentry.init do |config|
  config.dsn = '___PUBLIC_DSN___'

  # takes strings and regexes
  config.trace_propagation_targets = ['myproject.org', /.*\.otherservice.org\/.*/]

  # ...
end
```

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/ruby/guides/rails/configuration/options.md#trace-propagation-targets) documentation for more information about the `trace_propagation_targets` option.
