[bot] Fireworks AI TypeScript SDK (`@fireworksai/sdk`) not instrumented — no tracing for chat completions, embeddings, or image generation (71 weekly downloads)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- observability-sre
Hướng nghiên cứu
Bắt đầu với các cấu hình hiện có trong js/src/auto-instrumentations/configs/, các wrapper trong js/src/wrappers/, các plugin trong js/src/instrumentation/plugins/ và e2e/scenarios/. Xem xét cách các integration hiện tại xử lý các method của @fireworksai/sdk được liệt kê trong issue, sau đó thêm coverage và một scenario e2e; được xem là hoàn tất khi các lời gọi trực tiếp cho chat, completion, embedding, image, audio và streaming tạo ra các span Braintrust.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Fireworks AI publishes an official TypeScript SDK: @fireworksai/sdk on npm (currently in beta, requires zod peer dependency). It provides execution APIs for chat completions, text completions, embeddings, image generation, and audio transcription via Fireworks AI's own REST API client, with HTTP requests powered by fetch. This repository has zero instrumentation for any @fireworksai/sdk surface — no wrapper, no channels, no plugin, no auto-instrumentation config. Users who call @fireworksai/sdk directly get no Braintrust spans.
What instrumentation is missing
The @fireworksai/sdk npm package exposes these execution surfaces, none of which are instrumented:
| SDK Method | Description |
|---|---|
client.chat.completions.create({ model, messages }) |
Chat completions with tool calling and structured outputs |
client.chat.completions.create({ ..., stream: true }) |
Streaming chat completions |
client.completions.create({ model, prompt }) |
Text completions |
client.embeddings.create({ model, input }) |
Text embeddings (OpenAI-compatible format) |
client.images.generate({ model, prompt }) |
Text-to-image generation |
client.audio.transcriptions.create(...) |
Audio transcription |
The SDK uses its own fetch-based HTTP client (with Zod for request/response validation) and does not use the openai npm package internally. Existing openai auto-instrumentation does not cover calls made through @fireworksai/sdk.
No coverage in any instrumentation layer:
- No wrapper function (e.g.
wrapFireworks()) - No diagnostics channels for Fireworks AI methods
- No plugin handler in
js/src/instrumentation/plugins/ - No auto-instrumentation config in
js/src/auto-instrumentations/configs/ - No e2e test scenarios
- Grep for
fireworks(case-insensitive) acrossjs/src/returns zero instrumentation matches
Indirect coverage is insufficient:
Braintrust's Fireworks AI integration page documents a gateway/OpenAI SDK approach — using the openai npm client pointed at the Braintrust gateway with Fireworks model identifiers. Users who call @fireworksai/sdk directly — which ships Fireworks' own type-safe TypeScript API client — get no spans at all under that approach.
Braintrust docs status
not_found for direct SDK instrumentation. The Braintrust Fireworks integration page documents a gateway/OpenAI SDK approach only and does not reference @fireworksai/sdk.
Upstream references
@fireworksai/sdknpm: https://www.npmjs.com/package/@fireworksai/sdk- Fireworks AI GitHub org: https://github.com/fw-ai
- Fireworks AI serverless quickstart: https://docs.fireworks.ai/getting-started/quickstart
- Fireworks AI embeddings & reranking: https://docs.fireworks.ai/guides/querying-embeddings-models
Local files inspected
js/src/auto-instrumentations/configs/— full config list:anthropic.ts,openai.ts,ai-sdk.ts,groq.ts,mistral.ts,cohere.ts,huggingface.ts,google-genai.ts,google-adk.ts,genkit.ts,openai-agents.ts,openrouter.ts,openrouter-agent.ts,claude-agent-sdk.ts,cursor-sdk.ts,github-copilot.ts,openai-codex.ts,flue.ts— no Fireworks AI config presentjs/src/wrappers/— nofireworks.tswrapper filejs/src/instrumentation/plugins/— no Fireworks AI channels or plugine2e/scenarios/— no Fireworks AI test scenarios- Full repo grep for
fireworks(case-insensitive) injs/src/— zero instrumentation matches @fireworksai/sdkinstall notes — confirmedfetch-based HTTP client withzodpeer dependency; noopenairuntime dependency
- Ngôn ngữ chính
- TypeScript
- Star
- 28
- Fork
- 15
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 70
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của braintrustdata/braintrust-sdk-javascript
-
typescript
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
braintrustdata/braintrust-sdk-javascript#2578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
typescript
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
braintrustdata/braintrust-sdk-javascript#2577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
braintrustdata/braintrust-sdk-javascript#2527 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 65/100
braintrustdata/braintrust-sdk-javascript#2526 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
braintrustdata/braintrust-sdk-javascript#2482 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của braintrustdata/braintrust-sdk-javascript
Issue tương tự
-
Add: CanalPlusActionEurope.nlĐang mởcheck:passed streams:add
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
beta technical-medium ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
walletbeat/walletbeat#1625 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Good First Issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
hiero-ledger/hiero-sdk-js#4489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] The clients language filter cannot select the rows the page labels as unknownCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/rocketmq-dashboard#6103 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
payloadcms/payload#18652 ·
Maintainer thường phản hồi trong vòng 1 ngày