Skip to content

Commit c4b031c

Browse files
nicohrubecclaude
andcommitted
feat(core)!: Remove deprecated instrumentLangGraph alias
Removes the `instrumentLangGraph` alias that was deprecated in favor of `instrumentStateGraph`. This is a breaking change and applies to v11 only; it is not backported to v10. Ref #20584 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d285233 commit c4b031c

13 files changed

Lines changed: 0 additions & 35 deletions

File tree

packages/astro/src/index.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ export {
155155
instrumentGoogleGenAIClient,
156156
instrumentLangChainEmbeddings,
157157
instrumentStateGraph,
158-
// eslint-disable-next-line typescript/no-deprecated
159-
instrumentLangGraph,
160158
instrumentStateGraphCompile,
161159
zodErrorsIntegration,
162160
profiler,

packages/aws-serverless/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ export {
137137
instrumentAnthropicAiClient,
138138
instrumentGoogleGenAIClient,
139139
instrumentStateGraph,
140-
// eslint-disable-next-line typescript/no-deprecated
141-
instrumentLangGraph,
142140
instrumentStateGraphCompile,
143141
zodErrorsIntegration,
144142
profiler,

packages/bun/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ export {
155155
instrumentAnthropicAiClient,
156156
instrumentGoogleGenAIClient,
157157
instrumentStateGraph,
158-
// eslint-disable-next-line typescript/no-deprecated
159-
instrumentLangGraph,
160158
instrumentStateGraphCompile,
161159
zodErrorsIntegration,
162160
profiler,

packages/cloudflare/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ export {
113113
withStreamedSpan,
114114
spanStreamingIntegration,
115115
instrumentStateGraph,
116-
// eslint-disable-next-line typescript/no-deprecated
117-
instrumentLangGraph,
118116
instrumentCreateReactAgent,
119117
} from '@sentry/core';
120118

packages/core/src/server-exports.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ export {
102102
instrumentStateGraphCompile,
103103
instrumentCreateReactAgent,
104104
instrumentStateGraph,
105-
// eslint-disable-next-line typescript/no-deprecated
106-
instrumentLangGraph,
107105
instrumentCompiledGraphInvoke,
108106
_INTERNAL_getLangGraphCreateAgentSpanOptions,
109107
} from './tracing/langgraph';

packages/core/src/tracing/langgraph/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,3 @@ export function instrumentStateGraph<T extends { compile: (...args: any[]) => an
349349

350350
return stateGraph;
351351
}
352-
353-
/**
354-
* Directly instruments a StateGraph instance to add tracing spans.
355-
*
356-
* @deprecated This function was renamed and will be removed in a future major version.
357-
* Use `instrumentStateGraph` instead.
358-
*/
359-
export const instrumentLangGraph = instrumentStateGraph;

packages/core/test/lib/tracing/langgraph.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { describe, expect, it } from 'vitest';
22
import {
33
instrumentCreateReactAgent,
4-
instrumentLangGraph,
54
instrumentStateGraph,
65
instrumentStateGraphCompile,
76
} from '../../../src/tracing/langgraph';
@@ -32,8 +31,4 @@ describe('instrumentStateGraph', () => {
3231
expect(result).toBe(stateGraph);
3332
expect(stateGraph.compile).not.toBe(originalCompile);
3433
});
35-
36-
it('exposes instrumentLangGraph as a deprecated alias for instrumentStateGraph', () => {
37-
expect(instrumentLangGraph).toBe(instrumentStateGraph);
38-
});
3934
});

packages/elysia/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ export {
133133
instrumentAnthropicAiClient,
134134
instrumentGoogleGenAIClient,
135135
instrumentStateGraph,
136-
// eslint-disable-next-line typescript/no-deprecated
137-
instrumentLangGraph,
138136
instrumentStateGraphCompile,
139137
zodErrorsIntegration,
140138
profiler,

packages/google-cloud-serverless/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export {
135135
instrumentAnthropicAiClient,
136136
instrumentGoogleGenAIClient,
137137
instrumentStateGraph,
138-
// eslint-disable-next-line typescript/no-deprecated
139-
instrumentLangGraph,
140138
instrumentStateGraphCompile,
141139
zodErrorsIntegration,
142140
profiler,

packages/node/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ export {
150150
createLangChainCallbackHandler,
151151
instrumentLangChainEmbeddings,
152152
instrumentStateGraph,
153-
// eslint-disable-next-line typescript/no-deprecated
154-
instrumentLangGraph,
155153
instrumentStateGraphCompile,
156154
} from '@sentry/core';
157155

0 commit comments

Comments
 (0)