Skip to content

Commit 84760c6

Browse files
committed
lint+delete dead code
1 parent 528fffc commit 84760c6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { extractModelMetadata, extractTokenUsageFromMetadata, extractToolCalls }
2424
* - Create a `gen_ai.create_agent` span when compile() is called
2525
* - Automatically wrap the invoke() method on the returned compiled graph
2626
*
27-
* Uses a Proxy to preserve the original function's properties
2827
*/
2928
export function instrumentStateGraphCompile(
3029
originalCompile: (...args: unknown[]) => CompiledGraph,
@@ -73,7 +72,6 @@ export function instrumentStateGraphCompile(
7372
* Instruments CompiledGraph's invoke method to create spans for agent invocation
7473
*
7574
* Creates a `gen_ai.invoke_agent` span when invoke() is called
76-
* Uses a Proxy to preserve the original function's properties
7775
*/
7876
function instrumentCompiledGraphInvoke(
7977
originalInvoke: (...args: unknown[]) => Promise<unknown>,

packages/nextjs/src/config/webpack.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ export function constructWebpackConfigFunction({
9393
rawNewConfig = userNextConfig.webpack(rawNewConfig, buildContext);
9494
}
9595

96-
// rawConfig.externals = ['openai']
97-
9896
// This mutates `rawNewConfig` in place, but also returns it in order to switch its type to one in which
9997
// `newConfig.module.rules` is required, so we don't have to keep asserting its existence
10098
const newConfig = setUpModuleRules(rawNewConfig);

packages/node/src/integrations/tracing/langgraph/instrumentation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ export class SentryLangGraphInstrumentation extends InstrumentationBase<LangGrap
3939
exports => exports,
4040
[
4141
new InstrumentationNodeModuleFile(
42+
/**
43+
* In CJS, LangGraph packages re-export from dist/index.cjs files.
44+
* Patching only the root module sometimes misses the real implementation or
45+
* gets overwritten when that file is loaded. We add a file-level patch so that
46+
* _patch runs again on the concrete implementation
47+
*/
4248
'@langchain/langgraph/dist/index.cjs',
4349
supportedVersions,
4450
this._patch.bind(this),

0 commit comments

Comments
 (0)