autotel-cli 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1681,12 +1681,12 @@ const drizzle = {
|
|
|
1681
1681
|
//#endregion
|
|
1682
1682
|
//#region src/presets/plugins/sentry.ts
|
|
1683
1683
|
/**
|
|
1684
|
-
* Sentry preset — wires Sentry as the OTLP destination
|
|
1684
|
+
* Sentry preset — wires Sentry as the OTLP destination.
|
|
1685
1685
|
*
|
|
1686
|
-
* Uses `sentryOtlpConfig(DSN)` to build endpoint/headers from the user's DSN
|
|
1687
|
-
*
|
|
1688
|
-
*
|
|
1689
|
-
*
|
|
1686
|
+
* Uses `sentryOtlpConfig(DSN)` to build endpoint/headers from the user's DSN.
|
|
1687
|
+
* Sentry's own OpenTelemetry setup is skipped (`skipOpenTelemetrySetup: true`)
|
|
1688
|
+
* — autotel owns the OTel side. Sentry still links captured errors to the
|
|
1689
|
+
* active span itself, so nothing here does that.
|
|
1690
1690
|
*/
|
|
1691
1691
|
const sentry = {
|
|
1692
1692
|
name: "Sentry",
|
|
@@ -1713,19 +1713,18 @@ const sentry = {
|
|
|
1713
1713
|
default: "* as Sentry"
|
|
1714
1714
|
}, {
|
|
1715
1715
|
source: "autotel-sentry",
|
|
1716
|
-
specifiers: ["sentryOtlpConfig"
|
|
1716
|
+
specifiers: ["sentryOtlpConfig"]
|
|
1717
1717
|
}],
|
|
1718
1718
|
configBlock: {
|
|
1719
1719
|
type: "plugin",
|
|
1720
1720
|
code: `// Sentry OTLP setup
|
|
1721
1721
|
const sentryConfig = sentryOtlpConfig(process.env.SENTRY_DSN!);
|
|
1722
|
-
Sentry.init({ dsn: sentryConfig.dsn, skipOpenTelemetrySetup: true })
|
|
1723
|
-
linkSentryErrors(Sentry);`,
|
|
1722
|
+
Sentry.init({ dsn: sentryConfig.dsn, skipOpenTelemetrySetup: true });`,
|
|
1724
1723
|
section: "PLUGIN_INIT"
|
|
1725
1724
|
},
|
|
1726
1725
|
nextSteps: [
|
|
1727
1726
|
"Set SENTRY_DSN in .env (from Sentry → Settings → Projects → Client Keys)",
|
|
1728
|
-
"Captured Sentry errors
|
|
1727
|
+
"Captured Sentry errors are linked to the active OTel trace by @sentry/node itself",
|
|
1729
1728
|
"Pass sentryConfig.endpoint and sentryConfig.headers to init() if you want Sentry as the trace backend"
|
|
1730
1729
|
]
|
|
1731
1730
|
};
|