Skip to content

Commit

Permalink
fix: only import types in all instrumentations (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirga authored Mar 15, 2024
1 parent ddfc3a2 commit 7304563
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 253 deletions.
196 changes: 9 additions & 187 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/instrumentation-azure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@pollyjs/adapter-node-http": "^6.0.6",
"@pollyjs/core": "^6.0.6",
"@pollyjs/persister-fs": "^6.0.6",
"@types/expect": "^24.3.0",
"@types/mocha": "^10.0.6",
"llamaindex": "^0.0.40",
"ts-mocha": "^10.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/instrumentation-azure/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
SpanAttributes,
} from "@traceloop/ai-semantic-conventions";
import { AzureOpenAIInstrumentationConfig } from "./types";
import {
import type {
ChatCompletions,
ChatRequestMessage,
Completions,
Expand Down
2 changes: 1 addition & 1 deletion packages/instrumentation-bedrock/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
safeExecuteInTheMiddle,
} from "@opentelemetry/instrumentation";
import { BedrockInstrumentationConfig } from "./types";
import * as bedrock from "@aws-sdk/client-bedrock-runtime";
import type * as bedrock from "@aws-sdk/client-bedrock-runtime";
import {
CONTEXT_KEY_ALLOW_TRACE_CONTENT,
LLMRequestTypeValues,
Expand Down
Loading

0 comments on commit 7304563

Please sign in to comment.