Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core)!: Remove BAGGAGE_HEADER_NAME export #14785

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/migration/v8-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ It will be removed in a future major version.

- The `getNumberOfUrlSegments` method has been removed. There is no replacement.
- The `validSeverityLevels` export has been removed. There is no replacement.
- The `BAGGAGE_HEADER_NAME` export has been removed. There is no replacement.

### `@sentry/nestjs`

Expand Down
5 changes: 0 additions & 5 deletions packages/core/src/utils-hoist/baggage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { DEBUG_BUILD } from './debug-build';
import { isString } from './is';
import { logger } from './logger';

/**
* @deprecated Use a `"baggage"` string directly
*/
export const BAGGAGE_HEADER_NAME = 'baggage';

export const SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-';

export const SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/utils-hoist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ export {
} from './ratelimit';
export type { RateLimits } from './ratelimit';
export {
// eslint-disable-next-line deprecation/deprecation
BAGGAGE_HEADER_NAME,
MAX_BAGGAGE_STRING_LENGTH,
SENTRY_BAGGAGE_KEY_PREFIX,
SENTRY_BAGGAGE_KEY_PREFIX_REGEX,
Expand Down
5 changes: 0 additions & 5 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable max-lines */
import {
BAGGAGE_HEADER_NAME as BAGGAGE_HEADER_NAME_imported,
CONSOLE_LEVELS as CONSOLE_LEVELS_imported,
DEFAULT_RETRY_AFTER as DEFAULT_RETRY_AFTER_imported,
DEFAULT_USER_INCLUDES as DEFAULT_USER_INCLUDES_imported,
Expand Down Expand Up @@ -634,10 +633,6 @@ export const extractRequestData = extractRequestData_imported;
// eslint-disable-next-line deprecation/deprecation
export const addRequestDataToEvent = addRequestDataToEvent_imported;

/** @deprecated Import from `@sentry/core` instead. */
// eslint-disable-next-line deprecation/deprecation
export const BAGGAGE_HEADER_NAME = BAGGAGE_HEADER_NAME_imported;

/** @deprecated Import from `@sentry/core` instead. */
export const getSanitizedUrlString = getSanitizedUrlString_imported;

Expand Down
Loading