Skip to content

Commit a095fbc

Browse files
authored
fix: use correct versions from package.json (#154)
1 parent 7304563 commit a095fbc

File tree

14 files changed

+46
-12
lines changed

14 files changed

+46
-12
lines changed

package-lock.json

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

packages/instrumentation-azure/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ import type {
3838
ChatRequestMessage,
3939
Completions,
4040
} from "@azure/openai";
41+
import { version } from "../package.json";
4142

4243
export class AzureOpenAIInstrumentation extends InstrumentationBase<any> {
4344
protected override _config!: AzureOpenAIInstrumentationConfig;
4445

4546
constructor(config: AzureOpenAIInstrumentationConfig = {}) {
46-
super("@traceloop/instrumentation-azure", "0.3.0", config);
47+
super("@traceloop/instrumentation-azure", version, config);
4748
}
4849

4950
public override setConfig(config: AzureOpenAIInstrumentationConfig = {}) {

packages/instrumentation-bedrock/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ import {
3434
LLMRequestTypeValues,
3535
SpanAttributes,
3636
} from "@traceloop/ai-semantic-conventions";
37+
import { version } from "../package.json";
3738

3839
export class BedrockInstrumentation extends InstrumentationBase<any> {
3940
protected override _config!: BedrockInstrumentationConfig;
4041

4142
constructor(config: BedrockInstrumentationConfig = {}) {
42-
super("@traceloop/instrumentation-bedrock", "0.3.0", config);
43+
super("@traceloop/instrumentation-bedrock", version, config);
4344
}
4445

4546
public override setConfig(config: BedrockInstrumentationConfig = {}) {

packages/instrumentation-cohere/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ import {
3434
LLMRequestTypeValues,
3535
SpanAttributes,
3636
} from "@traceloop/ai-semantic-conventions";
37+
import { version } from "../package.json";
3738

3839
type LLM_COMPLETION_TYPE = "chat" | "completion" | "rerank";
3940
export class CohereInstrumentation extends InstrumentationBase<any> {
4041
protected override _config!: CohereInstrumentationConfig;
4142

4243
constructor(config: CohereInstrumentationConfig = {}) {
43-
super("@traceloop/instrumentation-cohere", "0.3.11", config);
44+
super("@traceloop/instrumentation-cohere", version, config);
4445
}
4546

4647
public override setConfig(config: CohereInstrumentationConfig = {}) {

packages/instrumentation-langchain/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ import { taskWrapper, workflowWrapper } from "./utils";
2424
import type * as ChainsModule from "langchain/chains";
2525
import type * as AgentsModule from "langchain/agents";
2626
import type * as ToolsModule from "langchain/tools";
27+
import { version } from "../package.json";
2728

2829
export class LangChainInstrumentation extends InstrumentationBase<any> {
2930
protected override _config!: LangChainInstrumentationConfig;
3031

3132
constructor(config: LangChainInstrumentationConfig = {}) {
32-
super("@traceloop/instrumentation-langchain", "0.3.0", config);
33+
super("@traceloop/instrumentation-langchain", version, config);
3334
}
3435

3536
public manuallyInstrument({

packages/instrumentation-llamaindex/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ import type {
3232
BaseRetriever,
3333
} from "llamaindex";
3434
import { TraceloopSpanKindValues } from "@traceloop/ai-semantic-conventions";
35+
import { version } from "../package.json";
3536

3637
export class LlamaIndexInstrumentation extends InstrumentationBase<any> {
3738
protected override _config!: LlamaIndexInstrumentationConfig;
3839

3940
constructor(config: LlamaIndexInstrumentationConfig = {}) {
40-
super("@traceloop/instrumentation-llamaindex", "0.3.0", config);
41+
super("@traceloop/instrumentation-llamaindex", version, config);
4142
}
4243

4344
public override setConfig(config: LlamaIndexInstrumentationConfig = {}) {

packages/instrumentation-openai/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ import type {
4343
CompletionCreateParamsStreaming,
4444
} from "openai/resources";
4545
import type { Stream } from "openai/streaming";
46+
import { version } from "../package.json";
4647

4748
export class OpenAIInstrumentation extends InstrumentationBase<any> {
4849
protected override _config!: OpenAIInstrumentationConfig;
4950

5051
constructor(config: OpenAIInstrumentationConfig = {}) {
51-
super("@traceloop/instrumentation-openai", "0.3.0", config);
52+
super("@traceloop/instrumentation-openai", version, config);
5253
}
5354

5455
public override setConfig(config: OpenAIInstrumentationConfig = {}) {

packages/instrumentation-pinecone/src/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ import {
2727
SpanAttributes,
2828
EventAttributes,
2929
} from "@traceloop/ai-semantic-conventions";
30+
import { version } from "../package.json";
3031

3132
export class PineconeInstrumentation extends InstrumentationBase<any> {
3233
constructor(config: InstrumentationConfig = {}) {
33-
super("@traceloop/instrumentation-pinecone", "0.3.0", config);
34+
super("@traceloop/instrumentation-pinecone", version, config);
3435
}
3536

3637
public manuallyInstrument(module: typeof pinecone) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ import {
3434
} from "@traceloop/ai-semantic-conventions";
3535
import type * as aiplatform from "@google-cloud/aiplatform";
3636
import type { CallOptions, Callback } from "google-gax";
37+
import { version } from "../package.json";
3738

3839
export class AIPlatformInstrumentation extends InstrumentationBase<any> {
3940
protected override _config!: AIPlatformInstrumentationConfig;
4041

4142
constructor(config: AIPlatformInstrumentationConfig = {}) {
42-
super("@traceloop/instrumentation-vertexai", "0.3.0", config);
43+
super("@traceloop/instrumentation-vertexai", version, config);
4344
}
4445

4546
public override setConfig(config: AIPlatformInstrumentationConfig = {}) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ import {
3333
SpanAttributes,
3434
} from "@traceloop/ai-semantic-conventions";
3535
import type * as vertexAI from "@google-cloud/vertexai";
36+
import { version } from "../package.json";
3637

3738
export class VertexAIInstrumentation extends InstrumentationBase<any> {
3839
protected override _config!: VertexAIInstrumentationConfig;
3940

4041
constructor(config: VertexAIInstrumentationConfig = {}) {
41-
super("@traceloop/instrumentation-vertexai", "0.3.0", config);
42+
super("@traceloop/instrumentation-vertexai", version, config);
4243
}
4344

4445
public override setConfig(config: VertexAIInstrumentationConfig = {}) {

0 commit comments

Comments
 (0)