You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(astro): Deprecate passing runtime config to astro integration (#16839)
Closes#16837
This should not break anything, I actually added a test to verify
injecting this works as expected. We now simply console.warn when some
runtime config is passed in the astro integration. Also, no more type
completion exists for these, but they are still accepted via
`Record<string, unknown>`.
`[Sentry] You passed in additional options (${otherOptionsKeys.join(
43
+
', ',
44
+
)}) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your \`sentry.client.config.(js|ts)\` or \`sentry.server.config.(js|ts)\` files.`,
* @deprecated Use the `environment` option in your runtime-specific Sentry.init() call in sentry.client.config.(js|ts) or sentry.server.config.(js|ts) instead.
195
-
*/
196
-
environment?: string;
197
-
/**
198
-
* @deprecated Use the `release` option in your runtime-specific Sentry.init() call in sentry.client.config.(js|ts) or sentry.server.config.(js|ts) instead.
199
-
*/
200
-
release?: string;
201
-
/**
202
-
* @deprecated Use the `dsn` option in your runtime-specific Sentry.init() call in sentry.client.config.(js|ts) or sentry.server.config.(js|ts) instead.
203
-
*/
204
-
dsn?: string;
205
-
/**
206
-
* @deprecated Use the `sampleRate` option in your runtime-specific Sentry.init() call in sentry.client.config.(js|ts) or sentry.server.config.(js|ts) instead.
207
-
*/
208
-
sampleRate?: number;
209
-
/**
210
-
* @deprecated Use the `tracesSampleRate` option in your runtime-specific Sentry.init() call in sentry.client.config.(js|ts) or sentry.server.config.(js|ts) instead.
211
-
*/
212
-
tracesSampleRate?: number;
213
-
/**
214
-
* @deprecated Use the `replaysSessionSampleRate` option in your Sentry.init() call in sentry.client.config.(js|ts) instead.
215
-
*/
216
-
replaysSessionSampleRate?: number;
217
-
/**
218
-
* @deprecated Use the `replaysOnErrorSampleRate` option in your Sentry.init() call in sentry.client.config.(js|ts) instead.
219
-
*/
220
-
replaysOnErrorSampleRate?: number;
221
-
};
186
+
/**
187
+
* We accept aribtrary options that are passed through to the Sentry SDK.
188
+
* This is not recommended and will stop working in a future version.
189
+
* Note: Not all options are actually passed through, only a select subset:
'[Sentry] You passed in additional options (environment, release, dsn) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your `sentry.client.config.(js|ts)` or `sentry.server.config.(js|ts)` files.',
0 commit comments