Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ const DEPENDENTS: Dependent[] = [
'NodeClient',
'NODE_VERSION',
'childProcessIntegration',
'launchDarklyIntegration',
'openFeatureIntegration',
'statsigIntegration',
'unleashIntegration',
'OpenFeatureIntegrationHook',
'buildLaunchDarklyFlagUsedHandler',
],
},
{
Expand All @@ -73,6 +79,12 @@ const DEPENDENTS: Dependent[] = [
ignoreExports: [
// Not needed for Serverless
'setupFastifyErrorHandler',
'launchDarklyIntegration',
'openFeatureIntegration',
'statsigIntegration',
'unleashIntegration',
'OpenFeatureIntegrationHook',
'buildLaunchDarklyFlagUsedHandler',
],
},
{
Expand All @@ -82,6 +94,12 @@ const DEPENDENTS: Dependent[] = [
ignoreExports: [
// Not needed for Serverless
'setupFastifyErrorHandler',
'launchDarklyIntegration',
'openFeatureIntegration',
'statsigIntegration',
'unleashIntegration',
'OpenFeatureIntegrationHook',
'buildLaunchDarklyFlagUsedHandler',
],
},
{
Expand Down
6 changes: 6 additions & 0 deletions packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ export {
NODE_VERSION,
featureFlagsIntegration,
type FeatureFlagsIntegration,
launchDarklyIntegration,
buildLaunchDarklyFlagUsedHandler,
openFeatureIntegration,
unleashIntegration,
statsigIntegration,
OpenFeatureIntegrationHook,
} from '@sentry/node';

export { init } from './server/sdk';
Expand Down
10 changes: 6 additions & 4 deletions packages/browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ export {
zodErrorsIntegration,
thirdPartyErrorFilterIntegration,
featureFlagsIntegration,
launchDarklyIntegration,
buildLaunchDarklyFlagUsedHandler,
openFeatureIntegration,
OpenFeatureIntegrationHook,
unleashIntegration,
statsigIntegration,
} from '@sentry/core';
export type { Span, FeatureFlagsIntegration } from '@sentry/core';
export { makeBrowserOfflineTransport } from './transports/offline';
export { browserProfilingIntegration } from './profiling/integration';
export { spotlightBrowserIntegration } from './integrations/spotlight';
export { browserSessionIntegration } from './integrations/browsersession';
export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler } from './integrations/featureFlags/launchdarkly';
export { openFeatureIntegration, OpenFeatureIntegrationHook } from './integrations/featureFlags/openfeature';
export { unleashIntegration } from './integrations/featureFlags/unleash';
export { statsigIntegration } from './integrations/featureFlags/statsig';
export { diagnoseSdkConnectivity } from './diagnose-sdk';
11 changes: 10 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,16 @@ export { supabaseIntegration, instrumentSupabaseClient } from './integrations/su
export { zodErrorsIntegration } from './integrations/zoderrors';
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
export { consoleIntegration } from './integrations/console';
export { featureFlagsIntegration, type FeatureFlagsIntegration } from './integrations/featureFlags';
export {
featureFlagsIntegration,
type FeatureFlagsIntegration,
launchDarklyIntegration,
buildLaunchDarklyFlagUsedHandler,
openFeatureIntegration,
OpenFeatureIntegrationHook,
unleashIntegration,
statsigIntegration,
} from './integrations/featureFlags';

export { profiler } from './profiling';
export { instrumentFetchRequest } from './fetch';
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/integrations/featureFlags/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export { featureFlagsIntegration, type FeatureFlagsIntegration } from './featureFlagsIntegration';
export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler } from './launchdarkly';
export { openFeatureIntegration, OpenFeatureIntegrationHook } from './openfeature';
export { unleashIntegration } from './unleash';
export { statsigIntegration } from './statsig';
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import type { Client, Event, EventHint, IntegrationFn } from '@sentry/core';
import type { Client } from '../../../client';
import { defineIntegration } from '../../../integration';
import type { Event, EventHint } from '../../../types-hoist/event';
import type { IntegrationFn } from '../../../types-hoist/integration';
import {
_INTERNAL_addFeatureFlagToActiveSpan,
_INTERNAL_copyFlagsFromScopeToEvent,
_INTERNAL_insertFlagToScope,
defineIntegration,
} from '@sentry/core';
} from '../../../utils/featureFlags';
import type { LDContext, LDEvaluationDetail, LDInspectionFlagUsedHandler } from './types';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import type { Client } from '../../../client';
import { defineIntegration } from '../../../integration';
import type { Event, EventHint } from '../../../types-hoist/event';
import type { IntegrationFn } from '../../../types-hoist/integration';
import {
_INTERNAL_addFeatureFlagToActiveSpan,
_INTERNAL_copyFlagsFromScopeToEvent,
_INTERNAL_insertFlagToScope,
} from '../../../utils/featureFlags';
import type { EvaluationDetails, HookContext, HookHints, JsonValue, OpenFeatureHook } from './types';

/**
* Sentry integration for capturing OpenFeature feature flag evaluations.
*
Expand All @@ -13,15 +24,6 @@
* OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook());
* ```
*/
import type { Client, Event, EventHint, IntegrationFn } from '@sentry/core';
import {
_INTERNAL_addFeatureFlagToActiveSpan,
_INTERNAL_copyFlagsFromScopeToEvent,
_INTERNAL_insertFlagToScope,
defineIntegration,
} from '@sentry/core';
import type { EvaluationDetails, HookContext, HookHints, JsonValue, OpenFeatureHook } from './types';

export const openFeatureIntegration = defineIntegration(() => {
return {
name: 'OpenFeature',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import type { Client, Event, EventHint, IntegrationFn } from '@sentry/core';
import type { Client } from '../../../client';
import { defineIntegration } from '../../../integration';
import type { Event, EventHint } from '../../../types-hoist/event';
import type { IntegrationFn } from '../../../types-hoist/integration';
import {
_INTERNAL_addFeatureFlagToActiveSpan,
_INTERNAL_copyFlagsFromScopeToEvent,
_INTERNAL_insertFlagToScope,
defineIntegration,
} from '@sentry/core';
} from '../../../utils/featureFlags';
import type { FeatureGate, StatsigClient } from './types';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import type { Client, Event, EventHint, IntegrationFn } from '@sentry/core';
import type { Client } from '../../../client';
import { DEBUG_BUILD } from '../../../debug-build';
import { defineIntegration } from '../../../integration';
import type { Event, EventHint } from '../../../types-hoist/event';
import type { IntegrationFn } from '../../../types-hoist/integration';
import {
_INTERNAL_addFeatureFlagToActiveSpan,
_INTERNAL_copyFlagsFromScopeToEvent,
_INTERNAL_insertFlagToScope,
defineIntegration,
fill,
logger,
} from '@sentry/core';
import { DEBUG_BUILD } from '../../../debug-build';
} from '../../../utils/featureFlags';
import { logger } from '../../../utils/logger';
import { fill } from '../../../utils/object';
import type { UnleashClient, UnleashClientClass } from './types';

type UnleashIntegrationOptions = {
Expand Down
6 changes: 6 additions & 0 deletions packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ export {
consoleIntegration,
wrapMcpServerWithSentry,
featureFlagsIntegration,
launchDarklyIntegration,
buildLaunchDarklyFlagUsedHandler,
openFeatureIntegration,
OpenFeatureIntegrationHook,
statsigIntegration,
unleashIntegration,
} from '@sentry/core';

export type {
Expand Down
Loading