Skip to content

Commit 7304563

Browse files
authored
fix: only import types in all instrumentations (#150)
1 parent ddfc3a2 commit 7304563

File tree

16 files changed

+126
-253
lines changed

16 files changed

+126
-253
lines changed

package-lock.json

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

packages/instrumentation-azure/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@pollyjs/adapter-node-http": "^6.0.6",
4747
"@pollyjs/core": "^6.0.6",
4848
"@pollyjs/persister-fs": "^6.0.6",
49-
"@types/expect": "^24.3.0",
5049
"@types/mocha": "^10.0.6",
5150
"llamaindex": "^0.0.40",
5251
"ts-mocha": "^10.0.0"

packages/instrumentation-azure/src/instrumentation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
SpanAttributes,
3434
} from "@traceloop/ai-semantic-conventions";
3535
import { AzureOpenAIInstrumentationConfig } from "./types";
36-
import {
36+
import type {
3737
ChatCompletions,
3838
ChatRequestMessage,
3939
Completions,

packages/instrumentation-bedrock/src/instrumentation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
safeExecuteInTheMiddle,
2929
} from "@opentelemetry/instrumentation";
3030
import { BedrockInstrumentationConfig } from "./types";
31-
import * as bedrock from "@aws-sdk/client-bedrock-runtime";
31+
import type * as bedrock from "@aws-sdk/client-bedrock-runtime";
3232
import {
3333
CONTEXT_KEY_ALLOW_TRACE_CONTENT,
3434
LLMRequestTypeValues,

0 commit comments

Comments
 (0)