Skip to content

Commit 008de81

Browse files
fred3105nirga
andauthored
chore(dep): Update dependencies on instrumentation/openai (#322)
Co-authored-by: Nir Gazit <[email protected]>
1 parent 49b032a commit 008de81

File tree

24 files changed

+967
-567
lines changed

24 files changed

+967
-567
lines changed

package-lock.json

+897-497
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/instrumentation-anthropic/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"access": "public"
3838
},
3939
"dependencies": {
40-
"@opentelemetry/core": "^1.22.0",
41-
"@opentelemetry/instrumentation": "^0.49.0",
42-
"@opentelemetry/semantic-conventions": "^1.22.0",
40+
"@opentelemetry/core": "^1.25.0",
41+
"@opentelemetry/instrumentation": "^0.52.0",
42+
"@opentelemetry/semantic-conventions": "^1.25.0",
4343
"@traceloop/ai-semantic-conventions": "^0.8.0"
4444
},
4545
"devDependencies": {

packages/instrumentation-anthropic/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import type {
4747
} from "@anthropic-ai/sdk/resources/messages";
4848
import type { Stream } from "@anthropic-ai/sdk/streaming";
4949

50-
export class AnthropicInstrumentation extends InstrumentationBase<any> {
50+
export class AnthropicInstrumentation extends InstrumentationBase {
5151
protected declare _config: AnthropicInstrumentationConfig;
5252

5353
constructor(config: AnthropicInstrumentationConfig = {}) {
@@ -73,8 +73,8 @@ export class AnthropicInstrumentation extends InstrumentationBase<any> {
7373
);
7474
}
7575

76-
protected init(): InstrumentationModuleDefinition<any> {
77-
const module = new InstrumentationNodeModuleDefinition<any>(
76+
protected init(): InstrumentationModuleDefinition {
77+
const module = new InstrumentationNodeModuleDefinition(
7878
"@anthropic-ai/sdk",
7979
[">=0.9.1"],
8080
this.patch.bind(this),

packages/instrumentation-azure/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"access": "public"
3838
},
3939
"dependencies": {
40-
"@opentelemetry/core": "^1.22.0",
41-
"@opentelemetry/instrumentation": "^0.49.0",
42-
"@opentelemetry/semantic-conventions": "^1.22.0",
40+
"@opentelemetry/core": "^1.25.0",
41+
"@opentelemetry/instrumentation": "^0.52.0",
42+
"@opentelemetry/semantic-conventions": "^1.25.0",
4343
"@traceloop/ai-semantic-conventions": "^0.8.0"
4444
},
4545
"devDependencies": {

packages/instrumentation-azure/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import type {
4040
} from "@azure/openai";
4141
import { version } from "../package.json";
4242

43-
export class AzureOpenAIInstrumentation extends InstrumentationBase<any> {
43+
export class AzureOpenAIInstrumentation extends InstrumentationBase {
4444
protected declare _config: AzureOpenAIInstrumentationConfig;
4545

4646
constructor(config: AzureOpenAIInstrumentationConfig = {}) {
@@ -67,8 +67,8 @@ export class AzureOpenAIInstrumentation extends InstrumentationBase<any> {
6767
);
6868
}
6969

70-
protected init(): InstrumentationModuleDefinition<any> {
71-
const module = new InstrumentationNodeModuleDefinition<any>(
70+
protected init(): InstrumentationModuleDefinition {
71+
const module = new InstrumentationNodeModuleDefinition(
7272
"@azure/openai",
7373
[">=1.0.0-beta.1"],
7474
this.patch.bind(this),

packages/instrumentation-bedrock/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"access": "public"
3838
},
3939
"dependencies": {
40-
"@opentelemetry/core": "^1.22.0",
41-
"@opentelemetry/instrumentation": "^0.49.0",
42-
"@opentelemetry/semantic-conventions": "^1.22.0",
40+
"@opentelemetry/core": "^1.25.0",
41+
"@opentelemetry/instrumentation": "^0.52.0",
42+
"@opentelemetry/semantic-conventions": "^1.25.0",
4343
"@traceloop/ai-semantic-conventions": "^0.8.0"
4444
},
4545
"devDependencies": {

packages/instrumentation-bedrock/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
} from "@traceloop/ai-semantic-conventions";
3737
import { version } from "../package.json";
3838

39-
export class BedrockInstrumentation extends InstrumentationBase<any> {
39+
export class BedrockInstrumentation extends InstrumentationBase {
4040
protected declare _config: BedrockInstrumentationConfig;
4141

4242
constructor(config: BedrockInstrumentationConfig = {}) {
@@ -47,8 +47,8 @@ export class BedrockInstrumentation extends InstrumentationBase<any> {
4747
super.setConfig(config);
4848
}
4949

50-
protected init(): InstrumentationModuleDefinition<any> {
51-
const module = new InstrumentationNodeModuleDefinition<any>(
50+
protected init(): InstrumentationModuleDefinition {
51+
const module = new InstrumentationNodeModuleDefinition(
5252
"@aws-sdk/client-bedrock-runtime",
5353
[">=3.499.0"],
5454
this.wrap.bind(this),

packages/instrumentation-chromadb/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"access": "public"
3737
},
3838
"dependencies": {
39-
"@opentelemetry/core": "^1.8.0",
40-
"@opentelemetry/instrumentation": "^0.44.0",
41-
"@opentelemetry/semantic-conventions": "^1.22.0",
39+
"@opentelemetry/core": "^1.25.0",
40+
"@opentelemetry/instrumentation": "^0.52.0",
41+
"@opentelemetry/semantic-conventions": "^1.25.0",
4242
"@traceloop/ai-semantic-conventions": "^0.8.0"
4343
},
4444
"devDependencies": {

packages/instrumentation-chromadb/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
} from "@traceloop/ai-semantic-conventions";
3737
import { version } from "../package.json";
3838

39-
export class ChromaDBInstrumentation extends InstrumentationBase<any> {
39+
export class ChromaDBInstrumentation extends InstrumentationBase {
4040
protected declare _config: ChromaDBInstrumentationConfig;
4141

4242
constructor(config: ChromaDBInstrumentationConfig = {}) {
@@ -47,8 +47,8 @@ export class ChromaDBInstrumentation extends InstrumentationBase<any> {
4747
super.setConfig(config);
4848
}
4949

50-
protected init(): InstrumentationModuleDefinition<any> {
51-
const module = new InstrumentationNodeModuleDefinition<any>(
50+
protected init(): InstrumentationModuleDefinition {
51+
const module = new InstrumentationNodeModuleDefinition(
5252
"chromadb",
5353
["^1.8.1"],
5454
this.wrap.bind(this),

packages/instrumentation-cohere/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"access": "public"
3838
},
3939
"dependencies": {
40-
"@opentelemetry/core": "^1.22.0",
41-
"@opentelemetry/instrumentation": "^0.44.0",
42-
"@opentelemetry/semantic-conventions": "^1.22.0",
40+
"@opentelemetry/core": "^1.25.0",
41+
"@opentelemetry/instrumentation": "^0.52.0",
42+
"@opentelemetry/semantic-conventions": "^1.25.0",
4343
"@traceloop/ai-semantic-conventions": "^0.8.0"
4444
},
4545
"devDependencies": {

packages/instrumentation-cohere/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
import { version } from "../package.json";
3838

3939
type LLM_COMPLETION_TYPE = "chat" | "completion" | "rerank";
40-
export class CohereInstrumentation extends InstrumentationBase<any> {
40+
export class CohereInstrumentation extends InstrumentationBase {
4141
protected declare _config: CohereInstrumentationConfig;
4242

4343
constructor(config: CohereInstrumentationConfig = {}) {
@@ -48,8 +48,8 @@ export class CohereInstrumentation extends InstrumentationBase<any> {
4848
super.setConfig(config);
4949
}
5050

51-
protected init(): InstrumentationModuleDefinition<any> {
52-
const module = new InstrumentationNodeModuleDefinition<any>(
51+
protected init(): InstrumentationModuleDefinition {
52+
const module = new InstrumentationNodeModuleDefinition(
5353
"cohere-ai",
5454
[">=7.7.5"],
5555
this.wrap.bind(this),

packages/instrumentation-langchain/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"access": "public"
3838
},
3939
"dependencies": {
40-
"@opentelemetry/core": "^1.22.0",
41-
"@opentelemetry/instrumentation": "^0.49.0",
42-
"@opentelemetry/semantic-conventions": "^1.22.0",
40+
"@opentelemetry/core": "^1.25.0",
41+
"@opentelemetry/instrumentation": "^0.52.0",
42+
"@opentelemetry/semantic-conventions": "^1.25.0",
4343
"@traceloop/ai-semantic-conventions": "^0.8.0"
4444
},
4545
"devDependencies": {

packages/instrumentation-langchain/src/instrumentation.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import type * as AgentsModule from "langchain/agents";
2626
import type * as ToolsModule from "langchain/tools";
2727
import { version } from "../package.json";
2828

29-
export class LangChainInstrumentation extends InstrumentationBase<any> {
29+
export class LangChainInstrumentation extends InstrumentationBase {
3030
protected declare _config: LangChainInstrumentationConfig;
3131

3232
constructor(config: LangChainInstrumentationConfig = {}) {
@@ -56,20 +56,20 @@ export class LangChainInstrumentation extends InstrumentationBase<any> {
5656
}
5757
}
5858

59-
protected init(): InstrumentationModuleDefinition<any>[] {
60-
const chainModule = new InstrumentationNodeModuleDefinition<any>(
59+
protected init(): InstrumentationModuleDefinition[] {
60+
const chainModule = new InstrumentationNodeModuleDefinition(
6161
"langchain/chains.cjs",
6262
[">=0.1.7"],
6363
this.patchChainModule.bind(this),
6464
this.unpatchChainModule.bind(this),
6565
);
66-
const agentModule = new InstrumentationNodeModuleDefinition<any>(
66+
const agentModule = new InstrumentationNodeModuleDefinition(
6767
"langchain/agents.cjs",
6868
[">=0.1.7"],
6969
this.patchAgentModule.bind(this),
7070
this.unpatchAgentModule.bind(this),
7171
);
72-
const toolsModule = new InstrumentationNodeModuleDefinition<any>(
72+
const toolsModule = new InstrumentationNodeModuleDefinition(
7373
"langchain/tools.cjs",
7474
[">=0.1.7"],
7575
this.patchToolsModule.bind(this),

packages/instrumentation-llamaindex/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"access": "public"
3737
},
3838
"dependencies": {
39-
"@opentelemetry/core": "^1.22.0",
40-
"@opentelemetry/instrumentation": "^0.49.0",
41-
"@opentelemetry/semantic-conventions": "^1.22.0",
39+
"@opentelemetry/core": "^1.25.0",
40+
"@opentelemetry/instrumentation": "^0.52.0",
41+
"@opentelemetry/semantic-conventions": "^1.25.0",
4242
"@traceloop/ai-semantic-conventions": "^0.8.0",
4343
"lodash": "^4.17.21"
4444
},

packages/instrumentation-llamaindex/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import type {
3434
import { TraceloopSpanKindValues } from "@traceloop/ai-semantic-conventions";
3535
import { version } from "../package.json";
3636

37-
export class LlamaIndexInstrumentation extends InstrumentationBase<any> {
37+
export class LlamaIndexInstrumentation extends InstrumentationBase {
3838
protected declare _config: LlamaIndexInstrumentationConfig;
3939

4040
constructor(config: LlamaIndexInstrumentationConfig = {}) {
@@ -51,8 +51,8 @@ export class LlamaIndexInstrumentation extends InstrumentationBase<any> {
5151
this.patch(module);
5252
}
5353

54-
protected init(): InstrumentationModuleDefinition<any> {
55-
const module = new InstrumentationNodeModuleDefinition<any>(
54+
protected init(): InstrumentationModuleDefinition {
55+
const module = new InstrumentationNodeModuleDefinition(
5656
"llamaindex",
5757
[">=0.1.0"],
5858
this.patch.bind(this),

packages/instrumentation-openai/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
"access": "public"
3737
},
3838
"dependencies": {
39-
"@opentelemetry/core": "^1.22.0",
40-
"@opentelemetry/instrumentation": "^0.49.0",
41-
"@opentelemetry/semantic-conventions": "^1.22.0",
39+
"@opentelemetry/core": "^1.25.0",
40+
"@opentelemetry/instrumentation": "^0.52.0",
41+
"@opentelemetry/semantic-conventions": "^1.25.0",
4242
"@traceloop/ai-semantic-conventions": "^0.8.0",
43-
"js-tiktoken": "^1.0.11"
43+
"js-tiktoken": "^1.0.12"
4444
},
4545
"devDependencies": {
4646
"@pollyjs/adapter-node-http": "^6.0.6",
4747
"@pollyjs/core": "^6.0.6",
4848
"@pollyjs/persister-fs": "^6.0.6",
4949
"@types/mocha": "^10.0.6",
50-
"mocha": "^10.2.0",
51-
"openai": "^4.38.3",
50+
"mocha": "^10.4.0",
51+
"openai": "^4.51.0",
5252
"ts-mocha": "^10.0.0"
5353
},
5454
"homepage": "https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-openai",

packages/instrumentation-openai/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import type { Stream } from "openai/streaming";
4747
import { version } from "../package.json";
4848
import { encodingForModel, TiktokenModel, Tiktoken } from "js-tiktoken";
4949

50-
export class OpenAIInstrumentation extends InstrumentationBase<any> {
50+
export class OpenAIInstrumentation extends InstrumentationBase {
5151
protected declare _config: OpenAIInstrumentationConfig;
5252

5353
constructor(config: OpenAIInstrumentationConfig = {}) {
@@ -87,8 +87,8 @@ export class OpenAIInstrumentation extends InstrumentationBase<any> {
8787
}
8888
}
8989

90-
protected init(): InstrumentationModuleDefinition<any> {
91-
const module = new InstrumentationNodeModuleDefinition<any>(
90+
protected init(): InstrumentationModuleDefinition {
91+
const module = new InstrumentationNodeModuleDefinition(
9292
"openai",
9393
[">=3.1.0 <5"],
9494
this.patch.bind(this),

packages/instrumentation-pinecone/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"access": "public"
3838
},
3939
"dependencies": {
40-
"@opentelemetry/core": "^1.22.0",
41-
"@opentelemetry/instrumentation": "^0.49.0",
42-
"@opentelemetry/semantic-conventions": "^1.22.0",
40+
"@opentelemetry/core": "^1.25.0",
41+
"@opentelemetry/instrumentation": "^0.52.0",
42+
"@opentelemetry/semantic-conventions": "^1.25.0",
4343
"@traceloop/ai-semantic-conventions": "^0.8.0"
4444
},
4545
"devDependencies": {

packages/instrumentation-pinecone/src/instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
import { version } from "../package.json";
3030
import { PineconeInstrumentationConfig } from "./types";
3131

32-
export class PineconeInstrumentation extends InstrumentationBase<any> {
32+
export class PineconeInstrumentation extends InstrumentationBase {
3333
constructor(config: PineconeInstrumentationConfig = {}) {
3434
super("@traceloop/instrumentation-pinecone", version, config);
3535
}
@@ -42,8 +42,8 @@ export class PineconeInstrumentation extends InstrumentationBase<any> {
4242
this.patch(module);
4343
}
4444

45-
protected init(): InstrumentationModuleDefinition<any> {
46-
const module = new InstrumentationNodeModuleDefinition<any>(
45+
protected init(): InstrumentationModuleDefinition {
46+
const module = new InstrumentationNodeModuleDefinition(
4747
"@pinecone-database/pinecone",
4848
[">=2.0.1"],
4949
this.patch.bind(this),

packages/instrumentation-vertexai/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"access": "public"
3737
},
3838
"dependencies": {
39-
"@opentelemetry/core": "^1.22.0",
40-
"@opentelemetry/instrumentation": "^0.49.0",
41-
"@opentelemetry/semantic-conventions": "^1.22.0",
39+
"@opentelemetry/core": "^1.25.0",
40+
"@opentelemetry/instrumentation": "^0.52.0",
41+
"@opentelemetry/semantic-conventions": "^1.25.0",
4242
"@traceloop/ai-semantic-conventions": "^0.8.0"
4343
},
4444
"devDependencies": {

packages/instrumentation-vertexai/src/aiplatform-instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import type * as aiplatform from "@google-cloud/aiplatform";
3636
import type { CallOptions, Callback } from "google-gax";
3737
import { version } from "../package.json";
3838

39-
export class AIPlatformInstrumentation extends InstrumentationBase<any> {
39+
export class AIPlatformInstrumentation extends InstrumentationBase {
4040
protected declare _config: AIPlatformInstrumentationConfig;
4141

4242
constructor(config: AIPlatformInstrumentationConfig = {}) {
@@ -47,8 +47,8 @@ export class AIPlatformInstrumentation extends InstrumentationBase<any> {
4747
super.setConfig(config);
4848
}
4949

50-
protected init(): InstrumentationModuleDefinition<any> {
51-
const aiPlatformModule = new InstrumentationNodeModuleDefinition<any>(
50+
protected init(): InstrumentationModuleDefinition {
51+
const aiPlatformModule = new InstrumentationNodeModuleDefinition(
5252
"@google-cloud/aiplatform",
5353
[">=3.10.0"],
5454
this.wrap.bind(this),

packages/instrumentation-vertexai/src/vertexai-instrumentation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
import type * as vertexAI from "@google-cloud/vertexai";
3636
import { version } from "../package.json";
3737

38-
export class VertexAIInstrumentation extends InstrumentationBase<any> {
38+
export class VertexAIInstrumentation extends InstrumentationBase {
3939
protected declare _config: VertexAIInstrumentationConfig;
4040

4141
constructor(config: VertexAIInstrumentationConfig = {}) {
@@ -46,8 +46,8 @@ export class VertexAIInstrumentation extends InstrumentationBase<any> {
4646
super.setConfig(config);
4747
}
4848

49-
protected init(): InstrumentationModuleDefinition<any> {
50-
const vertexAIModule = new InstrumentationNodeModuleDefinition<any>(
49+
protected init(): InstrumentationModuleDefinition {
50+
const vertexAIModule = new InstrumentationNodeModuleDefinition(
5151
"@google-cloud/vertexai",
5252
[">=1.1.0"],
5353
this.wrap.bind(this),

packages/sample-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"cohere-ai": "^7.7.5",
4444
"langchain": "^0.1.7",
4545
"llamaindex": "^0.1.16",
46-
"openai": "^4.28.4",
46+
"openai": "^4.51.0",
4747
"chromadb": "^1.8.1"
4848
},
4949
"private": true,

packages/traceloop-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"esbuild": "^0.20.1",
7878
"langchain": "^0.1.7",
7979
"llamaindex": "^0.1.16",
80-
"openai": "^4.12.4",
80+
"openai": "^4.51.0",
8181
"ts-mocha": "^10.0.0"
8282
}
8383
}

0 commit comments

Comments
 (0)