Skip to content
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

## Unreleased

### Changes

- Expose `instrumentStateGraph` for manual LangGraph instrumentation ([#6520](https://github.com/getsentry/sentry-react-native/pull/6520))
- `instrumentLangGraph` was renamed to `instrumentStateGraph` in the JavaScript SDK and is now deprecated. It stays exported for backwards compatibility and will be removed in the next major version.

### Internal

- Migrate from `@sentry/babel-plugin-component-annotate` to `@sentry/bundler-plugins/babel-plugin` ([#6501](https://github.com/getsentry/sentry-react-native/pull/6501))
Expand Down
3 changes: 3 additions & 0 deletions packages/core/etc/sentry-react-native.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import { InstrumentedMethod } from '@sentry/core';
import { instrumentGoogleGenAIClient } from '@sentry/core';
import { instrumentLangGraph } from '@sentry/core';
import { instrumentOpenAiClient } from '@sentry/core';
import { instrumentStateGraph } from '@sentry/core';
import { instrumentStateGraphCompile } from '@sentry/core';
import { Integration } from '@sentry/core';
import { LangChainIntegration } from '@sentry/core';
Expand Down Expand Up @@ -465,6 +466,8 @@ export { instrumentLangGraph }

export { instrumentOpenAiClient }

export { instrumentStateGraph }

export { instrumentStateGraphCompile }

export { LangChainIntegration }
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ export {
instrumentAnthropicAiClient,
instrumentGoogleGenAIClient,
createLangChainCallbackHandler,
instrumentLangGraph,
instrumentStateGraph,
instrumentStateGraphCompile,
addConsoleInstrumentationFilter,
} from '@sentry/core';

/** @deprecated Use `instrumentStateGraph` instead. `instrumentLangGraph` will be removed in a future major version. */
export { instrumentLangGraph } from '@sentry/core';

export type {
OpenAiClient,
OpenAiOptions,
Expand Down
5 changes: 5 additions & 0 deletions packages/core/test/aiExports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ describe('AI SDK manual instrumentation re-exports', () => {
'instrumentAnthropicAiClient',
'instrumentGoogleGenAIClient',
'createLangChainCallbackHandler',
'instrumentStateGraph',
'instrumentLangGraph',
'instrumentStateGraphCompile',
])('re-exports %s from @sentry/core', name => {
expect(typeof (Sentry as Record<string, unknown>)[name]).toBe('function');
});

test('deprecated instrumentLangGraph is an alias of instrumentStateGraph', () => {
expect(Sentry.instrumentLangGraph).toBe(Sentry.instrumentStateGraph);
});
});
Loading