> For the complete documentation index, see [llms.txt](https://docs.coupler.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coupler.io/sources/category/other/bugsnag/best-practices.md).

# Best Practices

## Recommended setup

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Use a dedicated service account token</strong></td><td>Avoid using a personal developer token in production data flows. Create a dedicated Bugsnag user (e.g., a bot account) with the minimum required permissions, and use its Personal Auth Token. This way, your data flows won't break if a team member leaves.</td></tr><tr><td><strong>Start with Errors before Events</strong></td><td>The Errors entity is lighter and faster to export than Events. Use Errors for dashboards and trend reports. Only pull Events when you need granular, per-occurrence details — and always set a narrow start date when you do.</td></tr><tr><td><strong>Split large projects into separate data flows</strong></td><td>If you have multiple high-traffic projects, create one data flow per project rather than pulling all data in one go. This keeps exports fast and makes it easier to isolate issues if something breaks.</td></tr></tbody></table>

## Data refresh and scheduling

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Match refresh frequency to error volume</strong></td><td>For production apps with active users, daily or hourly refreshes on the Errors entity give you timely stability data. For release tracking, refreshing after each deploy is more useful than a fixed schedule.</td></tr><tr><td><strong>Use a rolling start date for ongoing exports</strong></td><td>Set your start date to a fixed lookback window (e.g., the last 30 or 90 days) rather than your project's launch date. This keeps exports fast and prevents you from reprocessing historical data that hasn't changed.</td></tr></tbody></table>

## Performance optimization

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Use Pivots for aggregate analysis</strong></td><td>If you want error breakdowns by OS, browser, or app version, pull the Pivots entity instead of processing raw Events. Bugsnag pre-aggregates this data, so your export will be much smaller and faster.</td></tr><tr><td><strong>Join Errors and Releases in Coupler.io</strong></td><td>Instead of pulling a combined dataset from Bugsnag, export Errors and Releases as separate entities and use Coupler.io's Join transformation to link them by app version. This gives you cleaner, more maintainable data flows.</td></tr></tbody></table>

## Common pitfalls

{% hint style="danger" %}
Don't pull the full Events history for a high-traffic project in a single run — this will almost certainly hit Bugsnag's API rate limits. Always set a start date and test with a short window first.
{% endhint %}

{% columns %}
{% column %}
**Do**

* Use the Errors entity for dashboards and trend reporting
* Set a meaningful start date for every data flow
* Use Append to combine error data from multiple projects
* Test with a manual run before scheduling
  {% endcolumn %}

{% column %}
**Don't**

* Pull raw Events without a start date on active projects
* Use your personal token in shared or automated data flows
* Confuse the project API key (for SDKs) with the Personal Auth Token (for the API)
* Ignore 403 errors — they usually mean your token lacks org-level permissions
  {% endcolumn %}
  {% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coupler.io/sources/category/other/bugsnag/best-practices.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
