Skip to content

Commit ce56427

Browse files
Merge remote-tracking branch 'origin/kw-export-ip-address-helpers' into kw-export-ip-address-helpers
2 parents 3115cc4 + de769e7 commit ce56427

File tree

38 files changed

+61
-207
lines changed

38 files changed

+61
-207
lines changed

dev-packages/e2e-tests/test-applications/create-remix-app-express-legacy/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ installGlobals();
1313

1414
const ABORT_DELAY = 5_000;
1515

16-
export const handleError = Sentry.wrapRemixHandleError;
16+
export const handleError = Sentry.sentryHandleError;
1717

1818
export default function handleRequest(
1919
request: Request,

dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ installGlobals();
1313

1414
const ABORT_DELAY = 5_000;
1515

16-
export const handleError = Sentry.wrapRemixHandleError;
16+
export const handleError = Sentry.sentryHandleError;
1717

1818
export default function handleRequest(
1919
request: Request,

dev-packages/e2e-tests/test-applications/create-remix-app-express/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ installGlobals();
1313

1414
const ABORT_DELAY = 5_000;
1515

16-
export const handleError = Sentry.wrapRemixHandleError;
16+
export const handleError = Sentry.sentryHandleError;
1717

1818
export default function handleRequest(
1919
request: Request,

docs/migration/v8-to-v9.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The following outlines deprecations that were introduced in version 8 of the SDK
326326

327327
- **Passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will be handled differently in v9**
328328

329-
In v8, explicitly setting `tracesSampleRate` (even if it is set to `undefined`) will result in tracing being _enabled_, although no spans will be generated.
329+
In v8, explicitly setting `tracesSampleRate` (even if it is set to `undefined`) resulted in tracing being _enabled_, although no spans were generated.
330330

331331
```ts
332332
Sentry.init({
@@ -338,6 +338,8 @@ In v9, we will streamline this behavior so that passing `undefined` will result
338338

339339
If you are relying on `undefined` being passed in and having tracing enabled because of this, you should update your config to set e.g. `tracesSampleRate: 0` instead, which will also enable tracing in v9.
340340

341+
The `enableTracing` option was removed. In v9, to emulate `enableTracing: true`, set `tracesSampleRate: 1`. To emulate `enableTracing: false`, remove the `tracesSampleRate` and `tracesSampler` options (if configured).
342+
341343
- **The `autoSessionTracking` option is deprecated.**
342344

343345
To enable session tracking, it is recommended to unset `autoSessionTracking` and ensure that either, in browser environments the `browserSessionIntegration` is added, or in server environments the `httpIntegration` is added.

packages/astro/test/client/sdk.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ describe('Sentry client SDK', () => {
5252
it.each([
5353
['tracesSampleRate', { tracesSampleRate: 0 }],
5454
['tracesSampler', { tracesSampler: () => 1.0 }],
55-
['enableTracing', { enableTracing: true }],
5655
['no tracing option set', {}],
5756
])('adds browserTracingIntegration if tracing is enabled via %s', (_, tracingOptions) => {
5857
init({
@@ -72,7 +71,7 @@ describe('Sentry client SDK', () => {
7271

7372
init({
7473
dsn: 'https://[email protected]/1337',
75-
enableTracing: true,
74+
tracesSampleRate: 1,
7675
});
7776

7877
const integrationsToInit = browserInit.mock.calls[0]![0]?.defaultIntegrations || [];
@@ -90,7 +89,7 @@ describe('Sentry client SDK', () => {
9089
integrations: [
9190
browserTracingIntegration({ finalTimeout: 10, instrumentNavigation: false, instrumentPageLoad: false }),
9291
],
93-
enableTracing: true,
92+
tracesSampleRate: 1,
9493
});
9594

9695
const browserTracing = getClient<BrowserClient>()?.getIntegrationByName('BrowserTracing');

packages/browser-utils/src/metrics/web-vitals/types/base.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,6 @@ export type MetricWithAttribution =
104104
*/
105105
export type MetricRatingThresholds = [number, number];
106106

107-
/**
108-
* @deprecated Use metric-specific function types instead, such as:
109-
* `(metric: LCPMetric) => void`. If a single callback type is needed for
110-
* multiple metrics, use `(metric: MetricType) => void`.
111-
*/
112-
export interface ReportCallback {
113-
(metric: MetricType): void;
114-
}
115-
116107
export interface ReportOpts {
117108
reportAllChanges?: boolean;
118109
durationThreshold?: number;

packages/browser/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export {
3939
} from './tracing/browserTracingIntegration';
4040
export type { RequestInstrumentationOptions } from './tracing/request';
4141
export {
42-
// eslint-disable-next-line deprecation/deprecation
43-
addTracingExtensions,
4442
registerSpanErrorInstrumentation,
4543
getActiveSpan,
4644
getRootSpan,

packages/cloudflare/test/integrations/fetch.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ describe('WinterCGFetch instrumentation', () => {
2626

2727
client = new FakeClient({
2828
dsn: 'https://[email protected]/1337',
29-
enableTracing: true,
3029
tracesSampleRate: 1,
3130
integrations: [],
3231
transport: () => ({

packages/core/src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,11 +1111,13 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
11111111
/**
11121112
* @deprecated Use `Client` instead. This alias may be removed in a future major version.
11131113
*/
1114+
// TODO(v10): Remove
11141115
export type BaseClient = Client;
11151116

11161117
/**
11171118
* @deprecated Use `Client` instead. This alias may be removed in a future major version.
11181119
*/
1120+
// TODO(v10): Remove
11191121
export const BaseClient = Client;
11201122

11211123
/**

packages/core/src/fetch.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Client } from './client';
2-
import type { Scope } from './scope';
31
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes';
42
import { SPAN_STATUS_ERROR, setHttpStatus, startInactiveSpan } from './tracing';
53
import { SentryNonRecordingSpan } from './tracing/sentryNonRecordingSpan';
@@ -201,27 +199,6 @@ function _addTracingHeadersToFetchRequest(
201199
}
202200
}
203201

204-
/**
205-
* Adds sentry-trace and baggage headers to the various forms of fetch headers.
206-
*
207-
* @deprecated This function will not be exported anymore in v9.
208-
*/
209-
export function addTracingHeadersToFetchRequest(
210-
request: string | unknown,
211-
_client: Client | undefined,
212-
_scope: Scope | undefined,
213-
fetchOptionsObj: {
214-
headers?:
215-
| {
216-
[key: string]: string[] | string | undefined;
217-
}
218-
| PolymorphicRequestHeaders;
219-
},
220-
span?: Span,
221-
): PolymorphicRequestHeaders | undefined {
222-
return _addTracingHeadersToFetchRequest(request as Request, fetchOptionsObj, span);
223-
}
224-
225202
function getFullURL(url: string): string | undefined {
226203
try {
227204
const parsed = new URL(url);

0 commit comments

Comments
 (0)