Skip to content

Commit 999bd70

Browse files
authored
feat(instrumentation-langchain): Migrate langchain semantic conventions to 1.40 (#920)
1 parent 0b94cce commit 999bd70

File tree

8 files changed

+1974
-879
lines changed

8 files changed

+1974
-879
lines changed

packages/instrumentation-langchain/package.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"author": "Traceloop",
2323
"license": "Apache-2.0",
2424
"engines": {
25-
"node": ">=14"
25+
"node": ">=20"
2626
},
2727
"files": [
2828
"dist/**/*.js",
@@ -37,18 +37,27 @@
3737
"publishConfig": {
3838
"access": "public"
3939
},
40+
"peerDependencies": {
41+
"@langchain/core": ">=1.0.0 <2.0.0"
42+
},
43+
"peerDependenciesMeta": {
44+
"@langchain/core": {
45+
"optional": false
46+
}
47+
},
4048
"dependencies": {
41-
"@langchain/core": "^0.3.80",
49+
"@langchain/core": ">=1.0.0 <2.0.0",
4250
"@opentelemetry/api": "^1.9.0",
4351
"@opentelemetry/core": "^2.0.1",
4452
"@opentelemetry/instrumentation": "^0.203.0",
45-
"@opentelemetry/semantic-conventions": "^1.38.0",
53+
"@opentelemetry/semantic-conventions": "^1.40.0",
4654
"@traceloop/ai-semantic-conventions": "workspace:*",
4755
"tslib": "^2.8.1"
4856
},
4957
"devDependencies": {
50-
"@langchain/community": "^0.3.59",
51-
"@langchain/openai": "^0.6.2",
58+
"@langchain/core": "^1.0.0",
59+
"@langchain/community": "^1.0.0",
60+
"@langchain/openai": "^1.0.0",
5261
"@opentelemetry/context-async-hooks": "^2.0.1",
5362
"@opentelemetry/sdk-trace-node": "^2.0.1",
5463
"@pollyjs/adapter-fetch": "^6.0.6",
@@ -58,7 +67,9 @@
5867
"@traceloop/instrumentation-bedrock": "workspace:*",
5968
"@types/mocha": "^10.0.10",
6069
"@types/node": "^24.0.15",
61-
"langchain": "^0.3.37",
70+
"@langchain/classic": "^1.0.0",
71+
"@langchain/textsplitters": "^1.0.0",
72+
"langchain": "^1.0.0",
6273
"mocha": "^11.7.1",
6374
"ts-mocha": "^11.1.0"
6475
},

0 commit comments

Comments
 (0)