Skip to content

Commit 2cc3c42

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 ed2098b commit 2cc3c42

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
@@ -159,8 +159,6 @@ export {
159159
instrumentGoogleGenAIClient,
160160
instrumentLangChainEmbeddings,
161161
instrumentStateGraph,
162-
// eslint-disable-next-line typescript/no-deprecated
163-
instrumentLangGraph,
164162
instrumentStateGraphCompile,
165163
zodErrorsIntegration,
166164
profiler,

packages/aws-serverless/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ export {
141141
instrumentAnthropicAiClient,
142142
instrumentGoogleGenAIClient,
143143
instrumentStateGraph,
144-
// eslint-disable-next-line typescript/no-deprecated
145-
instrumentLangGraph,
146144
instrumentStateGraphCompile,
147145
zodErrorsIntegration,
148146
profiler,

packages/bun/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ export {
159159
instrumentAnthropicAiClient,
160160
instrumentGoogleGenAIClient,
161161
instrumentStateGraph,
162-
// eslint-disable-next-line typescript/no-deprecated
163-
instrumentLangGraph,
164162
instrumentStateGraphCompile,
165163
zodErrorsIntegration,
166164
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
@@ -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/google-cloud-serverless/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ export {
139139
instrumentAnthropicAiClient,
140140
instrumentGoogleGenAIClient,
141141
instrumentStateGraph,
142-
// eslint-disable-next-line typescript/no-deprecated
143-
instrumentLangGraph,
144142
instrumentStateGraphCompile,
145143
zodErrorsIntegration,
146144
profiler,

packages/node/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ export {
152152
createLangChainCallbackHandler,
153153
instrumentLangChainEmbeddings,
154154
instrumentStateGraph,
155-
// eslint-disable-next-line typescript/no-deprecated
156-
instrumentLangGraph,
157155
instrumentStateGraphCompile,
158156
} from '@sentry/core';
159157

0 commit comments

Comments
 (0)