# Authentication Source: https://interfere.com/docs/api-reference/authentication Authenticate requests to the public Interfere API. The public API reference describes ingestion and release operations. Download the [OpenAPI specification](https://api.interfere.com/openapi.json) to generate a client, or use the [TypeScript Platform SDK](/docs/platform-sdk/typescript). ## Release operations Use an app secret key with `release:write`. Send it as a bearer token or in the `x-api-key` header. The API calls an app a surface, so paths, fields, and scopes use that name. ```bash theme={null} curl --fail-with-body https://api.interfere.com/v3/releases/config \ --header "Authorization: Bearer $INTERFERE_API_KEY" ``` Set `INTERFERE_API_KEY` to the secret key from your app. Run secret-key requests from your server or build environment. ## Ingestion operations Use the app's public key for endpoints that accept public-key authentication. The SDK supplies it for normal application capture. Check the operation's authentication fields before making a direct request. For native OTLP ingestion at `/drain/v1/traces`, `/drain/v1/logs`, and `/drain/v1/metrics`, use a workspace key with `org:telemetry:write`. Send it as `Authorization: Bearer ` or in `x-api-key`. See [OpenTelemetry ingestion](/docs/sdk/otel-ingestion). ## Workspace automation Use [MCP](/docs/integrations/mcp) or the [CLI](/docs/integrations/cli) to work interactively with workspace data. Use scoped [workspace keys](/docs/integrations/api-keys#workspace-keys) for unattended operations and [Terraform](/docs/integrations/terraform) to manage infrastructure configuration. ## Authentication errors A `401` response means the request needs a valid credential. Check the key, its expiration, and the authentication method accepted by the operation. For `403`, check the credential's scopes, its creator's current workspace access, and the workspace's [network rules](/docs/product/security#network-access). # Create release Source: https://interfere.com/docs/api-reference/releases/create-release https://api.interfere.com/openapi.json post /v3/releases Registers a release for the surface the build-time key belongs to. # Finalize source maps Source: https://interfere.com/docs/api-reference/releases/finalize-source-maps https://api.interfere.com/openapi.json post /v3/releases/{releaseSlug}/source-maps/finalize Durably accepts all signed files and their verified manifest. R2 publication retries in the background. # Get release config Source: https://interfere.com/docs/api-reference/releases/get-release-config https://api.interfere.com/openapi.json get /v3/releases/config Resolves the surface and organization a build-time key belongs to. # Get source-map publication status Source: https://interfere.com/docs/api-reference/releases/get-source-map-publication-status https://api.interfere.com/openapi.json get /v3/releases/{releaseSlug}/source-maps Reads the exact environment upload session and verifies its published manifest without changing upload state. # Report telemetry Source: https://interfere.com/docs/api-reference/releases/report-telemetry https://api.interfere.com/openapi.json post /v3/releases/{releaseSlug}/telemetry Records source-map upload timings for a release. # Sign source maps Source: https://interfere.com/docs/api-reference/releases/sign-source-maps https://api.interfere.com/openapi.json post /v3/releases/{releaseSlug}/source-maps/sign Initializes a source-map upload session and returns its expiry and file inventory. # Upload source map Source: https://interfere.com/docs/api-reference/releases/upload-source-map https://api.interfere.com/openapi.json put /v3/releases/{releaseSlug}/source-maps Uploads a source-map chunk declared to the sign call. Accepts Content-Encoding: gzip; encoded and decoded chunks must each fit within 8 MiB. Offsets refer to decoded bytes. Send the sign response's uploadGrant as the X-Interfere-Upload-Grant header in place of the API key. # Upload source-map batch Source: https://interfere.com/docs/api-reference/releases/upload-source-map-batch https://api.interfere.com/openapi.json put /v3/releases/{releaseSlug}/source-maps/batch Atomically uploads source-map chunks from the signed inventory. Accepts Content-Encoding: gzip. The encoded and decoded JSON bodies must each fit within 8 MiB. Send the sign response's uploadGrant as the X-Interfere-Upload-Grant header in place of the API key. # Identify session Source: https://interfere.com/docs/api-reference/sessions/identify-session https://api.interfere.com/openapi.json post /v3/session/identify Attaches an application user identity to a session. # companies getContext Source: https://interfere.com/docs/api-reference/tenants/companies-getcontext https://api.interfere.com/openapi.json get /v3/workspaces/{workspaceSlug}/tenants/{endUserOrgId}/context Returns the company's workspace tier with its badge shade, or null when the company has no tier. # companies merge Source: https://interfere.com/docs/api-reference/tenants/companies-merge https://api.interfere.com/openapi.json post /v3/workspaces/{workspaceSlug}/tenants/merge Moves every domain and user of the absorbed company onto the kept company, keeps the kept company's tier (filling a blank from the absorbed one), and removes the absorbed company from the list. Refuses when both companies carry different tiers. Safe to repeat: a pair that is already merged returns alreadyMerged. Requires workspace admin. # companies updateContext Source: https://interfere.com/docs/api-reference/tenants/companies-updatecontext https://api.interfere.com/openapi.json patch /v3/workspaces/{workspaceSlug}/tenants/{endUserOrgId}/context Sets or clears the company's tier. null clears it. Tier names are trimmed, case-sensitive and created within the workspace (with the gray shade) when first assigned. # companies updateContexts Source: https://interfere.com/docs/api-reference/tenants/companies-updatecontexts https://api.interfere.com/openapi.json patch /v3/workspaces/{workspaceSlug}/tenants/context Atomically sets or clears the tier of up to 100 distinct companies. Unknown, deleted, or foreign companies reject the entire batch. null clears a tier. # tiers create Source: https://interfere.com/docs/api-reference/tiers/tiers-create https://api.interfere.com/openapi.json post /v3/workspaces/{workspaceSlug}/tiers Creates a workspace company tier. Names are trimmed, case-sensitive and unique within the workspace; the shade defaults to gray. Requires tier write permission. # tiers delete Source: https://interfere.com/docs/api-reference/tiers/tiers-delete https://api.interfere.com/openapi.json delete /v3/workspaces/{workspaceSlug}/tiers/{value} Deletes a company tier and clears it from every company that carried it, returning how many companies were cleared. Requires tier write permission. # tiers list Source: https://interfere.com/docs/api-reference/tiers/tiers-list https://api.interfere.com/openapi.json get /v3/workspaces/{workspaceSlug}/tiers Lists the workspace's company tiers in name order with their badge shade. Companies reference a tier by its name. # tiers update Source: https://interfere.com/docs/api-reference/tiers/tiers-update https://api.interfere.com/openapi.json patch /v3/workspaces/{workspaceSlug}/tiers/{value} Renames a company tier or changes its shade. Renaming moves every company on the tier to the new name. Requires tier write permission. # Introduction Source: https://interfere.com/docs/index Find the cause of application errors and understand who they affect. Interfere investigates problems in your app using errors, traces, logs, session replays, and the code behind a release. Start in the Inbox. Open a problem to read the investigation, check its evidence, and see the users affected. Your team can assign an owner, discuss the findings, and follow the problem through recovery. > [card] [Set up Interfere](/docs/quickstart) > > Connect an app and verify that its first events arrive. > [card] [Investigate a problem](/docs/product/problems) > > Follow an error from its symptoms to the supporting code and traces. ## Understand the product Read [How Interfere works](/docs/product/overview) for the relationship between events, findings, and problems, and how your team follows an investigation through recovery. ## Connect your app Install the SDK for [Next.js](/docs/sdk/next-js), [Vite and React](/docs/sdk/vite), or [TanStack Start](/docs/sdk/tanstack-start). Send OpenTelemetry from [NestJS](/docs/sdk/nestjs), [Node.js](/docs/sdk/otel-ingestion#node-js), and other services. Connect [GitHub](/docs/integrations/github) so investigations can reference your source code. Each thing you monitor, such as a frontend or backend service, is an **app**. Your team's **workspace** contains those apps, their problems, and your integrations. ## Work from your own tools Use [AI Agents](/docs/integrations/plugins) or [MCP](/docs/integrations/mcp) to investigate from your editor, the [CLI](/docs/integrations/cli) to inspect problems from a terminal, and [Terraform](/docs/integrations/terraform) to manage apps. The [TypeScript Platform SDK](/docs/platform-sdk/typescript) supports custom API workflows. # API keys Source: https://interfere.com/docs/integrations/api-keys Create scoped credentials for workspace automation and builds. Interfere uses public app keys for telemetry and secret API keys for authenticated operations. Secret keys have explicit scopes and an expiration setting. Keep them in your secret manager or CI environment. ## App keys Open an app and copy its **Public key** from the sidebar. Use the public key in the SDK to capture telemetry. It is safe to include in browser code. Use the app's secret key with `release:write` to register releases and upload source maps. Interfere shows the secret key once, when you create the app; to issue a new one, run **Reroll INTERFERE\_API\_KEY** from the app's command menu. Set `INTERFERE_API_KEY` in the build environment for SDK plugins. The CLI uses `INTERFERE_SECRET_KEY` for secret key authentication. ## Workspace keys Use a workspace API key for unattended workspace operations, including Terraform. Its scopes determine which resources it can read or change. For interactive work, sign in through [MCP](/docs/integrations/mcp) or the [CLI](/docs/integrations/cli). OAuth uses your existing workspace permissions. For native OpenTelemetry ingestion, use a workspace key with **Send telemetry** (`org:telemetry:write`). See [OpenTelemetry ingestion](/docs/sdk/otel-ingestion) for setup and exporter configuration. ## Create a workspace key [Install the CLI](/docs/integrations/cli#install-and-sign-in), then sign in through your browser: ```bash theme={null} interfere auth login --scheme oauth-production ``` Use an Owner or Admin account with permission to manage workspace authentication. You can only grant permissions your account already has. Create a key for Terraform to manage apps, which the API and scopes call surfaces. Replace `acme` with the workspace slug from your Interfere URL, and replace the example UUID with a new UUID: ```bash theme={null} interfere keys private create \ --workspace acme \ --name Terraform \ --idempotency-key 9e3c0d0e-3bf7-48ae-9271-6ea58e7b970d \ --scopes org:surfaces:read \ --scopes org:surfaces:write \ --scopes org:surfaces:delete \ --seconds-until-expiration 2592000 \ --format json ``` The response contains `apiKey.id`, `apiKey.name`, and `apiKey.secret`. Save the ID for revocation and store the secret in your secret manager. Configure your CI environment to supply that secret as `INTERFERE_TOKEN` when it runs Terraform. This key expires after 30 days. Set the lifetime to the number of seconds your automation needs. Keep the same UUID and arguments if you retry an uncertain creation request; use a new UUID for a different key. The example grants app management only. To manage workspace settings or issue additional keys, add the permissions listed for those [Terraform resources](/docs/integrations/terraform). You can inspect all accepted fields with `interfere keys private create --schema`. ## Permission changes A workspace key's access is limited to its explicit scopes and its creator's current workspace permissions. Removing the creator's membership removes the key's management access. A key does not grant permissions its creator lacks. ## Revoke a key Create a replacement and update the automation that uses the old key. Then revoke the old key using its saved ID: ```bash theme={null} interfere keys private delete --workspace acme --api-key-id KEY_ID ``` Revocation prevents subsequent requests from using that credential. For app credentials, open the app. Public ingestion credentials and secret build credentials serve different purposes; copy the credential required by your SDK or tool. # CLI Source: https://interfere.com/docs/integrations/cli Use the Interfere API from your terminal, scripts, and coding agents. Use the Interfere CLI to inspect problems, read investigation evidence, and call workspace operations from your terminal. ## Install and sign in ```bash npm theme={null} npm install -g @interfere/cli ``` ```bash pnpm theme={null} pnpm add -g @interfere/cli ``` ```bash Bun theme={null} bun add -g @interfere/cli ``` Then sign in and select your workspace: ```bash theme={null} interfere auth login --scheme oauth-production export INTERFERE_WORKSPACE=your-workspace interfere problems list ``` Sign-in opens your browser. Sign in to Interfere, then set `INTERFERE_WORKSPACE` to the workspace slug from its URL. For `interfere.com/~/acme`, use `acme`. Native binaries support macOS on Apple Silicon and Intel, Linux on ARM64 and x64, and Windows on x64. Keep optional dependencies enabled so installation can select the binary for your platform. ## Discover commands and arguments Use help to find commands and `--schema` to inspect a command's arguments before calling it: ```bash theme={null} interfere --help interfere problems --help interfere problems get --schema interfere problems get --args.problem-id PROBLEM_ID ``` Workspace operations use `INTERFERE_WORKSPACE` or an explicit `--workspace` flag: ```bash theme={null} interfere problems list --workspace acme ``` ## Inspect a problem Read a problem, its timeline, and related findings in one command: ```bash theme={null} interfere problems inspect PROBLEM_ID --workspace acme ``` The inspect command combines problem details, timeline entries, and related findings. To return only the problem and findings as JSON: ```bash theme={null} interfere problems inspect PROBLEM_ID --workspace acme --query '{problem: problem, findings: findings}' --format json ``` ## Preview a request ```bash theme={null} interfere problems get --args.problem-id PROBLEM_ID --dry-run ``` `--dry-run` shows the request without sending it. It does not check your permissions or validate the request against live data. The API performs those checks when you execute the command. ## Use JSON in scripts Piped output defaults to JSON. Set `--format json` to request JSON explicitly. Use `--query` for a JMESPath expression that selects fields from the output. ```bash theme={null} interfere problems list --format json ``` Errors in machine output modes are also JSON on stdout, with a nonzero exit status. Check the exit status before treating output as a successful response. ## Credentials | Variable | Purpose | | - | - | | `INTERFERE_WORKSPACE` | Default workspace slug. | | `INTERFERE_ACCESS_TOKEN` | User access token for noninteractive requests. | | `INTERFERE_SECRET_KEY` | Secret key for API operations that accept key authentication. Its scopes determine access. | | `INTERFERE_PUBLIC_KEY` | Public app key for ingestion operations. | Credentials are specific to the operations that accept them. A release-only key cannot manage workspace resources. See [API keys](/docs/integrations/api-keys) for scope and expiry behavior. The SDK build plugins read `INTERFERE_API_KEY`. The CLI reads `INTERFERE_SECRET_KEY`; use the variable expected by the tool you are running. ## Build automation The [Next.js](/docs/sdk/next-js) and [Vite](/docs/sdk/vite) plugins register releases and upload source maps during builds, including builds deployed to AWS, Fly, Render, or your own servers. For other build systems, follow the [custom release workflow](/docs/sdk/releases#custom-build-pipelines). Inspect the CLI's generated command help and schema for the required request fields. Do not automatically repeat a write after a timeout. Check whether the operation succeeded, and preserve its idempotency key when retrying an operation that supports one. # Cloudflare Workers Source: https://interfere.com/docs/integrations/cloudflare-workers Connect Worker deployments to their source commits. ![Cloudflare Workers deployment details referenced in an Interfere investigation.](https://mintcdn.com/interfere/8oAQNtip9bC_MeB5/images/connections/cloudflare-workers-1-light.webp?fit=max\&auto=format\&n=8oAQNtip9bC_MeB5\&q=85\&s=871dbfe3eab81777093b328467382786) Connect Cloudflare to track Worker versions and associate deployments with releases. ## Connect Cloudflare Open [Cloudflare settings](https://interfere.com/~/*/settings/connections/cloudflare) and authorize the connection. On the **Destinations** tab, find the Worker and choose **Link to App** to link it to its Interfere app. If your account can access multiple Cloudflare accounts, the integration connects the first accessible account. Check that the expected Workers appear before linking an app. ## Tag deployments with the commit Pass the source commit SHA as the deployment tag: ```bash theme={null} wrangler deploy --tag "$GITHUB_SHA" ``` GitHub Actions provides `GITHUB_SHA`. In another CI system, supply its commit SHA instead. Use a raw commit SHA of 7 to 40 hexadecimal characters. Tags such as `release-abc123` and `v1.2.3` do not identify a source commit for Interfere. ## Verify the release After deploying, open the app's releases and check that the Worker version links to the expected commit. Untagged deployments still appear as releases, but have no source commit link. The deployment connection tracks versions. Install an SDK in your app separately to capture application telemetry. ## Permissions and reconnection Interfere requests `memberships.read` to list accessible accounts and `workers-scripts.read` to list Workers. `offline_access` keeps the connection authenticated between visits. If access expires or is revoked, reconnect in [Connections](https://interfere.com/~/*/settings/connections). # GitHub Source: https://interfere.com/docs/integrations/github Connect source code to investigations and releases. ![A GitHub pull request referenced in an Interfere investigation.](https://mintcdn.com/interfere/8oAQNtip9bC_MeB5/images/connections/github-1-light.webp?fit=max\&auto=format\&n=8oAQNtip9bC_MeB5\&q=85\&s=a49139b7528b5c39854ad09c72428a54) Connect GitHub so Interfere can reference the files and commit behind an error. The integration supports GitHub.com, Enterprise Cloud, and Enterprise Server. ## Connect repositories Open [GitHub settings](https://interfere.com/~/*/settings/connections/github), install the Interfere GitHub App, and choose the repositories it can read. Open the corresponding [app](/docs/product/apps) and use the **Source** row in its sidebar to select the repository. For a monorepo, select the directory that belongs to that app. After deploying with the SDK build plugin, check the app's release for the expected commit. Investigations can then use that source when explaining errors. ## Repository access The GitHub App requests read access to repository contents and metadata. It uses that access to detect apps and frameworks, read source files, and associate problems with commits and releases. The connection cannot push code or open pull requests. To include another repository, update the GitHub App's repository access in GitHub. ## GitHub Enterprise Cloud For a `*.ghe.com` host, follow [GitHub Enterprise Cloud](/docs/integrations/github-enterprise-cloud). Enterprises hosted on `github.com` use the GitHub connection described above. ## GitHub Enterprise Server For a self-hosted instance, follow [GitHub Enterprise Server](/docs/integrations/github-enterprise-server). ## A repository is missing Check that the GitHub App installation includes the repository and belongs to the expected account or enterprise host. Then review the **Source** row on the app. # GitHub Enterprise Cloud Source: https://interfere.com/docs/integrations/github-enterprise-cloud Connect your enterprise GitHub host to investigations and releases. ![A GitHub pull request referenced in an Interfere investigation.](https://mintcdn.com/interfere/8oAQNtip9bC_MeB5/images/connections/github-1-light.webp?fit=max\&auto=format\&n=8oAQNtip9bC_MeB5\&q=85\&s=a49139b7528b5c39854ad09c72428a54) Use this connection for a GitHub Enterprise Cloud organization on a `*.ghe.com` host. If your enterprise uses `github.com`, use the [GitHub connection](/docs/integrations/github). ## Connect your enterprise Open [Enterprise Cloud settings](https://interfere.com/~/*/settings/connections/ghe_cloud) and enter your host, such as `acme.ghe.com`. Complete app registration, then install the dedicated GitHub App and select the repositories it can read. Link each repository to its [app](/docs/product/apps) with the **Source** row in the app's sidebar. For a monorepo, choose the app's subdirectory. ## Check release context After deploying with the SDK build plugin, open the app's [Releases](/docs/product/apps/releases) and check the commit. See [SDK release configuration](/docs/sdk/releases) for build setup. # GitHub Enterprise Server Source: https://interfere.com/docs/integrations/github-enterprise-server Connect your enterprise GitHub host to investigations and releases. ![A GitHub pull request referenced in an Interfere investigation.](https://mintcdn.com/interfere/8oAQNtip9bC_MeB5/images/connections/github-1-light.webp?fit=max\&auto=format\&n=8oAQNtip9bC_MeB5\&q=85\&s=a49139b7528b5c39854ad09c72428a54) Connect your self-hosted GitHub Enterprise Server to give investigations access to source code and release context. ## Register the connection A site administrator registers Interfere on your instance once, then installs it as a GitHub App. Open [Enterprise Server settings](https://interfere.com/~/*/settings/integrations/ghe_server) and enter your server host. Each server needs its own app registration. The server's API must be reachable by Interfere at `https://your-host/api/v3`. If your server is network-restricted, arrange access before completing the connection. See [Infrastructure](/docs/product/infrastructure) for published network information and its scope. ## Connect repositories Install the app and choose the repositories it can read. Link each repository to the corresponding [Interfere app](/docs/product/apps) with the **Source** row in the app's sidebar, selecting the subdirectory for a monorepo. After deploying with the SDK build plugin, check the app's [release](/docs/product/apps/releases) for the expected commit. # Linear Source: https://interfere.com/docs/integrations/linear Connect Interfere problems to your team's Linear workflow. Work with our team to connect Interfere problems to Linear in a way that fits your triage process, whether you want to create issues, sync updates, or add context to existing work. ## Choose what to sync Choose the workflow that fits your team: * One-way sync sends Interfere problems to Linear. * Two-way sync coordinates updates and triage across both tools. * Issue enrichment adds Interfere context to issues already in Linear. ## Arrange setup To set up or adjust the connection, contact [support@interfere.com](mailto:support@interfere.com) with the teams and issue statuses you use in Linear, how you triage issues, and what you want to sync. # MCP Source: https://interfere.com/docs/integrations/mcp Connect coding agents to your Interfere workspace. The Interfere MCP server gives your agent access to problems, sessions, releases, and workspace operations. It uses your Interfere account and existing workspace permissions. | Connection | URL | | - | - | | Read and write | `https://mcp.interfere.com/mcp` | | Read-only | `https://mcp.interfere.com/mcp/readonly` | Both endpoints use Streamable HTTP and OAuth. Choose read-only when the agent only needs to investigate. The read-only endpoint rejects changes to workspace data. ## Connect with a plugin The [Claude Code and Cursor plugins](/docs/integrations/plugins) configure the server and include an investigation skill. Use a plugin if you want both the connection and guidance for investigating problems. ## Connect directly > [tab] Claude Code > > Add the server from your terminal: > > ```bash theme={null} > claude mcp add --transport http interfere https://mcp.interfere.com/mcp > ``` > > Open `/mcp` in Claude Code and complete the Interfere sign-in flow. For a read-only connection, use the `/mcp/readonly` URL instead. See [Claude Code's MCP settings](https://code.claude.com/docs/en/mcp) for configuration scopes. > [tab] Cursor > > Add the server to your project's `.cursor/mcp.json`, or merge it into your existing configuration: > > ```json theme={null} > { > "mcpServers": { > "interfere": { > "url": "https://mcp.interfere.com/mcp" > } > } > } > ``` > > Open Cursor's MCP settings and complete the sign-in flow. For a read-only connection, use the `/mcp/readonly` URL. See [Cursor's MCP documentation](https://cursor.com/docs/mcp) for global configuration. > [tab] Other clients > > Add a remote HTTP MCP server using one of the URLs above. Your client must support OAuth for remote MCP servers. Complete the connection flow in the client, then choose the workspace you want to use. Sign in through the client. You do not need to put a token in the configuration file. ## Ask about your workspace Give the agent a problem link, app, or time range: * "Investigate errors from the last hour in the checkout app." * "Show the sessions affected by this problem and the release where it began." * "Compare the investigation's root cause with the supporting traces." ## Tool reference The server exposes `search` to discover operations and their schemas, and `execute` to run them. Custom clients should check each response's HTTP status before using its body. The write-enabled endpoint can change data within your permissions. Ask for a specific change when you want one. An investigation does not require changing problem status or workspace settings. ## Troubleshooting | Result | Next step | | - | - | | Sign-in fails or a request returns `401` | Reconnect through your client's MCP settings. | | A request returns `403` | Check workspace membership, permissions, and [network access rules](/docs/product/security#network-access). | | A write is rejected on the read-only endpoint | Use the write-enabled connection for an intended change. | | A request or response is too large | Narrow the time range or paginate. Requests are limited to 1 MiB and responses to 8 MiB. | | A write times out | Read the resource's current state before deciding whether to retry. | The **Add MCP** option in this documentation site's contextual menu connects a documentation search server. Use the URLs on this page to connect to your product workspace. # Connections Source: https://interfere.com/docs/integrations/overview Connect source code, deployments, notifications, and issue tracking to Interfere. Open **Settings → Connections** to manage the services connected to your workspace. ## Source code * [GitHub](/docs/integrations/github) for repositories on `github.com`. * [GitHub Enterprise Cloud](/docs/integrations/github-enterprise-cloud) for enterprise hosts on `*.ghe.com`. * [GitHub Enterprise Server](/docs/integrations/github-enterprise-server) for self-hosted instances. ## Deployments Connect [Vercel](/docs/integrations/vercel) or [Cloudflare Workers](/docs/integrations/cloudflare-workers) to associate deployments with apps and releases. ## Team workflows Use [Slack](/docs/integrations/slack) for channel updates and personal notifications. Connect [Linear](/docs/integrations/linear) to sync problems or add investigation context to issues. ## Developer tools Use the [MCP](/docs/integrations/mcp), [CLI](/docs/integrations/cli), [API](/docs/integrations/api-keys), or [Terraform provider](/docs/integrations/terraform) to work with Interfere from your own tools. [AI agent plugins](/docs/integrations/plugins) combine the MCP connection with investigation guidance. ## Coming soon AWS, Render, and Bitbucket appear in the product catalog as coming soon. They are not available to connect yet. # AI Agents Source: https://interfere.com/docs/integrations/plugins Install Interfere's MCP connection and investigation skill in your editor. The Interfere plugin connects your editor to the [MCP](/docs/integrations/mcp) and adds a skill for investigating production problems. You need an Interfere account with access to the workspace you want to inspect. ## Claude Code Install from [Interfere's Claude plugin marketplace](https://github.com/interfere-inc/plugins/blob/main/.claude-plugin/marketplace.json) by running these commands inside Claude Code: ```text theme={null} /plugin marketplace add interfere-inc/plugins /plugin install interfere@interfere-plugin-marketplace ``` Open `/mcp`, connect your Interfere account, and select your workspace. ## Cursor Install the plugin from the [Interfere plugin repository](https://github.com/interfere-inc/plugins): ```bash theme={null} git clone https://github.com/interfere-inc/plugins.git interfere-plugins mkdir -p ~/.cursor/plugins/local cp -R interfere-plugins/plugins/interfere ~/.cursor/plugins/local/interfere ``` Reload Cursor and open **Customize** to connect the Interfere MCP server. Managed installations may require your administrator to allow local plugin imports. ## Investigate Give the agent a problem link or a time range and ask it to investigate. For example: ```text theme={null} Investigate recent checkout errors in my Interfere workspace. Identify the release, affected sessions, and evidence supporting the likely cause. ``` Include your workspace and app if you have more than one. Ask for links to the problem, affected sessions, and supporting traces so you can inspect the evidence in Interfere. ## Connection permissions The plugin uses `https://mcp.interfere.com/mcp`. This connection permits reads and writes within your existing permissions. For enforced read-only access, configure the [read-only MCP endpoint](/docs/integrations/mcp) directly and disable the plugin's write-enabled connection in your client. Reconnect through your client if authentication expires, or check your workspace permissions if access is denied. Keep passwords and tokens out of chat and plugin files. # Slack Source: https://interfere.com/docs/integrations/slack Send workspace updates to channels and personal notifications to teammates. ![An Interfere mention notification in Slack with a link to the problem and a Reply button.](https://mintcdn.com/interfere/8oAQNtip9bC_MeB5/images/connections/slack-1-light.webp?fit=max\&auto=format\&n=8oAQNtip9bC_MeB5\&q=85\&s=7137d99e7d2e29f0f30e12a41bd1a0bd) Connect Slack to send problem updates to a team channel and mentions or assignments to the people involved. ## Connect a workspace Open [Slack settings](https://interfere.com/~/*/settings/integrations/slack) and authorize Interfere in the Slack workspace you want to use. ## Route notifications to channels Choose a channel for each category: | Category | Updates | | - | - | | Problems | New problems, regressions, and recoveries | | Team activity | New apps, connection installs, and member join events | | Collaboration | Mentions, assignments, reactions, and subscription updates | For example, send problems to your engineering alerts channel and team activity to a separate workspace channel. ## Receive personal messages Connect your Slack identity so Interfere can send mentions and assignments to you as direct messages. Choose personal delivery preferences in [Notifications](/docs/product/notifications). ## Permissions The connection requests permission to send messages, open direct messages, list channels, and match teammates by Slack identity and email. It also uses assistant and canvas permissions for its Slack views and problem previews. ## Reconnect If the app is removed or access is revoked, reconnect from Slack settings. Existing channel routing is restored when you reconnect. Check that those channels still exist and are the destinations you want to use. # Terraform Source: https://interfere.com/docs/integrations/terraform Manage workspace settings, apps, and private API keys. The Interfere Terraform provider manages existing workspace settings, apps, and private API keys. The provider and API call an app a surface, so resources, attributes, and scopes use that name. ## Configure the provider Add the provider to your Terraform configuration: ```hcl theme={null} terraform { required_providers { interfere = { source = "interfere-inc/interfere" } } } provider "interfere" {} ``` Follow [Create a workspace key](/docs/integrations/api-keys#create-a-workspace-key) to sign in with the CLI and create your first Terraform credential. Configure your shell or CI secret manager to supply the returned secret as `INTERFERE_TOKEN`. App management requires these scopes: * `org:surfaces:read` * `org:surfaces:write` * `org:surfaces:delete` Use a workspace API key for unattended runs. A release-only app key cannot manage workspace resources. ## Manage workspace settings Use `interfere_workspace` to manage an existing workspace's name and slug: ```hcl theme={null} resource "interfere_workspace" "team" { workspace_slug = "acme" name = "Acme engineering" } ``` This resource adopts an existing workspace. It does not create one. Removing the resource from Terraform only removes it from state; it does not delete the workspace. Grant the provider credential `org:workspace_basics:read` and `org:workspace_basics:write` for this resource. ```bash theme={null} terraform import interfere_workspace.team acme ``` ## Create an app ```hcl theme={null} variable "workspace_slug" { type = string } variable "creation_id" { type = string } resource "interfere_surface" "app" { workspace_slug = var.workspace_slug idempotency_key = var.creation_id name = "Storefront" type = "react" } output "surface_slug" { value = interfere_surface.app.slug } ``` Supply values in `terraform.tfvars`: ```hcl terraform.tfvars theme={null} workspace_slug = "acme" creation_id = "9e3c0d0e-3bf7-48ae-9271-6ea58e7b970d" ``` Replace `acme` with your workspace slug and generate a nonzero UUID for this app. Keep that UUID stable across plans and retries; do not use `uuid()` to generate a different value on every run. ```bash theme={null} terraform init terraform plan terraform apply ``` The resource returns `id` and `slug`. App creation also issues default credentials. Manage SDK and build credentials on the app in Interfere. They are not stored in Terraform state. ## Update or replace an app | Field | Behavior | | - | - | | `name` | Updates the existing app. Use 1 to 48 characters. | | `type` | Requires replacement. | | `workspace_slug` | Requires replacement. | | `idempotency_key` | Identifies the creation attempt. Use a new UUID for a replacement or new creation. | Review a replacement plan before applying it. Deleting a resource from configuration causes Terraform to request deletion of the managed app. Supported framework values are `elysia`, `nest`, `nextjs`, `python`, and `react`. ## Import an existing app Add a matching resource block, then import with the workspace and app slugs: ```bash theme={null} terraform import interfere_surface.app acme/storefront ``` The creation UUID cannot be recovered during import. Supply a new UUID in your configuration. The next apply records it without recreating the imported app. ## Manage private API keys Use `interfere_private_key` for a workspace automation key or an app build key. Set `surface_slug` to scope a key to an app; omit it for a workspace key. ```hcl theme={null} resource "interfere_private_key" "releases" { workspace_slug = "acme" surface_slug = interfere_surface.app.slug idempotency_key = "c8a2c920-ff67-4ed0-a344-e3172279ae9d" name = "Release uploads" scopes = ["release:write"] seconds_until_expiration = 2592000 } ``` For workspace keys, the provider credential needs `org:workspace_auth:read` and `org:workspace_auth:write`. For app keys, it needs `org:surfaces:read` and `org:surfaces:write`. The credential must also be allowed to grant the requested scopes. The example expires after 30 days. Omit `seconds_until_expiration` or set it to `null` for no expiry. Changing grants or lifetime replaces the key, so choose a fresh creation UUID for the replacement. The resource's `secret` output is sensitive and **is stored in Terraform state**. Use a state backend with access controls appropriate for credentials. Import restores metadata only; it cannot recover the secret. ```bash theme={null} terraform import interfere_private_key.releases acme/KEY_ID ``` ## Recover from an uncertain request The provider does not automatically retry API requests. After an uncertain create response, keep the original creation UUID and configuration when retrying. If Interfere explicitly reports that an app is deleted, the provider removes it from state. An empty response or an HTTP error preserves state and reports an error, because missing permissions can also prevent a read. Check credentials and workspace access before changing state manually. # Vercel Source: https://interfere.com/docs/integrations/vercel Link deployments and forward runtime traces and logs. ![Vercel deployment details referenced in an Interfere investigation.](https://mintcdn.com/interfere/8oAQNtip9bC_MeB5/images/connections/vercel-1-light.webp?fit=max\&auto=format\&n=8oAQNtip9bC_MeB5\&q=85\&s=e65128029eef0089ace6ace5e059d13e) Connect Vercel to associate deployments with Interfere releases. Interfere also manages trace and log drains that send server traces and logs. ## Connect Vercel Open [Vercel settings](https://interfere.com/~/*/settings/connections/vercel) and complete Vercel's authorization flow. Choose the account and projects to include. A connection belongs to one Vercel account or team; add another connection for another account. ## Verify a deployment Deploy a code change and open the app's releases. Check that the deployment points to the expected commit. Interfere follows build states including building, ready, errored, and canceled. Redeploying the same commit uses the same release identity. The commit identifies the code version. ## Trace and log drains Interfere creates and manages trace and log drains in Vercel automatically; there is no drain setting to configure. The SDK switches to drain mode automatically when a Vercel trace drain is enabled for the app, and skips the matching SDK exporter. An app without a drain keeps the SDK exporter, and on Vercel each direct export is capped at 2 seconds. See [OpenTelemetry](/docs/sdk/opentelemetry#server-telemetry). ## Permissions Interfere reads the projects you authorize and receives deployment events. When Interfere enables a drain, it creates the corresponding drain configuration in Vercel. # TypeScript Source: https://interfere.com/docs/platform-sdk/typescript Call the public Interfere API from JavaScript or TypeScript. `@interfere/javascript` is the typed client for the Interfere API. Use it to register releases, upload source maps, and build custom API workflows. To capture errors and sessions from an app, install its [framework SDK](/docs/quickstart#install-the-sdk). ## Install ```bash npm theme={null} npm install @interfere/javascript ``` ```bash pnpm theme={null} pnpm add @interfere/javascript ``` ```bash Yarn theme={null} yarn add @interfere/javascript ``` ```bash Bun theme={null} bun add @interfere/javascript ``` The package supports ESM and CommonJS and includes TypeScript declarations. Use a runtime with native Fetch and FormData, such as Node.js 18 or later. ## Make a request Set `INTERFERE_API_KEY` to an app secret key with `release:write`, then run this from your server or build environment: ```ts theme={null} import { InterfereClient } from "@interfere/javascript"; const token = process.env.INTERFERE_API_KEY; if (!token) throw new Error("Set INTERFERE_API_KEY"); const client = new InterfereClient({ baseUrl: "https://api.interfere.com", apiKey: { token }, }); const config = await client.releases.getReleasesConfig(); console.log(config); ``` The response identifies the release configuration associated with the credential. Keep secret keys out of browser bundles. ## Authentication options Use `apiKey: { token }` for bearer authentication or `apiKeyHeader: { apiKey }` to send a secret key through `x-api-key`. For an operation accepting a public ingestion key, use `publicKeyHeader: { apiKey }`. Check the operation's authentication requirements in the API reference. See [API keys](/docs/integrations/api-keys) for the different credential types. ## Register releases and upload source maps Next.js and Vite build plugins handle releases automatically. For another build system, follow [Releases and source maps](/docs/sdk/releases#custom-build-pipelines). ## Handle errors API failures throw `InterfereError`. Inspect the status before deciding whether to retry: ```ts theme={null} import { InterfereError } from "@interfere/javascript"; try { await client.releases.getReleasesConfig(); } catch (error) { if (error instanceof InterfereError) { console.error("Interfere request failed", error.statusCode); } throw error; } ``` ## Timeouts and retries Set `timeoutInSeconds` and `maxRetries` on the client or an individual request. Pass `abortSignal` in request options to cancel it. Eligible requests retry twice by default for HTTP `408`, `429`, and `5xx` responses and respect `Retry-After`. Network failures and other HTTP statuses are not retried. For a write whose result is uncertain, inspect the resource before trying again. Set `maxRetries: 0` when your workflow needs to make that decision itself. # Activity Source: https://interfere.com/docs/product/activity Follow new problems, regressions, and recoveries across your workspace. Open **Activity** for a chronological view of new problems, regressions, recoveries, apps coming online, and teammates joining. Select a problem event to open its investigation. For example, after deploying a fix, check for a recovery event and open the problem to review subsequent occurrences. Use the Inbox when you need to filter or assign several problems. Administrative changes, such as a role or credential change, appear in the [Audit log](/docs/product/audit-log). Choose how updates reach you in [Notifications](/docs/product/notifications). # Apps Source: https://interfere.com/docs/product/apps Connect an app, check incoming events, and review its releases. An app is something you monitor, such as a web frontend or backend service. Give each separately deployed frontend or service its own app in Interfere. The API and Terraform call an app a surface. ## Create an app Follow [Create an app](/docs/product/apps/create) to name your app, choose its framework, and connect the SDK. ## Check incoming events Open the app in [Apps](https://interfere.com/~/*/apps) and inspect its event chart on the **Overview** tab. New apps wait for their first event; after capture starts, the chart shows event volume over time. ![App overview with an environment selector and event-volume chart.](https://mintcdn.com/interfere/v8MNz-ve7d-NlcAv/images/surface.png?fit=max\&auto=format\&n=v8MNz-ve7d-NlcAv\&q=85\&s=bd7f23bb32110c968b8fd4eefe2b5943) The event chart shows incoming telemetry for the selected environment. ## Keys The public key identifies the app receiving telemetry and can ship in browser code. The secret API key registers releases and uploads source maps from your build pipeline. Keep it in your server or CI environment. Open the app's key settings to manage these credentials. See [API keys](/docs/integrations/api-keys) for workspace automation keys. ## Environments and releases An environment labels traffic from a deployment, such as `production` or `staging`. Use environment filters when reviewing problems so you can focus on the deployment you are investigating. A release identifies a version of your code. Open the app's **Releases** tab to review its environments and deployment times. See [Releases](/docs/product/apps/releases) for how releases and source maps help you investigate a problem. Use [Terraform](/docs/integrations/terraform) to manage app names and framework types in infrastructure configuration. # Create an app Source: https://interfere.com/docs/product/apps/create Connect a separately deployed app to your workspace. An app represents something you monitor. Give separately deployed frontends and backend services their own apps. Open [New app](https://interfere.com/~/*/apps/create), enter a name, and choose the framework. Copy the public key for SDK ingestion and the secret API key for your build environment. Follow the matching [SDK installation guide](/docs/quickstart#install-the-sdk), then link the app to its repository and deployment project. # Releases Source: https://interfere.com/docs/product/apps/releases Review the code versions deployed to an app and connect failures to a release. A release identifies a version of an app's code. Use releases to check which version was deployed when a problem appeared, and to follow what happened after a fix. ## Review an app's releases Open an app in [Apps](https://interfere.com/~/*/apps), then select **Releases**. The list shows the release, environment, creation time, deployment time when available, and links to its source or deployment provider. Search the list or filter by environment to narrow it to the deployment you are investigating. If no releases match, clear the search and filters before checking whether your build has registered a release. ## Understand environments and deployments An environment distinguishes traffic such as production and staging. A release identifies the code version; a deployment records when that code runs in an environment. Deploying the same commit again does not create a new code version. When checking a reported failure, compare its time and environment with the release's deployment time. A nearby deployment is context for the investigation, not proof that it caused the failure. ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: Code version and deployment accDescr: A commit identifies a release. The same release can be deployed to staging and production. Commit["Code commit"] --> Release["Release"] Release --> Staging["Staging deployment"] Release --> Production["Production deployment"] ``` ## Read original code in a stack trace Source maps connect compiled JavaScript in a stack trace to the original source files and lines. With the matching maps, a failure in a bundled file can point back to the TypeScript or application code your team maintains. Open a problem from [Inbox](/docs/product/inbox) and inspect its [trace and stack frames](/docs/product/problems#3-open-the-failing-trace). If frames still show compiled code, ask the person maintaining the build to check the source-map upload for that release. ## Set up release reporting Release registration and source-map uploads are configured in your app's build. The [SDK release and source-map guide](/docs/sdk/releases) covers framework plugins, upload failures, and custom build pipelines. # Audit log Source: https://interfere.com/docs/product/audit-log Find who changed a workspace setting or resource. Workspace owners and administrators can review administrative changes in [Audit log](https://interfere.com/~/*/settings/audit-log). ## Find a change Filter by event type, user, or time window. For example, if workspace access changed yesterday, narrow the time window and look for the corresponding security setting change. Open an event to inspect its author, affected resource, source, and metadata. The source distinguishes dashboard actions from API actions. Metadata describes the specific change. Copy the event ID when asking support to investigate an unexpected change. For problem updates and team activity, use [workspace activity](/docs/product/inbox#workspace-activity). # Companies Source: https://interfere.com/docs/product/companies Review the users and problems associated with a customer account. **Companies** groups your app's users by customer account. Open a company to review its properties, associated users, and active problems. ## Investigate an account report Find the account in **Companies**, then open **Problems** to see issues affecting its users. Select a problem to read the investigation and check the evidence. Open **Users** to inspect an individual user's activity and sessions. This helps narrow an account-wide report to the people and actions involved. Interfere associates identified users with companies using their work email domain. Personal email providers do not create a company association. Include the user's email when [identifying users](/docs/sdk/identity). A company represents a customer of your app; your [workspace](/docs/product/settings) contains the team investigating those customers' problems. # Trust Center Source: https://interfere.com/docs/product/compliance # Data residency Source: https://interfere.com/docs/product/data-residency Understand where workspace data can be stored and processed. Data residency determines whether your workspace's data is restricted to a geographic region. Check **Data residency** in [Workspace settings](https://interfere.com/~/*/settings/workspace) to see your workspace's policy. > [!NOTE] > > Regional residency is not yet available. All workspaces currently use Unrestricted; Enterprise > alone does not enable a regional guarantee. ## Unrestricted All workspaces currently use **Unrestricted** residency, which lets Interfere store and process data in different regions as needed. Those locations may change, so neither Pro nor Enterprise currently guarantees that data stays in the United States or European Union. ## Regional residency Enterprise US and EU region locking is planned for Enterprise workspaces, but you cannot select a region during setup or in workspace settings yet. If your team needs regional residency, contact [support@interfere.com](mailto:support@interfere.com) with the region and data you need covered so we can confirm availability and scope before you send data that must stay there. ## Storage and processing Residency requirements can cover storage, processing, or both. In Interfere, that includes telemetry, session replay, source maps, and investigation data, including AI processing; none currently has a geographic restriction under the unrestricted policy. The region in an API key determines request routing, not residency. Keep using the keys and SDK configuration provided for your workspace, as changing a key prefix won't move data or enable region locking. ## Related settings [Network access](/docs/product/network-access) controls which networks can reach your workspace. It does not control where Interfere stores or processes data. For security documentation and reports, see [Trust Center](/docs/product/compliance). # Inbox Source: https://interfere.com/docs/product/inbox Triage problems by impact, environment, and owner. The [Inbox](https://interfere.com/~/*) groups related occurrences into problems. Use it to decide what needs attention and who should work on it. ![Two problems grouped under Investigating in the Inbox list.](https://mintcdn.com/interfere/mSSNkiftx7tEdU0l/images/inbox-list.png?fit=max\&auto=format\&n=mSSNkiftx7tEdU0l\&q=85\&s=aba08e88bc8c0d94661a1320b0021f66) Review related occurrences as problems, then assign and prioritize the work. ## Find the problems to work on Start with an environment filter, such as **production**, then narrow by app, status, priority, or assignee. Use the problem ID filter to return to specific problems. For example, filter to your checkout app and production environment, then sort by affected users to review the problems with the widest impact first. Open **Display** to switch between board and list views and sort by priority, affected users, first detected, or last detected. You can also show or hide failed investigations. Press Alt Shift F to clear filters. On macOS, use Option for Alt. ## Assign and prioritize Select a problem and press A to assign it or P to set its priority. Select several problems to apply the same change together. | Shortcut | Action | | - | - | | Arrow keys | Move through problems | | Shift + arrow keys | Extend or reduce the selection | | ⌘ A or Ctrl A | Select all filtered problems | | Escape | Clear the selection | | A | Assign the selection | | P | Set priority | | S | Change your subscription | These shortcuts apply outside text fields. ## Open an investigation Open a problem to read its explanation and inspect the [supporting evidence](/docs/product/problems). A **Failed** investigation needs review; it does not mean the issue is fixed. Subscribe with S to follow comments and status changes. Choose how you receive those updates in [Notifications](/docs/product/notifications). ## Workspace activity Open [Activity](/docs/product/activity) to follow new problems, regressions, recoveries, and other workspace events. # Infrastructure Source: https://interfere.com/docs/product/infrastructure Find Interfere's ASN, public IP ranges, and machine-readable network information. Use this information when reviewing traffic from Interfere or configuring your network's firewall rules. To restrict who can access your Interfere workspace, see [Network access](/docs/product/network-access). ## Autonomous system Interfere operates [AS402940](https://radar.cloudflare.com/as402940), the autonomous system number that identifies our network in Internet routing. Use an ASN to identify the operator, or an IP address or CIDR range to identify specific addresses within its network. ## Public IP addresses Interfere publishes its owned address space in the [IP address feed](https://interfere.com/ips.json). | Address family | CIDR range | | - | - | | IPv4 | `198.183.192.0/23` | | IPv4 | `76.164.206.0/23` | | IPv6 | `2602:f30e::/40` | ## JSON feed Fetch [interfere.com/ips.json](https://interfere.com/ips.json) for the current ranges, returned as a `prefixes` array with an `ipv4Prefix` or `ipv6Prefix` in CIDR notation for each entry. Use `/ips.json` for new integrations; the older [interfere.com/ip.json](https://interfere.com/ip.json) URL redirects there. ## Automated requests [interfere.com/bot](https://interfere.com/bot) publishes Interfere's automated monitoring and investigation agent identity, including its user agent and links to the IP feed and request-signature directory. # Members and roles Source: https://interfere.com/docs/product/members Invite teammates and manage their workspace access. Manage workspace membership in [Team settings](https://interfere.com/~/*/settings/team). Owners and administrators can invite teammates and manage access within their role's permissions. ## Invite a teammate Select **Invite**, enter the teammate's email, and choose their role. Review outstanding invitations in Team settings. To let colleagues join through your company email domain, configure [workspace domains](/docs/product/settings#workspace-domains). ## Choose a role | Role | Access | | - | - | | Member | Product features, including investigating problems | | Admin | Product features, workspace settings, member management, and billing | | Owner | Administrator access, plus workspace ownership transfer and deletion | A member cannot manage workspace settings, membership, or billing. Administrators cannot change an owner's role. Role changes are limited by the acting member's own role. Review membership changes in the [Audit log](/docs/product/audit-log). For sign-in requirements and directory provisioning, see [Security](/docs/product/security). # Network access Source: https://interfere.com/docs/product/network-access Restrict workspace access to approved IP addresses, ranges, or network operators. ## Allow trusted networks Enterprise Enterprise workspaces can restrict dashboard and API access in [Security settings](https://interfere.com/~/*/settings/security). Changing rules requires workspace authentication management permission. Select **Add a network**, enter an IPv4 or IPv6 address, CIDR range, or ASN, and add a description. You can configure up to 100 rules. With no rules, authenticated members can access the workspace from any network. Once rules exist, connections must match an allowed network. If a connection is blocked, connect through an allowed company network or VPN. Ask an administrator to review the rules if your expected network is missing. Members still need workspace permissions after passing the network check. ## How rules affect access ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: Network allowlist decision accDescr: Without rules there is no network restriction. With rules, a request must match an allowed network. Member authentication and permissions still apply. Request["Incoming request"] Allowed["No rules or
a matching rule?
"] Auth["Check member access"] Block["Access blocked"] Request --> Allowed Allowed -->|Yes| Auth Allowed -->|No| Block ``` > [!WARNING] > > If you don't manage the autonomous system (AS) associated with your IP addresses, use a specific > IP address or CIDR range where possible. Allowing the entire ASN can also allow other customers of > the same network operator, such as other users of a VPN service. # Notifications Source: https://interfere.com/docs/product/notifications Choose how you receive assignments, mentions, and problem updates. Open [Alerts](https://interfere.com/~/*/settings/alerts) to choose which updates reach you through in-app notifications, email, and Slack. ## Personal notifications Set each delivery channel for problem assignments, mentions, comments, team membership requests, and status changes. Comment and status notifications apply to problems you subscribe to. To follow a problem, open it and press S. Press S again to change your subscription. ## Slack notifications Connect [Slack](/docs/integrations/slack) to deliver workspace updates to channels. Channel routing is configured by category: problems, team activity, and collaboration. Link your Slack identity to receive personal mentions and assignments as direct messages. Your personal delivery preferences and the workspace's channel routing control different destinations. ## Missing an update Check that the relevant notification type and delivery channel are enabled. For comments and status changes, confirm that you are subscribed to the problem. For Slack, check the connection and the destination configured for that category. # Observability Source: https://interfere.com/docs/product/observability Review traffic, errors, and request latency across your apps. Open [Observability](https://interfere.com/~/*/observability) for a workspace-wide view of incoming telemetry. Use it to spot changes in traffic or request performance before narrowing your investigation to an app or problem. ## Choose a time window Use the time control above the charts to select the period you want to review. Compare the same window across charts when investigating a spike or a drop in traffic. ## Read the charts Events, unique sessions, unique devices, and error occurrences are broken down by app. The failed-request and latency charts show request performance across the workspace. A device count is not a count of identified users. One person can use more than one device. Open [Users](/docs/product/users) when you need a specific customer's sessions and problems. ## Inspect endpoints The **Endpoints** section summarizes request activity by endpoint. Select **View all** to open the endpoint list for the selected time window. For a particular app, open it in [Apps](/docs/product/apps). To read an investigation and the evidence behind a failure, open the problem in [Inbox](/docs/product/inbox). # How Interfere works Source: https://interfere.com/docs/product/overview Understand what a problem contains and how your team investigates it. Interfere collects errors, traces, logs, and session replays from your apps and uses them to investigate problems. A problem brings the investigation and its supporting evidence into one place, alongside the users, companies, and releases involved. ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: From application evidence to a problem accDescr: Application errors, traces, logs, and sessions provide evidence for findings and investigations. Your team reviews the problem and follows recovery. App["Your app"] --> Evidence["Errors, traces, logs and sessions"] Evidence --> Investigation["Findings and investigation"] Investigation --> Problem["Problem in Inbox"] Problem --> Team["Review, fix and follow recovery"] ``` ## From events to a problem An error describes one failure. A trace shows the work around it, and a session replay can show what someone did before the failure. Interfere groups related occurrences into findings and uses that evidence to investigate the underlying problem. For example, several customers might hit the same exception while choosing store pickup at checkout. Those occurrences can belong to one problem. The investigation can connect the exception to a release, inspect the affected code through your GitHub integration, and explain why that checkout path fails. The available evidence determines how much the investigation can establish. Read the explanation alongside its linked traces and code before deciding on a fix. ## What you see in a problem * **Timeline** contains the investigation, updates, and your team's discussion. * **Findings** contains the recorded evidence. Open an occurrence to inspect its trace and stack frames. * **Sessions** connects the problem to affected sessions and their replays. Start with the [Inbox](/docs/product/inbox) to find problems that need attention. The [investigation walkthrough](/docs/product/problems) follows a checkout failure through its evidence and recovery. ## Understand the impact [Users](/docs/product/users) are the people using your monitored app. [Companies](/docs/product/companies) represent customer accounts and group their users. Identifying users in your app gives your team a way to connect a reported failure to the customer's sessions and problems. An **app** is something you monitor, such as a storefront or its backend API. Each app has its own keys and releases. Your **workspace** holds your team's apps, integrations, members, and settings. Use environments to distinguish staging from production within an app. ## Follow the fix Assign a problem to a teammate, set its priority, and add context in the timeline. After deploying a fix, inspect new occurrences and the releases they came from. Interfere follows recovery and resolution as it observes events; a resolved problem can reopen as a regression. > [card] [Connect your first app](/docs/quickstart) > > Set up an app, install its SDK, and verify incoming events. > [card] [Investigate a problem](/docs/product/problems) > > Read the investigation and check the evidence behind it. # Investigations Source: https://interfere.com/docs/product/problems Follow a problem from the first report to the evidence and recovery. Open a problem from the [Inbox](/docs/product/inbox) to read its investigation. **Timeline** holds the explanation and discussion, **Findings** holds the recorded evidence, and **Sessions** shows affected user sessions. The walkthrough below uses an example: customers choosing store pickup cannot finish checkout after a release. Use the same steps with a problem in your workspace. ## 1. Find the affected app In the Inbox, filter to the checkout app and **production** environment. Open the problem describing the failed checkout. Check its first and latest detection times, affected users, and priority. Compare the first occurrence with the deployment time. A matching timestamp helps identify the release to inspect; the trace and source code will show whether that release caused the failure. **First seen** is the earliest evidence recorded for the problem. **Last seen** is its most recent occurrence. Compare them to see how long the problem has been occurring and whether new occurrences are still arriving. When a resolved problem returns as a regression, last seen advances to the new occurrence while first seen stays unchanged. ## 2. Read the investigation Open **Timeline** and read the explanation. Follow its links to the supporting records. In this example, the explanation points to an exception when checkout reads `shippingAddress.postalCode`. The release added this access to a path also used for store pickup, where a shipping address is absent. Before accepting that explanation, check which part is supported by the evidence: * The exception names `postalCode` on an undefined value. * The failing stack frame points to the checkout code in the deployed release. * Affected sessions show customers choosing store pickup before submitting. If the explanation does not fit the recorded behavior, use the feedback control and describe the conflicting evidence. ## 3. Open the failing trace Open **Findings**, expand a day's occurrences, and select a record. Use **Jump to error** in the trace to locate the failing span. Inspect the exception, stack frames, surrounding spans, release, and environment. For the pickup example, find the frame that reads `shippingAddress.postalCode` and check the source in that release. The same file in your current branch may already have changed. If a stack frame shows only compiled JavaScript, check [source-map uploads](/docs/sdk/releases#missing-source-code-in-a-stack-trace). If the investigation cannot reference your repository, check the app's [GitHub connection](/docs/integrations/github). ## 4. Check what the customer did Open **Sessions** and select an affected session. Filter by a visited URL such as `/checkout` to narrow the list. In the [replay](/docs/product/session-replay), select the error event and inspect the actions just before it. For this example, verify that the customer selected pickup, submitted checkout, and encountered the failure. Compare another affected session to see whether it follows the same path. If a customer reported the issue directly, you can also start from their [user profile](/docs/product/users) or [company](/docs/product/companies). ## 5. Assign the fix and follow recovery Assign an owner with A and set priority with P. Add a timeline comment linking the failing trace and the affected release. Mention a teammate when you need their input. For the example, fix the checkout path so it only requires a shipping address for delivery. Test both delivery and pickup, then deploy through your usual release process. Subscribe with S to follow updates. After deployment, check new occurrences and their releases. Interfere moves problems through recovery and resolution as it observes events. If the failure returns, a resolved problem can reopen as a regression. Dismiss a problem when your team decides it does not need action. Archive it to remove it from your working view. ## Statuses | Status | Meaning | | - | - | | Detected | Interfere has detected an issue for investigation | | Reasoning | The investigation is examining evidence and possible causes | | Active | The problem needs a fix | | In recovery | Interfere is monitoring whether the issue has stopped | | Needs attention | The problem needs further review | | Resolved | The issue has stopped recurring | | Dismissed | Your team has decided not to act | | Failed | The investigation could not complete | [Release metadata](/docs/sdk/releases) connects occurrences to the code that produced them. You can also inspect the investigation through [AI Agents](/docs/integrations/plugins), [MCP](/docs/integrations/mcp), or the [CLI](/docs/integrations/cli#inspect-a-problem). # Security Source: https://interfere.com/docs/product/security Configure sign-in requirements and network access. Manage who can sign in, how teammates join, and which networks can reach your workspace in [Settings → Security](https://interfere.com/~/*/settings/security). ## Choose the control you need | Task | Setting | | - | - | | Choose permitted sign-in methods | [Identity providers](/docs/product/security/identity-providers) | | Use your company's identity provider | [Single sign-on](/docs/product/security/sso) | | Synchronize members and groups | [Directory sync](/docs/product/security/scim) | | Invite teammates by email domain | [Verified domains](/docs/product/workspace-domains) | | Restrict access by IP, CIDR, or ASN | [Network access](/docs/product/network-access) | ## Authentication and provisioning SSO lets members sign in through your identity provider, while directory sync keeps their workspace membership and groups aligned with it. You can configure either or both, depending on how your team manages access. ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: Authentication and provisioning accDescr: The identity provider authenticates sign-ins through SSO and synchronizes members and groups through SCIM. IdP["Identity provider"] -->|SSO| SignIn["Member sign-in"] IdP -->|SCIM| Directory["Members and groups"] SignIn --> Workspace["Workspace access"] Directory --> Workspace ``` ## Sign in Choose supported providers in [Sign-in methods](/docs/product/security/identity-providers). Members can manage their passkeys in [Profile settings](https://interfere.com/~/*/settings/profile). ## Single sign-on Enterprise Connect your company's identity provider and manage its active connection in Security. Follow [Single sign-on](/docs/product/security/sso) for setup and sign-in behavior. ## Roles and permissions Assign Owner, Admin, or Member access in [Members and roles](/docs/product/members). Review administrative changes in the [Audit log](/docs/product/audit-log). ## Network access Enterprise Allow only approved networks to reach the dashboard and API. Follow [Network access](/docs/product/network-access) for IP, CIDR, and ASN rules. ## Infrastructure [Infrastructure](/docs/product/infrastructure) describes Interfere-owned address space for your firewall configuration. These addresses are separate from the Enterprise allowlist that controls access to your workspace. For reports and certifications, visit [Interfere security](https://interfere.com/security). # Identity providers Source: https://interfere.com/docs/product/security/identity-providers Choose how members sign in to your workspace. In [Settings → Security](https://interfere.com/~/*/settings/security), use **Access control → Sign-in methods** to choose the providers available to users associated with your verified domains. ## Choose sign-in methods With permission to manage workspace authentication, you can enable or disable Google, GitHub, and Vercel in this menu. > [!NOTE] > > Turning off every selectable provider disables Google, GitHub, and Vercel sign-in. Email codes and > passkeys remain enabled, so this does not restrict sign-in to enterprise SSO. ## Connect an enterprise identity provider To use your company's SAML or OIDC provider, set up [Single sign-on](/docs/product/security/sso). Your active connection appears as **Enterprise SSO** in the sign-in methods menu and can be managed from the **Single sign-on** row. If you also want the provider to manage users and groups, configure [Directory sync](/docs/product/security/scim) alongside SSO. ## Verify your company domain [Verified domains](/docs/product/workspace-domains) associate your team's email domain with the workspace and control enrollment. A domain managed by an enterprise identity provider displays that relationship in Security. # Interfere bot Source: https://interfere.com/docs/product/security/interfere-bot What the Interfere bot requests, on whose behalf, how it identifies itself, and how it treats robots.txt. Interfere sends a small set of automated HTTP requests on behalf of the workspaces that use it. Each request carries the same identity, so website and API operators can recognize, allow, or block it. ## How it identifies itself Every request sends the user agent `Interfere/1.0 (+https://interfere.com/bot)`. Match on the stable token `Interfere/`. In production, requests are also signed with [Web Bot Auth](https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/) (HTTP Message Signatures with Ed25519). Each signature covers the authority, method, path and query, carries `tag="web-bot-auth"`, and expires after 60 seconds. Requests send `Signature-Agent: "https://interfere.com"`, and the public keys are published at `https://interfere.com/.well-known/http-message-signatures-directory`. Interfere-owned address space is listed at `https://interfere.com/ips.json`; requests sent from shared cloud infrastructure rely on the signature instead. ## What it requests and on whose behalf The bot does not crawl, index, or follow links. It only calls the specific endpoints below, each triggered by a workspace's configuration or by an investigation that workspace runs. | Request | Destination | Triggered by | | - | - | - | | MCP discovery, OAuth, and tool or resource reads | MCP servers that a workspace connects | A workspace member connecting the server, and investigations that read evidence from it | | Domain Connect discovery | The DNS provider of a domain the workspace adds | A workspace member adding a [workspace domain](/docs/product/workspace-domains) | | RDAP lookups | IANA bootstrap and regional internet registries | A workspace member adding an ASN to [network access](/docs/product/network-access) rules | | Company logo | The logo.dev API | Interfere displaying a [company](/docs/product/companies), stored after the first fetch | | Documentation | `interfere.com/docs` | The Interfere MCP server answering a documentation request | ## How often Requests are made on demand, one at a time per action, with a 10-second timeout for most lookups. Interfere does not schedule recurring scans of third-party sites. Company logos are fetched once per company and theme and served from Interfere's storage afterward. Redirects are not followed automatically: each new destination is validated and, in production, signed again. ## robots.txt Interfere does not fetch or apply `robots.txt`, because it does not crawl. Every request targets a specific API endpoint that a workspace connected, a public registry, or a provider API Interfere integrates with. To refuse Interfere's requests, block the user agent token `Interfere/` or the verified bot in your firewall, or disconnect the server from the workspace. ## Contact Report a problem with Interfere's automated traffic through `https://interfere.com/.well-known/security.txt`. # Directory sync Source: https://interfere.com/docs/product/security/scim Synchronize workspace members and groups with your identity provider. ## Synchronize your directory Enterprise Directory sync connects your provider's users and groups to workspace membership. Use [SSO](/docs/product/security/sso) for authentication and directory sync for provisioning and deprovisioning. ## Set up a directory Contact [support@interfere.com](mailto:support@interfere.com) with your workspace and provider to arrange the connection. Once configured, open [Settings → Security → Directory sync](https://interfere.com/~/*/settings/security). With permission to manage workspace authentication, you can enable or disable each directory here and see how many groups an enabled directory maps to the workspace. ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: Directory synchronization accDescr: Your identity provider sends user and group changes through SCIM to update workspace membership and mapped groups. Provider["Provider users and groups"] -->|SCIM changes| Directory["Connected directory"] Directory --> Members["Workspace members"] Directory --> Groups["Mapped groups"] ``` ## Check provisioning After setup, test a member assignment through the provider and check the result in [Team](/docs/product/members). Confirm the expected workspace role before rolling the directory out to everyone. Review membership changes in the [Audit log](/docs/product/audit-log). If a member or group is missing, check that the directory is enabled and that the provider assigns it to the Interfere application. ## Provider-managed domains Domains labeled **Enterprise SSO** in Security get their enrollment rules from your identity provider. See [Verified domains](/docs/product/workspace-domains) for how these differ from domains you manage directly. # Single sign-on Source: https://interfere.com/docs/product/security/sso Connect a company identity provider for member authentication. ## Connect your provider Enterprise To connect a SAML or OIDC provider, contact [support@interfere.com](mailto:support@interfere.com) with your workspace, provider, and company email domain. We'll coordinate the configuration with you, including a secure way to exchange any credentials. ## Manage a connection You can activate or deactivate configured connections in the **Single sign-on** row of [Settings → Security](https://interfere.com/~/*/settings/security), provided you have permission to manage workspace authentication. After activating a connection, sign in with a member account to check that it reaches the correct workspace with the expected role in [Team](/docs/product/members). ## Understand the sign-in flow ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: Enterprise sign-in accDescr: A member starts enterprise sign-in. Interfere requests authentication, the identity provider applies its sign-in policy and returns the result, and Interfere checks workspace access. Start["Member starts sign-in"] Request["Interfere requests authentication"] Policy["Provider applies sign-in policy"] Result["Provider returns authentication result"] Access["Interfere checks workspace access"] Start --> Request --> Policy --> Result --> Access ``` > [!NOTE] > > Activating SSO does not automatically turn off email codes or passkeys. Review [Identity > providers](/docs/product/security/identity-providers) before setting your team's sign-in policy. ## Provision members To have your provider manage membership and groups as well as sign-in, set up [Directory sync](/docs/product/security/scim). Domains managed by your provider show **Enterprise SSO** in the [Domains](/docs/product/workspace-domains) section. # Services Source: https://interfere.com/docs/product/services Review the OpenTelemetry services sending telemetry to your workspace. Open [Services](https://interfere.com/~/*/services) to see each OpenTelemetry service that sends telemetry to your workspace. Interfere adds a service when telemetry with its `service.name` and `service.namespace` resource attributes arrives, so the list fills in as your applications report. Viewing Services requires permission to read integration settings. ## Read the list Each row shows a service's name, its namespace, and a logo for the platform it reports from, such as Node.js, Python, Go, Vercel, or Cloudflare. Services without a recognized platform show the OpenTelemetry logo. A service named `unknown_service` shows **Set service.name to identify this service**; set `OTEL_SERVICE_NAME` or the `service.name` resource attribute so each service appears under its own name. | Column | Shows | | - | - | | **Service** | The service name and namespace. | | **App** | The [app](/docs/product/apps) the service is linked to. Select it to open the app. | | **Status** | **Active** when telemetry arrived in the last 24 hours, **Inactive** when it is older, or **No telemetry yet**. | | **Last seen** | When the service last sent telemetry, or **Over 7 days ago**. | | **Last 24h** | A sparkline of traces, logs, and metrics received per hour. Hover a bar to see the counts for that hour. | Search by service name, namespace, or app name. When services are linked to more than one app, use the app filter to show one app's services; **All apps** shows every service. ## Set up OpenTelemetry Members who can manage integrations see **Set up OpenTelemetry** in the page header, and in the empty state before any service reports. The dialog shows the exporter to add to your OpenTelemetry Collector configuration; add `otlphttp/interfere` to the exporters in your traces, logs, and metrics pipelines. Telemetry authenticates with a Workspace API key that has the **Send telemetry** permission. Select **Manage Workspace keys** to open **Settings → Developer** and create one. App public keys cannot authenticate workspace telemetry. Follow [OpenTelemetry ingestion](/docs/sdk/otel-ingestion) to configure a Collector or send telemetry directly from your services. ## Link a service to an app A service linked to an app has its traces charted on the app's **Overview** page under **Linked OpenTelemetry services**. Logs and metrics from linked services are not charted yet. Linking does not change where telemetry is stored, and unlinking keeps the service's data. You can currently link services only for apps that deploy to [Cloudflare Workers](/docs/integrations/cloudflare-workers): open the app and choose its Workers with **Select Workers**. Each Worker you select is linked to the app as a service and appears in Services as **No telemetry yet** until it emits telemetry; assets-only Workers never emit. The [audit log](/docs/product/audit-log) records each link as **Telemetry service linked**. Other OpenTelemetry services appear in Services without an app. ## Link a service to its repository Link a service to the [GitHub](/docs/integrations/github) repository, and optionally the working directory, that holds its code. Investigations then read the commit from the `service.version` resource attribute on the service's telemetry. The Services page has no control for this link; ask an agent connected through the [Interfere MCP](/docs/integrations/mcp) to set it. The audit log records it as **Service repository linked**. ## Choose the reportable environment By default, exceptions from every environment of a service create findings and problems. Set a reportable environment to limit them to one environment, matched against the `deployment.environment.name` resource attribute. Exceptions from other environments, or without the attribute, are still stored as telemetry. Ask an agent connected through the [Interfere MCP](/docs/integrations/mcp) to change this setting; the audit log records it as **Service reportable environment changed**. # Session replay Source: https://interfere.com/docs/product/session-replay Watch the steps leading up to an error. Open a session from a [problem](/docs/product/problems) or [user profile](/docs/product/users) to review the pages visited, actions taken, and errors recorded during that session. ![Session events showing a page visit, an uncaught error, and a click on Submit.](https://mintcdn.com/interfere/mSSNkiftx7tEdU0l/images/session-events.png?fit=max\&auto=format\&n=mSSNkiftx7tEdU0l\&q=85\&s=7864307c18d08851224244bb8c9fd71e) Use the event timeline to find an error and the actions around it. ## Start from a problem Open the problem's sessions and select one to replay. Filter by visited URL when the issue involves a particular route, such as `/checkout`. The session's other events stay available for context. Select an error to start playback up to seven seconds before it, where recording data exists. Use the event timeline to compare the user's actions with the error and its trace. ## Start from a user Open a profile in **Users**, then select a recorded session. This is useful when a customer reports a failure but you do not yet know which problem caused it. ## Missing recordings A session can have events without replay data. Replay must be enabled and the `replay` consent category must be allowed while the session is recorded. Enabling it later cannot recover an earlier recording. Configure [consent](/docs/sdk/consent) and [replay masking](/docs/sdk/replay-privacy) in your app. Blocked elements appear as placeholders, and masked content stays masked during playback. # Workspace settings Source: https://interfere.com/docs/product/settings Manage workspace details, domains, billing, and support access. Your workspace contains your team's apps, problems, integrations, and access settings. Open [Workspace settings](https://interfere.com/~/*/settings/workspace) to manage its name and defaults. The workspace slug appears in its URL. For `interfere.com/~/acme`, use `acme` in the CLI, API, and Terraform provider. ## Data residency View your workspace's **Data residency** in [Workspace settings](https://interfere.com/~/*/settings/workspace). Workspaces currently use **Unrestricted**, which does not restrict storage or processing to a specific region. See [Data residency](/docs/product/data-residency) for availability and scope. ## Workspace domains Configure [verified domains](/docs/product/workspace-domains) in **Settings → Security** to control how people with your team's email domain join. This feature requires Enterprise. ## Team access Invite teammates and change roles in [Members and roles](/docs/product/members). Configure [SSO and network access](/docs/product/security) in Security, and review administrative changes in the [Audit log](/docs/product/audit-log). ## Personal settings Update your account details and passkeys in [Profile](https://interfere.com/~/*/settings/profile). Choose notification channels in [Notifications](/docs/product/notifications). ## Billing Open [Billing](https://interfere.com/~/*/settings/billing) to manage your plan and invoices. ## Support access Support access lets the Interfere team temporarily access your workspace to troubleshoot with you, using the same access you have. It is off by default. Enable it in [Support settings](https://interfere.com/~/*/settings/support) when working with support. Choose a duration from one hour to one week. Access expires automatically, and you can revoke it earlier. Contact [support@interfere.com](mailto:support@interfere.com) for help. # Users Source: https://interfere.com/docs/product/users Find a customer’s activity, affected problems, and sessions. Open [Users](https://interfere.com/~/*/consumers) to find someone using your app. Their profile brings together user traits, recent activity, apps they have used, and active problems affecting them. ## Find an affected user Open a profile, review its active problems, and select a problem to read the investigation. Resolved problems no longer appear in the active-problems panel. If you are investigating a customer report, open a session from the profile and use its event timeline to find the reported action. See [Session replay](/docs/product/session-replay). ## Identify signed-in users Sessions start anonymously. Call `identity.set()` after your app loads the signed-in user to attach a stable user ID, name, email, and other traits. Follow [User tracking](/docs/sdk/identity) for the React integration. Use a stable internal ID for `identifier` so changes to someone's email do not change their identity. For account-wide impact, open the associated [company](/docs/product/companies). # Verified domains Source: https://interfere.com/docs/product/workspace-domains Verify your company email domain and control how teammates join. ## Verify a domain Enterprise Open [Settings → Security → Domains](https://interfere.com/~/*/settings/security). Use your team's email domain, such as `acme.com`, rather than the address your monitored app runs on. Free email-provider domains and IP addresses are not accepted. **1. Add your company domain** Select **Add a domain** and enter the domain. Managing domains requires permission to manage workspace domains. **2. Verify an email at that domain** Select **Verify domain**, enter an email address at the domain, and select **Send code**. Enter the code sent to that mailbox. **3. Choose how teammates join** Once the domain is verified, select its enrollment mode from the domain row. ```mermaid actions={true} theme={null} --- config: fontFamily: BerkeleyMono, monospace themeVariables: fontSize: 12px themeCSS: | .label { font-family: BerkeleyMono, monospace; font-size: 12px; font-weight: 500; } .diagram-node { display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box; width: 240px; min-height: 40px; padding-inline-end: 8px; } .diagram-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; flex: 0 0 40px; } .diagram-icon img { display: block; width: 20px !important; height: 20px !important; margin: 0; } .diagram-name { max-width: 160px; white-space: normal; text-align: start; line-height: 18px; } .edgeLabel p { padding: 3px 7px; border: 1px solid transparent; } flowchart: curve: linear wrappingWidth: 240 useMaxWidth: false padding: 5 nodeSpacing: 48 rankSpacing: 72 diagramPadding: 24 --- flowchart TB accTitle: Domain verification and enrollment accDescr: Add a domain, verify an email address at that domain, then choose an enrollment mode for teammates. Add["Add domain"] --> Verify["Verify email code"] --> Choose["Choose enrollment"] ``` ## Enrollment modes | Mode | What happens | | - | - | | No automatic enrollment | Invite teammates manually. | | Automatic invitations | People with a verified email at the domain receive an invitation. | | Automatic suggestions | People with a verified email at the domain see a suggestion to request access. | Automatic enrollment options remain unavailable until verification succeeds. Removing a domain stops its automatic invitations and access suggestions. ## Provider-managed domains For a domain labeled **Enterprise SSO**, manage enrollment through your identity provider rather than the domain menu. See [SSO](/docs/product/security/sso) and [Directory sync](/docs/product/security/scim) for the connection's setup. > [!NOTE] > > Your workspace domain describes your own team. [Companies](/docs/product/companies) describe the > customer accounts using your monitored app. # Quickstart Source: https://interfere.com/docs/quickstart Connect your first app and verify capture. Create a workspace, add Interfere to your app, and check that Interfere receives events. ## Create a workspace Open [setup](https://interfere.com/onboarding). Choose a workspace name, URL slug, and company email domain. The slug identifies your workspace in links and API requests. For `interfere.com/~/acme`, it is `acme`. New workspaces use **Unrestricted** [data residency](/docs/product/data-residency). Storage and processing are not restricted to a specific region. Use your team's email domain so colleagues can join through your [workspace domain settings](/docs/product/settings#workspace-domains). ## Choose a setup method Setup then asks how you want to get started. Select **Use Interfere MCP** to let your coding agent do the setup, which is the recommended path, or select **or continue with manual setup** to follow the steps yourself. During manual setup, select **Setup method** to return to this choice. ### Set up with Interfere MCP Setup lists Claude Code, Codex, Cursor, and other agents: * For Claude Code, select **Copy command** and paste the command into your terminal. It installs the [Interfere plugin](/docs/integrations/plugins) and starts Claude Code with a setup prompt. * For Codex, select **Copy command** and paste it into your terminal. It adds the [Interfere MCP](/docs/integrations/mcp) server, signs you in, and starts Codex with the same prompt. * For Cursor, select **Add**. For another agent, select **Copy URL** and add the MCP server in that agent. Then ask the agent to set up Interfere in your project. Select **Continue** to watch your agent's progress. The agent creates an app, installs the SDK, and opens the GitHub and deployment platform install pages so you can choose repositories and approve access in your browser. The checklist marks **Configured app**, **Connect codebase**, and **Connect deployment platform** as each step completes. When all three are done, select **Get Started**, then [verify events](#verify-events) and select a plan. If you set up manually, continue with the next section. ## Add your app Create an app for the application you want to monitor. Give separately deployed applications their own apps, such as a storefront and its backend API. Name the app, then answer **What stack are you using?** by choosing Next.js, Vite, NestJS, or Elysia, and select **Create app**. Setup shows the code snippets for your stack, followed by your keys. Copy the app public key; the SDK uses it to send telemetry. Copy the secret key to your build environment for release registration and source maps, because setup shows it only once. NestJS and Elysia apps use OpenTelemetry with a Workspace API key instead of the app public key. ## Install the SDK Follow one guide through its verification step: > [card] [Next.js](/docs/sdk/next-js) > > App Router, browser capture, and server instrumentation. > [card] [Vite + React](/docs/sdk/vite) > > React apps built with Vite. > [card] [TanStack Start](/docs/sdk/tanstack-start) > > Browser and server capture for Start. > [card] [NestJS](/docs/sdk/nestjs) > > Request errors and tracing in NestJS with OpenTelemetry. > [card] [OpenTelemetry](/docs/sdk/otel-ingestion) > > Node.js and other services that export OpenTelemetry. ## Connect your code and deployment Connect [GitHub](/docs/integrations/github) and select the repository for your app. This gives investigations access to the code behind an error. Connect [Vercel](/docs/integrations/vercel) or [Cloudflare Workers](/docs/integrations/cloudflare-workers) if you deploy there, then map the project or Worker to your app. For other hosts, the SDK build plugins publish [release metadata and source maps](/docs/sdk/releases). ## Verify events Build and deploy the app with its public key and an environment label such as `staging`. Open your application and trigger an action, or run the test capture in your SDK guide. Setup shows **Waiting for events…** until the first event arrives, then **Event received**. Select **Continue**, or select **Skip for now** to verify later in [Apps](https://interfere.com/~/*/apps), where the app's event chart shows incoming traffic. Finish setup by choosing a plan in **Plans & Billing**. Only workspace billing admins can purchase a plan. Problems appear as Interfere detects and investigates issues. ## Open your first investigation Open the [Inbox](/docs/product/inbox), select the app and environment you just deployed, and open a detected problem. In **Timeline**, read the explanation. In **Findings**, open an occurrence and inspect its error and stack frames. For browser problems, open **Sessions** to replay the actions around the failure. Follow [Investigations](/docs/product/problems) for a worked example showing how to check the explanation against a trace, a release, and an affected session. # Configuration Source: https://interfere.com/docs/sdk/configuration Set service names, environments, and browser capture options. This page configures browser capture in Next.js, Vite + React, and TanStack Start. For Node.js and NestJS server processes, set the service name and environment through [OpenTelemetry resource attributes](/docs/sdk/otel-ingestion#identify-services-and-deployments). ## Service names Give each process a stable service name, such as `storefront` or `checkout-worker`: ```ts Next.js theme={null} import { init } from "@interfere/next/instrument-client"; init({ serviceName: "storefront" }); ``` ```ts Vite / TanStack Start theme={null} import { init } from "@interfere/vite/init"; init({ serviceName: "storefront" }); ``` The app public key selects the Interfere app receiving telemetry. The service name identifies the process within that telemetry. ## Environments On Vercel and Cloudflare, the SDK reads the environment from the platform. On other hosts it falls back to `NODE_ENV`. To label a self-hosted staging deployment, set `INTERFERE_ENVIRONMENT=staging` in its environment. Interfere filters local-like environments such as `development`, `local`, and `test` before ingestion. Verify on a deployed environment such as a preview or staging deployment, or change environment filtering for the app. ## Capture features Configure features on the `InterfereProvider` you added during installation. Import it from `@interfere/next/provider` for Next.js or `@interfere/vite/provider` for Vite and TanStack Start. All features default to enabled, subject to [consent](/docs/sdk/consent). | Plugin | Capture | | - | - | | `errors` | Uncaught browser errors | | `logs` | Console output | | `device` | Browser and device information | | `pageEvents` | Page views and clicks | | `rageClick` | Repeated clicks that indicate frustration | | `replay` | Session recordings | For example, disable replay and page events: ```tsx theme={null} {children} ``` Set `init({ tracing: false })` to omit browser tracing. Set `errorBoundary={false}` on the provider if you already report React render errors through another boundary. ## Custom ingest domain Configure a subdomain for telemetry if requests to the default endpoint are blocked by browser extensions. Add the CNAME using the target shown in your dashboard, then set `apiHost`. For Next.js: ```ts next.config.ts theme={null} import { withInterfere } from "@interfere/next/config"; export default withInterfere({ interfere: { apiHost: "https://in.acme.com" }, }); ``` For Vite, pass `apiHost` to the build plugin: ```ts theme={null} interfere({ apiHost: "https://in.acme.com" }); ``` Interfere provisions TLS for the domain. Telemetry requests do not send cookies. # Consent Source: https://interfere.com/docs/sdk/consent Set browser capture permissions before startup and update them when visitors choose. For Next.js, Vite + React, and TanStack Start, consent controls browser analytics and replay. These settings do not control server telemetry. Without a `consent` option, the SDK runs with its configured defaults. To wait for a visitor's choice before starting analytics or replay, pass `false` to `init()`: ```ts instrumentation-client.ts theme={null} import { init } from "@interfere/next/instrumentation-client"; await init({ consent: false }); ``` For Vite + React and TanStack Start, import `init` from `@interfere/vite/init` in the browser entry point. Set this before React renders. Passing consent only to the provider leaves a gap between initialization and the first render. Consent describes what the visitor allows **right now**. The same values work in `init()`, the provider's `consent` prop, and `consent.set()`: | Value | What it allows | | - | - | | `false` | Neither analytics nor replay | | `true` | Both analytics and replay | | `{ analytics: true, replay: false }` | Analytics only | | Category | What it covers | | - | - | | `analytics` | Page events, rage clicks, device info | | `replay` | Session replay | ## Update consent Import `useInterfere` from `@interfere/next/provider` or `@interfere/vite/provider`. Update the decision when the visitor accepts, declines, or changes their preferences: ```tsx theme={null} const { consent } = useInterfere(); consent.set(true); ``` Use `consent.set(false)` to withdraw both permissions, or pass an object for separate choices: ```tsx theme={null} consent.set({ analytics: true, replay: false }); ``` Each update replaces the previous decision. Omitted categories are allowed, so include both booleans when mapping choices from a consent platform such as c15t, CookieYes, or OneTrust. You can also keep the decision synchronized through the provider: ```tsx theme={null} {children} ``` Omitting the provider's `consent` prop preserves the decision supplied to `init()` or updated at runtime. Calling `consent.set()` without a value removes consent restrictions; it does not record the visitor's acceptance. > [!NOTE] > > Consent controls analytics and replay. It does not disable errors, logs, tracing, or session > storage, and granting consent does not enable plugins disabled in configuration. Configure [masking](/docs/sdk/replay-privacy) separately for content that must not appear in recordings. # Errors and custom spans Source: https://interfere.com/docs/sdk/error-capture Report handled errors and trace application work. The SDK captures uncaught errors. Report an error explicitly when your application catches it and you still need it in Interfere. ## Browser errors Choose your framework's browser entry point: ```ts Next.js theme={null} import { capture } from "@interfere/next/instrument-client"; try { await saveDraft(); } catch (error) { capture(error); throw error; } ``` ```ts Vite / TanStack Start theme={null} import { capture } from "@interfere/vite/init"; try { await saveDraft(); } catch (error) { capture(error); throw error; } ``` Here, `saveDraft` is your application's operation. Keep its existing error handling after reporting the error. ## Server errors Import `captureError` from your framework's server entry point: | Framework | Import | | - | - | | Next.js | `@interfere/next/server` | | TanStack Start | `@interfere/vite/server` | ```ts theme={null} import { captureError } from "@interfere/next/server"; try { await fulfillOrder(); } catch (error) { captureError(error); throw error; } ``` Node.js and NestJS services record caught errors with OpenTelemetry instead. See [Node.js](/docs/sdk/otel-ingestion#node-js) and [Record server exceptions](/docs/sdk/nestjs#record-server-exceptions). ## Custom spans Wrap application work to record its duration and outcome. In the Next.js browser SDK, use `span`: ```ts theme={null} import { span } from "@interfere/next/instrument-client"; await span("checkout.submit", () => submitOrder()); ``` In Node.js and NestJS, use `tracer.startActiveSpan()` from `@opentelemetry/api`, as described in the [Node.js setup](/docs/sdk/otel-ingestion#node-js). ## Next.js proxy Wrap your existing proxy handler with `withInterfereProxy`. The wrapper reports thrown errors with request context and rethrows them. ```ts proxy.ts theme={null} import { withInterfereProxy } from "@interfere/next/server"; import { NextResponse } from "next/server"; export default withInterfereProxy(() => NextResponse.next()); export const config = { matcher: ["/((?!_next/static).*)"] }; ``` Replace `NextResponse.next()` with your existing proxy logic. ## Next.js server actions Wrap an action's work with `withInterfereServerAction` to record its name and outcome. Its `args` option records argument types, not values. Thrown errors reach the `onRequestError` handler from your [server instrumentation](/docs/sdk/next-js#setup). ```ts theme={null} import { withInterfereServerAction } from "@interfere/next/server"; export async function validateEmail(formData: FormData) { "use server"; return withInterfereServerAction( "validateEmail", () => { const email = formData.get("email"); if (typeof email !== "string" || !email.includes("@")) { throw new Error("Enter a valid email address"); } return email; }, { args: [formData] }, ); } ``` # User tracking Source: https://interfere.com/docs/sdk/identity Associate sessions and problems with signed-in users. For Next.js, Vite + React, and TanStack Start, call `identity.set()` after your app loads its authenticated user. Interfere attaches the identity to the session so you can find the person in [Users](/docs/product/users) and see the problems affecting them. ## Sync the signed-in user Render `SyncIdentity` inside `InterfereProvider` and pass the user from your authentication system. Choose the example for your framework: ```tsx Next.js theme={null} "use client"; import { useInterfere } from "@interfere/next/provider"; import { useEffect } from "react"; type User = { id: string; name: string; email: string; }; export function SyncIdentity({ user }: { user: User | null }) { const { identity } = useInterfere(); useEffect(() => { if (!user) { identity.clear(); return; } identity.set({ identifier: user.id, name: user.name, email: user.email, source: { type: "custom", name: "Acme" }, }); }, [identity, user]); return null; } ``` ```tsx Vite / TanStack Start theme={null} import { useInterfere } from "@interfere/vite/provider"; import { useEffect } from "react"; type User = { id: string; name: string; email: string; }; export function SyncIdentity({ user }: { user: User | null }) { const { identity } = useInterfere(); useEffect(() => { if (!user) { identity.clear(); return; } identity.set({ identifier: user.id, name: user.name, email: user.email, source: { type: "custom", name: "Acme" }, }); }, [identity, user]); return null; } ``` Use a stable internal user ID for `identifier`. An email can change, so it should not be the identifier. ## Identity fields | Field | Purpose | | - | - | | `identifier` | Required stable user ID | | `source` | Required provider type and display name | | `name` | Display name | | `email` | Email address | | `avatar` | Avatar URL | | `traits` | Additional user properties | Set `source.type` to `clerk`, `auth0`, or `custom`. Set `source.name` to the provider's display name. Wait until your authentication system has loaded before rendering `SyncIdentity`. Pass `null` after sign-out to clear identity and start a new anonymous session. Identity calls are deduplicated per session. Read the current session ID with `useSession` from your framework's provider package. # NestJS Source: https://interfere.com/docs/sdk/nestjs Send traces and server errors from your NestJS backend to Interfere with OpenTelemetry. NestJS backends send telemetry to Interfere through OpenTelemetry. The OpenTelemetry Node.js SDK instruments HTTP and NestJS, and your exception filter records server errors on the request span. > [!NOTE] > > `@interfere/nest` and `@interfere/node` are retired. Installed versions keep sending data, and new > setups use OpenTelemetry. To migrate, follow this guide, then remove `InterfereModule.forRoot()` > and the imports from `@interfere/nest/instrument` and `@interfere/nest/module`. ## Prerequisites * A NestJS app * Node.js `>= 20` ## Setup **1. Create a telemetry key** Open [Services](https://interfere.com/~/*/services) and select **Set up OpenTelemetry**, then select **Manage Workspace keys**. Create a workspace API key with the **Send telemetry** permission, or use an existing key with that permission. Store the secret as `INTERFERE_TELEMETRY_KEY` in your server environment. App public keys cannot authenticate workspace telemetry, and the workspace key must stay out of browser code. **2. Configure your server environment** Set the exporter variables before the server starts: ```bash theme={null} export OTEL_SERVICE_NAME="my-api" export OTEL_EXPORTER_OTLP_ENDPOINT="https://api.interfere.com/drain" export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer%20${INTERFERE_TELEMETRY_KEY}" export OTEL_RESOURCE_ATTRIBUTES="deployment.environment.name=production" ``` Give each process, such as an API and its workers, its own `OTEL_SERVICE_NAME`. See [OpenTelemetry ingestion](/docs/sdk/otel-ingestion#identify-services-and-deployments) for other resource attributes. **3. Install OpenTelemetry** ```bash npm theme={null} npm install @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` ```bash pnpm theme={null} pnpm add @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` ```bash Yarn theme={null} yarn add @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` ```bash Bun theme={null} bun add @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` **4. Create instrumentation.mjs** ```js instrumentation.mjs theme={null} import { NodeSDK } from "@opentelemetry/sdk-node"; import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node"; import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto"; export const sdk = new NodeSDK({ traceExporter: new OTLPTraceExporter(), instrumentations: [getNodeAutoInstrumentations()], }); sdk.start(); ``` If your app already registers an OpenTelemetry provider, add the exporter to that provider instead of starting a second one. **5. Start instrumentation before your app** Load `instrumentation.mjs` before any application or NestJS imports. Instrumentation loaded after Nest can miss HTTP and framework spans without an error. For a CommonJS build, preload it when starting the compiled app: ```bash theme={null} node --import ./instrumentation.mjs dist/main.js ``` For an ESM build, also configure the [OpenTelemetry ESM loader hook](https://opentelemetry.io/docs/languages/js/getting-started/nodejs/). Await `sdk.shutdown()` in your application's graceful shutdown handler, after the app stops accepting requests, so buffered spans flush before the process exits. ## Record server exceptions Auto-instrumentation creates request spans, but it does not report every exception your app handles. Add a helper that records an exception on the active span and sets its status to `ERROR`: ```ts src/report-error.ts theme={null} import { SpanStatusCode, trace } from "@opentelemetry/api"; const tracer = trace.getTracer("my-api"); export function reportError(error: Error) { const active = trace.getActiveSpan(); const span = active ?? tracer.startSpan("application.error"); span.recordException(error); span.setStatus({ code: SpanStatusCode.ERROR }); if (!active) { span.end(); } } ``` If your app uses Nest's default exception handling, a global filter can record server failures and pass the response to `BaseExceptionFilter`: ```ts src/telemetry-exception.filter.ts theme={null} import { ArgumentsHost, Catch, HttpException } from "@nestjs/common"; import { BaseExceptionFilter } from "@nestjs/core"; import { reportError } from "./report-error"; @Catch() export class TelemetryExceptionFilter extends BaseExceptionFilter { override catch(exception: unknown, host: ArgumentsHost) { const status = exception instanceof HttpException ? exception.getStatus() : 500; if (status >= 500 && exception instanceof Error) { reportError(exception); } super.catch(exception, host); } } ``` Register it with the HTTP adapter in `main.ts`: ```ts src/main.ts theme={null} app.useGlobalFilters(new TelemetryExceptionFilter(app.getHttpAdapter())); ``` If an existing filter already formats error responses, call `reportError` there instead. Client errors with 4xx status codes, such as validation or authorization failures, are not server exceptions; leave them unreported. To trace an operation of your own, use `tracer.startActiveSpan()` and end the span when the operation finishes. ## Verify capture Send a request to a staging deployment and trigger a caught server exception. After the exporter flushes, open [Services](https://interfere.com/~/*/services) and find the service by its `OTEL_SERVICE_NAME`. Stop the app and confirm that spans from the last requests still arrive. If the service does not appear, check the exporter logs and the [response codes](/docs/sdk/otel-ingestion#verify-ingestion) for authentication or payload errors. # Next.js Source: https://interfere.com/docs/sdk/next-js Capture browser and server errors in a Next.js App Router app. `@interfere/next` connects browser errors, session replay, and server requests to the same Interfere app. The build plugin uploads source maps so investigations can show your original code. You need a Next.js 16 or later App Router app, React 19, and Node.js 20 or later. Create an [app](/docs/product/apps) in Interfere before starting; its keys connect your Next.js project to your workspace. ## Setup **1. Install the package** ```bash npm theme={null} npm install @interfere/next ``` ```bash pnpm theme={null} pnpm add @interfere/next ``` ```bash Yarn theme={null} yarn add @interfere/next ``` ```bash Bun theme={null} bun add @interfere/next ``` **2. Set your keys** Copy the keys from your [app](/docs/product/apps) into your deployment's environment variables. Set both for builds; the runtime needs the public key. ```env theme={null} INTERFERE_PUBLIC_KEY=YOUR_APP_PUBLIC_KEY INTERFERE_API_KEY=YOUR_APP_SECRET_KEY ``` Keep the secret key out of browser code. These variables do not need a `NEXT_PUBLIC_` prefix. **3. Connect your build** Wrap your existing Next.js config. The plugin registers releases and uploads source maps during production builds. ```ts next.config.ts theme={null} import { withInterfere } from "@interfere/next/config"; import type { NextConfig } from "next"; const config: NextConfig = {}; export default withInterfere(config); ``` Keep `withInterfere()` outermost when composing config wrappers. See [Releases and source maps](/docs/sdk/releases) if another tool also uploads source maps. **4. Start server and browser capture** Create `instrumentation.ts` in the project root, or inside `src` if your app uses a `src` directory. ```ts instrumentation.ts theme={null} export { onRequestError, register } from "@interfere/next/instrumentation"; ``` If you already initialize OpenTelemetry, follow [OpenTelemetry composition](/docs/sdk/opentelemetry) instead of registering a second provider. Create `instrumentation-client.ts` beside `instrumentation.ts`. Next.js loads it before the app becomes interactive. ```ts instrumentation-client.ts theme={null} import { init } from "@interfere/next/instrument-client"; init(); ``` **5. Wrap your root layout** Wrap the root layout. The provider exposes identity and consent hooks and reports React render errors. Browser capture still requires the `init()` call above. ```tsx app/layout.tsx theme={null} import { InterfereProvider } from "@interfere/next/provider"; import type { ReactNode } from "react"; export default function RootLayout({ children }: { children: ReactNode }) { return ( {children} ); } ``` Before recording customer sessions, set [consent at initialization](/docs/sdk/consent) and review [replay masking](/docs/sdk/replay-privacy). ## Verify capture After initialization, report a test error from an existing button or event handler in your staging app: ```ts theme={null} import { capture } from "@interfere/next/instrument-client"; capture(new Error("Interfere setup test")); ``` Open your app's event chart to confirm that traffic arrives, then remove the test call. ## Next steps [User tracking](/docs/sdk/identity), [report handled errors and trace custom work](/docs/sdk/error-capture), or configure [server telemetry and OpenTelemetry](/docs/sdk/opentelemetry). # OpenTelemetry composition Source: https://interfere.com/docs/sdk/opentelemetry Compose Next.js instrumentation and avoid duplicate telemetry. Use this guide when your Next.js app already initializes OpenTelemetry or receives telemetry through platform drains. To send data from a native OTel exporter or Collector, see [OpenTelemetry ingestion](/docs/sdk/otel-ingestion). ## Use an existing OpenTelemetry provider Use one OpenTelemetry bootstrap per process. If you already initialize `@vercel/otel`, `dd-trace`, or a custom provider, use `buildInterfereOtelKit()` to add Interfere to that setup instead of also calling Interfere's `register()`. ```ts instrumentation.ts theme={null} import { registerOTel } from "@vercel/otel"; import { buildInterfereOtelKit } from "@interfere/next/instrumentation"; export { onRequestError } from "@interfere/next/instrumentation"; export function register() { const kit = buildInterfereOtelKit({ serviceName: "@acme/storefront" }); registerOTel({ serviceName: "@acme/storefront", attributes: { ...kit?.resourceAttributes }, spanProcessors: ["auto", ...(kit?.spanProcessors ?? [])], logRecordProcessors: [...(kit?.logRecordProcessors ?? [])], propagators: ["auto", ...(kit?.propagators ?? [])], }); kit?.enableConsoleBridge(); void kit?.fetchRemoteConfig(); } ``` The kit constructs processors, propagators, and resource attributes without registering providers globally. It returns `null` when `INTERFERE_PUBLIC_KEY` is unset. | Kit field | Use | | - | - | | `resourceAttributes` | Merge with your provider's attributes to preserve SDK, service, environment, and release identity. | | `spanProcessors` | Add baggage stamping and the trace exporter. The exporter is omitted in server trace drain mode. | | `logRecordProcessors` | Add the log exporter. It is omitted in log drain mode. | | `propagators` | Append after your trace-context propagator to preserve browser-to-server correlation. | | `instrumentations` | Currently empty. Next.js or your host setup supplies outbound HTTP instrumentation. | | `enableConsoleBridge()` | Forward console records after your logger provider is registered. Returns a cleanup function. In log drain mode it does not install a bridge. | | `fetchRemoteConfig()` | Fetch and cache remote SDK configuration. | ## Compose processors and propagators Append `kit.propagators` after your trace-context propagator, as in `propagators: ["auto", ...kit.propagators]`, to preserve browser-to-server correlation. Merge the kit's resource attributes with your own. Pass the same service name to the kit and your host bootstrap so spans retain consistent service and release attribution. If you already have an `onRequestError` handler, call Interfere's handler inside it as well. Keep both behaviors instead of replacing one export with the other. Only one browser SDK should inject W3C trace context for a given request URL. If another SDK also writes `traceparent`, scope its injection to other hosts or use its vendor-specific propagation where supported. Competing headers can break browser-to-server correlation. Skip the console bridge when your logger already emits the same records through OpenTelemetry. Avoid adding a second HTTP instrumentation for requests already traced by Next.js or your host setup. The kit does not publish releases or upload source maps. Keep the [build plugin](/docs/sdk/releases) configured. ## Browser-to-server traces Keep both the build plugin and browser initialization from the [Next.js guide](/docs/sdk/next-js). On dynamically rendered pages, they connect browser activity to the server request. The composed setup above also needs `kit.propagators` for that connection. Static pages and Edge-rendered pages start separate browser traces. Capture still works, but those pages do not have the same server-to-browser link. On Edge, `buildInterfereOtelKit()` returns `null`; the optional chaining in the example lets it load without registering a Node.js provider. ## Server telemetry Under `@vercel/otel`, a direct OTLP exporter flushes inside `waitUntil`, so each invocation stays billed until the export finishes. With a [Vercel trace drain](/docs/integrations/vercel#trace-and-log-drains) enabled for the app, the SDK switches to drain mode automatically and avoids that cost: Vercel ships spans out of process. Without a drain, the SDK exports directly and caps each export on Vercel at 2 seconds. # OpenTelemetry ingestion Source: https://interfere.com/docs/sdk/otel-ingestion Send traces, logs, and metrics from an OpenTelemetry Collector or native exporter. Send telemetry to Interfere using your existing OpenTelemetry instrumentation. You can export through a Collector or directly from your service, without installing an Interfere SDK or creating an app. Every workspace accepts OpenTelemetry data, so there is no connection to enable first. ## Create a telemetry key Open [Services](https://interfere.com/~/*/services) and select **Set up OpenTelemetry**. The dialog shows the Collector exporter configuration and links to **Manage Workspace keys**. In [Developer settings](https://interfere.com/~/*/settings/developer), create a workspace API key with the **Send telemetry** permission, or use an existing key with that permission. Its API scope is `org:telemetry:write`. Store the returned secret as `INTERFERE_TELEMETRY_KEY` in your service or Collector environment, so it stays separate from the `INTERFERE_API_KEY` secret key that an app's build uses. Keep this workspace key on the server. App public keys and release-only build keys do not provide workspace telemetry access. You can manage and revoke the key in Developer settings. See [API keys](/docs/integrations/api-keys) for key creation and expiration settings. ## Endpoints and authentication Use `https://api.interfere.com/drain` as the OTLP/HTTP base endpoint. The intake accepts protobuf or OTLP JSON, with optional gzip compression. Configure an HTTP exporter; this endpoint does not accept OTLP/gRPC. | Signal | HTTP endpoint | | - | - | | Traces | `https://api.interfere.com/drain/v1/traces` | | Logs | `https://api.interfere.com/drain/v1/logs` | | Metrics | `https://api.interfere.com/drain/v1/metrics` | Authenticate each request with the workspace key: ```http theme={null} Authorization: Bearer YOUR_WORKSPACE_TELEMETRY_KEY ``` The `x-api-key` header also accepts the same secret. The key selects the workspace; resource attributes identify the service sending data. ## Export through a Collector If your applications already export to a Collector, keep that setup and add this exporter to its configuration: ```yaml theme={null} exporters: otlphttp/interfere: endpoint: "https://api.interfere.com/drain" headers: Authorization: "Bearer ${env:INTERFERE_TELEMETRY_KEY}" ``` Add `otlphttp/interfere` to the `exporters` list in each traces, logs, or metrics pipeline you want to send. Keep the pipeline's existing receivers, processors, and other exporters. Defining the exporter alone does not enable it. The Collector appends the signal path to the base endpoint. See the [OTLP HTTP exporter configuration](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlphttpexporter) for batching, queue, timeout, and retry options. ## Export directly from a service For an OTel SDK that supports standard exporter environment variables, configure your service before it starts: ```bash theme={null} export OTEL_SERVICE_NAME="checkout-api" export OTEL_EXPORTER_OTLP_ENDPOINT="https://api.interfere.com/drain" export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer%20${INTERFERE_TELEMETRY_KEY}" export OTEL_RESOURCE_ATTRIBUTES="service.namespace=commerce,deployment.environment.name=production,service.version=1.2.3" ``` Supply `INTERFERE_TELEMETRY_KEY` through your secret manager. `%20` encodes the space after `Bearer` in the exporter header setting. These variables configure exporters that your application initializes; they do not install instrumentation or enable every signal. Configure the trace, log, and metric exporters you need through your language's [OpenTelemetry setup](https://opentelemetry.io/docs/languages/), and flush buffered telemetry during graceful shutdown. Signal-specific settings override the shared settings. For example, `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` must contain the full URL ending in `/drain/v1/traces`. Check for existing endpoint and header overrides when changing destinations. See [OTLP exporter configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/). Use one export path per signal to avoid sending the same records both directly and through a Collector. For Next.js apps that already use the Interfere SDK, see [OpenTelemetry composition](/docs/sdk/opentelemetry). ## Node.js Node.js services, workers, and scripts send telemetry through the OpenTelemetry Node.js SDK. Set the exporter environment variables from [Export directly from a service](#export-directly-from-a-service), then install the SDK, auto-instrumentations, and the OTLP/HTTP protobuf trace exporter: ```bash npm theme={null} npm install @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` ```bash pnpm theme={null} pnpm add @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` ```bash Yarn theme={null} yarn add @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` ```bash Bun theme={null} bun add @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-proto ``` Create `instrumentation.mjs`: ```js instrumentation.mjs theme={null} import { NodeSDK } from "@opentelemetry/sdk-node"; import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node"; import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto"; export const sdk = new NodeSDK({ traceExporter: new OTLPTraceExporter(), instrumentations: [getNodeAutoInstrumentations()], }); sdk.start(); ``` Load this module before any application code so the instrumentations can patch the libraries your app imports. For a CommonJS build, preload it with `node --import ./instrumentation.mjs dist/main.js`. For an ESM build, also configure the [OpenTelemetry ESM loader hook](https://opentelemetry.io/docs/languages/js/getting-started/nodejs/). If your app already registers an OpenTelemetry provider, add the exporter to that provider instead of starting a second one. Await `sdk.shutdown()` in your application's graceful shutdown handler, after it stops accepting new work, so buffered spans flush before the process exits. For a short-lived script, await it before the script ends. Auto-instrumentation records request spans but does not report every error your code catches. Record caught exceptions on the active span and set its status to `ERROR`, creating a span when none is active: ```ts theme={null} import { SpanStatusCode, trace } from "@opentelemetry/api"; const tracer = trace.getTracer("checkout-api"); export function reportError(error: Error) { const active = trace.getActiveSpan(); const span = active ?? tracer.startSpan("application.error"); span.recordException(error); span.setStatus({ code: SpanStatusCode.ERROR }); if (!active) { span.end(); } } ``` To trace an operation of your own, use `tracer.startActiveSpan()` and end the span when the operation finishes. The trace exporter above sends traces only; configure log and metric exporters separately if you need those signals. > [!NOTE] > > `@interfere/node`, `@interfere/nest`, and `@interfere/elysia` are retired. Installed versions keep > sending data, and new setups use OpenTelemetry. When migrating, replace `withSpan` with > `tracer.startActiveSpan()`, replace `captureError` with `reportError`, and remove the retired > package once the service appears on the Services page. ## Identify services and deployments Set resource attributes in the application so a Collector forwarding multiple services retains each service's identity. | Attribute | Use | | - | - | | `service.name` | A stable service name, such as `checkout-api`. Include it so Interfere can discover the service. | | `service.namespace` | An optional grouping, such as `commerce`, that distinguishes services with the same name. | | `deployment.environment.name` | The deployment environment, such as `staging` or `production`. | | `service.version` | The deployed version or Git commit SHA, so you can identify which code produced the telemetry. | Keep the service name and namespace consistent across deployments. Each discovered service appears on the [Services](/docs/product/services) page. Discovery does not attach a service to an app or upload source maps. Services deployed as [Cloudflare Workers](/docs/integrations/cloudflare-workers) can be [linked to an app](/docs/product/services#link-a-service-to-an-app), which charts their traces on the app's **Overview** under **Linked OpenTelemetry services**. Logs and metrics from linked services are not charted yet. ## Verify ingestion Generate a request in your service, allow its exporter to flush, then check [Services](https://interfere.com/~/*/services) for the service name. Check the exporter or Collector logs for rejected records or connection errors. An HTTP `200` response can include OTLP partial-success details. Check those details before treating the entire batch as accepted. | Response | Check | | - | - | | `401` | The workspace key, its expiration, and the `org:telemetry:write` scope. | | `413` | Reduce the export batch size. | | `415` | Use `application/x-protobuf` or `application/json` with a valid OTLP payload. | | `503` | Retry with backoff, respecting `Retry-After` when present. | # Releases and source maps Source: https://interfere.com/docs/sdk/releases Connect runtime errors to the code and build that produced them. A release identifies a version of your code. Source maps let Interfere map compiled stack frames back to the original files and lines. ## Next.js and Vite builds The framework build plugins register releases and upload source maps. Set `INTERFERE_API_KEY` to an app secret key with `release:write` in the build environment. For Next.js, wrap your config with `withInterfere()`. The plugin enables production browser source maps when an API key is present, runs its release pipeline after production compilation, and removes maps after upload. For Vite, add `interfere()` and set `build.sourcemap: true`. The plugin uploads the generated maps during the build. Review the Interfere output in the build log. If release preparation fails, fix the reported key, source metadata, or upload error before relying on source-level investigations for that release. ## Use the same commit at build time and runtime The build plugins derive release identity from your commit SHA. They read CI metadata such as `VERCEL_GIT_COMMIT_SHA` or `GITHUB_SHA`, or use the local git checkout. If the build or deployed runtime has no git checkout, set `INTERFERE_SOURCE_ID` to the full commit SHA in both environments. A Docker build and its deployed container must identify the same commit. Redeploying the same commit does not create a new code version. Use [environment labels](/docs/sdk/configuration#environments) to distinguish production and staging traffic. ## Share source maps with other tools Only delete maps after every tool that needs them has uploaded them. Keep `withInterfere()` outermost when it owns the final cleanup step. To let a later uploader handle cleanup, disable Interfere's purge: ```ts next.config.ts theme={null} import { withInterfere } from "@interfere/next/config"; import type { NextConfig } from "next"; const config: NextConfig = {}; export default withInterfere({ sourceMaps: { purge: false } }, config); ``` When Interfere runs last, configure earlier uploaders to retain their maps. An existing `runAfterProductionCompile` hook runs before Interfere's pipeline. ## Custom build pipelines For Node.js and NestJS apps compiled with TypeScript, use the [example release publisher](/docs/examples/publish-release.mjs). It discovers adjacent JavaScript and `.map` files, adds matching debug IDs, registers the release, uploads maps in chunks, and finalizes the manifest. ### Install the build dependencies ```bash npm theme={null} npm install --save-dev @interfere/javascript @interfere/build @interfere/types ``` ```bash pnpm theme={null} pnpm add --save-dev @interfere/javascript @interfere/build @interfere/types ``` ```bash Yarn theme={null} yarn add --dev @interfere/javascript @interfere/build @interfere/types ``` ```bash Bun theme={null} bun add --dev @interfere/javascript @interfere/build @interfere/types ``` ### Emit source maps Merge these compiler options into your app's TypeScript configuration: ```json tsconfig.json theme={null} { "compilerOptions": { "sourceMap": true, "inlineSources": true } } ``` The example requires Node.js 20 or later and a Git checkout in CI. It handles flat version 3 maps next to `.js`, `.mjs`, or `.cjs` files, such as `dist/main.js` and `dist/main.js.map`. Use the framework plugins for Next.js and Vite builds. ### Publish before deploying Save [publish-release.mjs](/docs/examples/publish-release.mjs) as `scripts/publish-release.mjs` in your app. Set `INTERFERE_API_KEY` in your CI secret manager to an app secret key with `release:write`. Connect the app to its [GitHub repository](/docs/integrations/github). Run your existing build, then invoke the script with its output directory: ```bash theme={null} export INTERFERE_SOURCE_ID="$(git rev-parse HEAD)" node scripts/publish-release.mjs dist ``` The script prints `Published N source maps for rel_…` after the complete batch is accepted. A failure exits with a nonzero status; stop the deployment and fix the reported error before trying again. It adds debug IDs to the compiled JavaScript and maps. **Deploy the modified output**, and run any file hashing or artifact signing afterward. The script retains the maps so other uploaders can use them. Keep `.map` files out of publicly served assets unless you intend to publish your source code. Set `INTERFERE_SOURCE_ID` to the same commit SHA in the deployed Node.js or NestJS process, alongside `INTERFERE_PUBLIC_KEY`. Trigger a test error, then open its stack trace to check that frames resolve to your original TypeScript files. ### Other build systems The [release API reference](/docs/api-reference/releases/create-release) covers registration, upload sessions, ordered file chunks, and finalization. The example uses the [TypeScript Platform SDK](/docs/platform-sdk/typescript) and public build helpers for those operations. Adapt its file discovery and `bundler` value for another build system. ## Missing source code in a stack trace Check that the build uploaded maps successfully, the release uses the expected commit, and the deployed runtime has the same `INTERFERE_SOURCE_ID`. If another build tool deletes maps, move deletion after all upload steps. # Replay privacy Source: https://interfere.com/docs/sdk/replay-privacy Mask text and inputs, or exclude parts of a page from recording. This page applies to browser replay in Next.js, Vite + React, and TanStack Start. Configure the `InterfereProvider` from your installation guide. Replay records the page's DOM. Password inputs are masked by default. Configure additional masking before recording customer sessions. ## Mask input values Set `maskAllInputs: true` on the provider to mask all input values: ```tsx theme={null} {children} ``` To mask selected input types, use `maskInputOptions`, for example `{ email: true }`. ## Exclude content with classes | Class | Effect | | - | - | | `interfere-block` | Replaces the element with a placeholder of the same size | | `interfere-ignore` | Excludes keystrokes and input changes while leaving the element visible | | `interfere-mask` | Masks rendered text in the element and its children | ```tsx theme={null}
{paymentDetails}
{accountBalance} ``` `interfere-mask` applies to rendered text. Use input masking or `interfere-block` for input values. ## Selectors and custom masking The `plugins.replay` configuration accepts rrweb options including `maskTextSelector`, `blockSelector`, `ignoreSelector`, `maskInputFn`, `maskTextFn`, and `recordCanvas`. The Interfere privacy classes continue to apply alongside these options. ## Disable replay Set `plugins={{ replay: false }}` to disable recording, or control it with the [replay consent category](/docs/sdk/consent). Verify the result by opening a new [session replay](/docs/product/session-replay) after changing the configuration. Masking changes apply to new recordings. # TanStack Start Source: https://interfere.com/docs/sdk/tanstack-start Initialize browser and server capture in a Start app. Interfere uses TanStack Start's Vite build and request middleware to capture browser sessions and server requests. The React provider connects browser capture to your route tree, while trace metadata connects browser and server work. The server integration requires Node.js. Start by creating an [app](/docs/product/apps) in Interfere, and keep your existing router options and deployment adapter as you follow the steps below. ## Setup **1. Install and connect the build** ```bash npm theme={null} npm install @interfere/vite @interfere/react ``` ```bash pnpm theme={null} pnpm add @interfere/vite @interfere/react ``` ```bash Yarn theme={null} yarn add @interfere/vite @interfere/react ``` ```bash Bun theme={null} bun add @interfere/vite @interfere/react ``` Add the Interfere plugin to `vite.config.ts`. Keep your existing plugins, aliases, and deployment adapter. TanStack Start must precede the React plugin: ```ts vite.config.ts theme={null} import { interfere } from "@interfere/vite/plugin"; import { tanstackStart } from "@tanstack/react-start/plugin/vite"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({ build: { sourcemap: true }, plugins: [tanstackStart(), react(), interfere()], }); ``` **2. Set browser and server keys** Copy the keys from your [app](/docs/product/apps) into the build environment: ```env theme={null} VITE_INTERFERE_PUBLIC_KEY=YOUR_APP_PUBLIC_KEY INTERFERE_PUBLIC_KEY=YOUR_APP_PUBLIC_KEY INTERFERE_API_KEY=YOUR_APP_SECRET_KEY ``` Provide `INTERFERE_PUBLIC_KEY` to the server runtime too. Keep the secret key in the build environment. The server integration requires a Node.js runtime. The Cloudflare Workers deployment integration does not provide Node.js server instrumentation. **3. Initialize browser capture** Add `init()` to your router module, guarded so it runs only in the browser. Preserve your existing router options: ```tsx src/router.tsx theme={null} import { init } from "@interfere/vite/init"; import { createRouter } from "@tanstack/react-router"; import { routeTree } from "./routeTree.gen"; if (typeof window !== "undefined") { init(); } export const getRouter = () => createRouter({ routeTree, scrollRestoration: true }); ``` **4. Capture server requests** Add these request middleware entries to `src/start.ts`. Initialization runs before Interfere opens a span for the request. Keep any existing middleware in the array: ```ts src/start.ts theme={null} import { register } from "@interfere/vite/server"; import { interfereRequestMiddleware } from "@interfere/vite/tanstack-start"; import { createMiddleware, createStart } from "@tanstack/react-start"; const initializeInterfere = createMiddleware().server(async ({ next }) => { await register(); return next(); }); export const startInstance = createStart(() => ({ requestMiddleware: [initializeInterfere, interfereRequestMiddleware], })); ``` **5. Connect the root route** Add the provider around your root route's content and include `traceMeta()` in the head metadata. Preserve your existing document shell, styles, providers, and error boundaries. The example below shows where these additions fit. > [accordion] Root route example > > ```tsx src/routes/__root.tsx theme={null} > import { InterfereProvider } from "@interfere/vite/provider"; > import { traceMeta } from "@interfere/vite/tanstack-start"; > import { HeadContent, Outlet, Scripts, createRootRoute } from "@tanstack/react-router"; > > export const Route = createRootRoute({ > head: () => ({ > meta: [ > { charSet: "utf-8" }, > { name: "viewport", content: "width=device-width, initial-scale=1" }, > ...traceMeta(), > ], > }), > component: RootComponent, > }); > > function RootComponent() { > return ( > > > > > > > > > > > > ); > } > ``` Set [consent at browser initialization](/docs/sdk/consent) and review [replay masking](/docs/sdk/replay-privacy) before recording customer sessions. ## Verify capture Build and deploy to staging. Report a test error from an existing browser event handler, then from a server handler, to check both sides: ```ts Browser theme={null} import { capture } from "@interfere/vite/init"; capture(new Error("Interfere browser setup test")); ``` ```ts Server theme={null} import { captureError } from "@interfere/vite/server"; captureError(new Error("Interfere server setup test")); ``` Check the app's event chart for incoming traffic. Keep the server running long enough to send its telemetry, then remove the test calls. ## Next steps [User tracking](/docs/sdk/identity), review [configuration](/docs/sdk/configuration), or follow the [investigation walkthrough](/docs/product/problems) once a problem appears. # Vite Source: https://interfere.com/docs/sdk/vite Capture errors and sessions in a React app built with Vite. `@interfere/vite` captures browser errors and sessions from your React app. Its build plugin connects those events to a release and uploads source maps for readable stack traces. You need Vite 5 or later, React 19 or later, and Node.js 20 or later. For a server-rendered Start app, follow [TanStack Start](/docs/sdk/tanstack-start). ## Setup **1. Install the packages** ```bash npm theme={null} npm install @interfere/vite @interfere/react ``` ```bash pnpm theme={null} pnpm add @interfere/vite @interfere/react ``` ```bash Yarn theme={null} yarn add @interfere/vite @interfere/react ``` ```bash Bun theme={null} bun add @interfere/vite @interfere/react ``` **2. Set your keys** Copy the keys from your [app](/docs/product/apps) into the build environment: ```env theme={null} VITE_INTERFERE_PUBLIC_KEY=YOUR_APP_PUBLIC_KEY INTERFERE_API_KEY=YOUR_APP_SECRET_KEY ``` Only the public key gets a `VITE_` prefix. Prefixing the secret key would expose it in the browser bundle. **3. Connect your build** Enable source maps and add `interfere()` to your Vite plugins. Keep your other plugins and app configuration. ```ts vite.config.ts theme={null} import { interfere } from "@interfere/vite/plugin"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({ build: { sourcemap: true }, plugins: [react(), interfere()], }); ``` The plugin uploads source maps and registers the build's release. See [Releases and source maps](/docs/sdk/releases) for custom build environments. **4. Initialize and wrap your app** Call `init()` in your browser entry point, before React renders. ```tsx src/main.tsx theme={null} import { init } from "@interfere/vite/init"; import { InterfereProvider } from "@interfere/vite/provider"; import { createRoot } from "react-dom/client"; import App from "./App"; init(); createRoot(document.getElementById("root")!).render( , ); ``` Set [consent during initialization](/docs/sdk/consent) if capture must wait for a visitor’s choice. Review [replay masking](/docs/sdk/replay-privacy) before recording customer sessions. ## Verify capture After initialization, report a test error from an existing button or event handler in your staging app: ```ts theme={null} import { capture } from "@interfere/vite/init"; capture(new Error("Interfere setup test")); ``` Open your app's event chart to confirm that traffic arrives, then remove the test call. > [accordion] Run capture only in production > > The Vite browser SDK runs whenever it is initialized. To disable it during local development, use: > > ```ts theme={null} > init({ enabled: import.meta.env.PROD }); > ``` ## Next steps [User tracking](/docs/sdk/identity), configure [capture and environments](/docs/sdk/configuration), or [report handled errors](/docs/sdk/error-capture).