---
title: "LinkedTraces"
description: "Link each new browser trace to the previous one so you can navigate between them in Sentry."
url: https://docs.sentry.io/platforms/javascript/guides/ember/configuration/integrations/linkedtraces/
---

# LinkedTraces for Ember

This integration only works inside a browser environment. It requires JavaScript SDK version 11.14.0 or later.

*Import name: `Sentry.linkedTracesIntegration`*

The LinkedTraces integration links each new trace, such as a navigation, to the previous one, so you can move between the traces of a user journey in Sentry.

The [BrowserTracing](https://docs.sentry.io/platforms/javascript/guides/ember/configuration/integrations/browsertracing.md) integration adds this integration automatically, so you don't need to add it yourself. Configure it through BrowserTracing's `linkPreviousTrace` and `consistentTraceSampling` options, or set `linkPreviousTrace: "off"` to turn it off.

```javascript
Sentry.init({
  integrations: [
    Sentry.browserTracingIntegration({
      linkPreviousTrace: "session-storage",
      consistentTraceSampling: true,
    }),
  ],
});
```

To set its options directly, add the integration yourself. An explicitly added LinkedTraces integration takes precedence over BrowserTracing's settings.

## [Configuration Options](https://docs.sentry.io/platforms/javascript/guides/ember/configuration/integrations/linkedtraces.md#configuration-options)

### [storage](https://docs.sentry.io/platforms/javascript/guides/ember/configuration/integrations/linkedtraces.md#storage)

| Type    | `'in-memory' \| 'session-storage'` |
| ------- | ---------------------------------- |
| Default | `'in-memory'`                      |

Where the previous trace is stored. Use `'in-memory'` for single-page applications. Use `'session-storage'` for multi-page applications, which makes the SDK write to the browser's `sessionStorage`.

This is the `linkPreviousTrace` option of BrowserTracing.

### [consistentTraceSampling](https://docs.sentry.io/platforms/javascript/guides/ember/configuration/integrations/linkedtraces.md#consistentTraceSampling)

| Type    | `boolean` |
| ------- | --------- |
| Default | `false`   |

Sample subsequent traces with the sampling decision of the initial trace. If the pageload trace was sampled, the navigations that follow are sampled too, and the other way around. Without it, your `tracesSampleRate` or `tracesSampler` decides how often linked traces are both sampled.

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
