Skip to content

Commit e7be1a7

Browse files
authored
chore(deps)!: upgrade all deps to latest possible + deprecate azure instrumentation (#614)
1 parent e210404 commit e7be1a7

File tree

74 files changed

+8311
-6905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+8311
-6905
lines changed

package-lock.json

Lines changed: 5987 additions & 5141 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88
},
99
"private": true,
1010
"devDependencies": {
11-
"@commitlint/cli": "^19.6.1",
12-
"@commitlint/config-conventional": "^19.6.0",
13-
"@eslint/eslintrc": "^3.2.0",
14-
"@eslint/js": "^9.17.0",
15-
"@jscutlery/semver": "^5.5.1",
16-
"@nx/eslint-plugin": "^20.2.2",
17-
"@nx/js": "^20.2.2",
11+
"@commitlint/cli": "^19.8.1",
12+
"@commitlint/config-conventional": "^19.8.1",
13+
"@eslint/eslintrc": "^3.3.1",
14+
"@eslint/js": "^9.31.0",
15+
"@jscutlery/semver": "^5.7.1",
16+
"@nx/eslint-plugin": "^21.3.0",
17+
"@nx/js": "^21.3.0",
1818
"@nx/linter": "^19.8.4",
1919
"@rollup/plugin-json": "^6.1.0",
20-
"@rollup/plugin-typescript": "^12.1.2",
21-
"@typescript-eslint/eslint-plugin": "^8.18.1",
22-
"@typescript-eslint/parser": "^8.18.1",
20+
"@rollup/plugin-typescript": "^12.1.4",
21+
"@typescript-eslint/eslint-plugin": "^8.37.0",
22+
"@typescript-eslint/parser": "^8.37.0",
2323
"cz-conventional-changelog": "^3.3.0",
24-
"eslint": "^9.17.0",
24+
"eslint": "^9.31.0",
2525
"eslint-plugin-header": "^3.1.1",
2626
"eslint-plugin-node": "^11.1.0",
27-
"eslint-plugin-prettier": "^5.2.1",
28-
"globals": "^15.13.0",
27+
"eslint-plugin-prettier": "^5.5.3",
28+
"globals": "^16.3.0",
2929
"husky": "^9.1.7",
30-
"lerna": "^8.1.9",
31-
"nx": "^20.2.2",
32-
"prettier": "^3.4.2",
33-
"rollup": "^4.28.1",
34-
"rollup-plugin-dts": "^6.1.1",
35-
"typescript": "^5.7.2"
30+
"lerna": "^8.2.3",
31+
"nx": "^21.3.0",
32+
"prettier": "^3.6.2",
33+
"rollup": "^4.45.1",
34+
"rollup-plugin-dts": "^6.2.1",
35+
"typescript": "^5.8.3"
3636
},
3737
"workspaces": [
3838
"packages/*"

packages/instrumentation-anthropic/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,22 @@
3838
"access": "public"
3939
},
4040
"dependencies": {
41-
"@opentelemetry/core": "^1.29.0",
42-
"@opentelemetry/instrumentation": "^0.56.0",
43-
"@opentelemetry/semantic-conventions": "^1.28.0",
41+
"@opentelemetry/core": "^2.0.1",
42+
"@opentelemetry/instrumentation": "^0.203.0",
43+
"@opentelemetry/semantic-conventions": "^1.36.0",
4444
"@traceloop/ai-semantic-conventions": "^0.14.0",
4545
"tslib": "^2.8.1"
4646
},
4747
"devDependencies": {
48-
"@anthropic-ai/sdk": "^0.50.4",
48+
"@anthropic-ai/sdk": "^0.56.0",
49+
"@opentelemetry/context-async-hooks": "^2.0.1",
50+
"@opentelemetry/sdk-trace-node": "^2.0.1",
4951
"@pollyjs/adapter-fetch": "^6.0.7",
5052
"@pollyjs/adapter-node-http": "^6.0.6",
5153
"@pollyjs/core": "^6.0.6",
5254
"@pollyjs/persister-fs": "^6.0.6",
5355
"@types/mocha": "^10.0.10",
54-
"ts-mocha": "^10.0.0"
56+
"ts-mocha": "^11.1.0"
5557
},
5658
"homepage": "https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-anthropic"
5759
}

packages/instrumentation-anthropic/rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const bundle = (config) => ({
1212

1313
exports.default = [
1414
bundle({
15-
plugins: [typescript.default(), json.default()],
15+
plugins: [
16+
typescript.default({ exclude: ["test/**/*", "tests/**/*"] }),
17+
json.default(),
18+
],
1619
output: [
1720
{
1821
file: `${name}.js`,
@@ -27,7 +30,7 @@ exports.default = [
2730
],
2831
}),
2932
bundle({
30-
plugins: [dts.default()],
33+
plugins: [dts.default({ exclude: ["test/**/*", "tests/**/*"] })],
3134
output: {
3235
file: `${name}.d.ts`,
3336
format: "es",

packages/instrumentation-anthropic/src/instrumentation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export class AnthropicInstrumentation extends InstrumentationBase {
300300
cache_creation_input_tokens: 0,
301301
cache_read_input_tokens: 0,
302302
server_tool_use: null,
303+
service_tier: null,
303304
},
304305
content: [],
305306
};

packages/instrumentation-anthropic/test/instrumentation.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import * as assert from "assert";
1919
import { context } from "@opentelemetry/api";
2020
import { AsyncHooksContextManager } from "@opentelemetry/context-async-hooks";
2121
import {
22-
BasicTracerProvider,
22+
NodeTracerProvider,
2323
InMemorySpanExporter,
2424
SimpleSpanProcessor,
25-
} from "@opentelemetry/sdk-trace-base";
25+
} from "@opentelemetry/sdk-trace-node";
2626

2727
import * as AnthropicModule from "@anthropic-ai/sdk";
2828

@@ -41,7 +41,9 @@ Polly.register(FetchAdapter);
4141
Polly.register(FSPersister);
4242

4343
describe("Test Anthropic instrumentation", async function () {
44-
const provider = new BasicTracerProvider();
44+
const provider = new NodeTracerProvider({
45+
spanProcessors: [new SimpleSpanProcessor(memoryExporter)],
46+
});
4547
let instrumentation: AnthropicInstrumentation;
4648
let contextManager: AsyncHooksContextManager;
4749
let anthropic: AnthropicModule.Anthropic;
@@ -59,7 +61,7 @@ describe("Test Anthropic instrumentation", async function () {
5961
if (process.env.RECORD_MODE !== "NEW") {
6062
process.env.ANTHROPIC_API_KEY = "test-key";
6163
}
62-
provider.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
64+
// span processor is already set up during provider initialization
6365
instrumentation = new AnthropicInstrumentation();
6466
instrumentation.setTracerProvider(provider);
6567

packages/instrumentation-azure/.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/instrumentation-azure/CHANGELOG.md

Lines changed: 0 additions & 104 deletions
This file was deleted.

packages/instrumentation-azure/README.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

packages/instrumentation-azure/eslint.config.cjs

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)