Blyp Docs

Sentry

Use connectors.sentry when you want Blyp logs forwarded into Sentry Logs.

Config

export default {
  connectors: {
    sentry: {
      enabled: true,
      mode: "auto",
      dsn: process.env.SENTRY_DSN,
      environment: process.env.NODE_ENV,
      release: "2026.03.11",
    },
  },
};

Config fields

Automatic server forwarding

When mode: "auto" is enabled, Blyp server logs and structured logs are forwarded into Sentry automatically.

If Sentry was already initialized by the app, Blyp reuses the existing client instead of replacing it.

In auto mode, Blyp log lines appear in Sentry Logs. error and critical logs carry the same structured context, which makes the linked exception or log entry easier to inspect.

Manual APIs

import {
  createSentryLogger,
  createStructuredSentryLogger,
} from "@blyp/core/sentry";

createSentryLogger().info("manual sentry log");

const structured = createStructuredSentryLogger("checkout", {
  orderId: "ord_123",
});

structured.info("cart loaded");
structured.emit({ status: 200 });

Browser and Expo forwarding

const browserLogger = createClientLogger({
  endpoint: "/inngest",
  connector: "sentry",
});
const expoLogger = createExpoLogger({
  endpoint: "https://api.example.com/inngest",
  connector: "sentry",
});

Browser and Expo still send logs to Blyp first. Blyp forwards to Sentry only when the server connector is configured.