Skip to content

[bot] Instrument @ibm-cloud/watsonx-ai (1,194,419 weekly downloads) #2397

Description

@braintrust-bot

<!-- library-gap-audit: ibm-watsonx-ai -->

Summary

@ibm-cloud/watsonx-ai is IBM's official Node.js SDK for the watsonx.ai foundation-model service, providing text generation and chat execution against IBM's hosted models (Granite family and others) over a REST API. This repo has zero instrumentation for this SDK — no channels, no wrapper, no auto-instrumentation config, and no e2e scenario reference it anywhere.

What's missing

The SDK's execution surface is a WatsonXAI service client instantiated as:

const watsonxAIService = new WatsonXAI({ version: '2024-05-31', serviceUrl: 'https://us-south.ml.cloud.ibm.com' });

Its primary generation method is textChat(params), which accepts messages (role/content array), modelId, projectId/spaceId, and maxTokens, and returns a response read via result.choices[0].message.content — directly analogous to chat.completions.create() for OpenAI-shaped providers, which this repo does instrument for other vendors. None of WatsonXAI, textChat, or any watsonx-related identifier appear anywhere in js/src/ (repo-wide case-insensitive search for "watsonx" returns zero matches).

Weekly downloads

Weekly downloads: 1,194,419 (as of 2026-08-24; https://api.npmjs.org/downloads/point/last-week/@ibm-cloud/watsonx-ai — reported window 2026-08-17 to 2026-08-23). Sustained over the trailing month rather than a one-off spike: ~1.11M (week of 2026-07-25), ~1.17M (2026-08-01), ~1.44M (2026-08-08), ~1.14M (2026-08-15) per https://api.npmjs.org/downloads/range/last-month/@ibm-cloud/watsonx-ai.

Braintrust docs status

not_found — Checked https://www.braintrust.dev/docs/integrations and https://www.braintrust.dev/docs/instrument/wrap-providers; neither lists watsonx or IBM as a named provider integration (unlike OpenAI, Anthropic, Bedrock, Cerebras, etc. which do have dedicated entries). Braintrust's integrations page notes unlisted providers can be connected via its generic AI Proxy or OpenTelemetry endpoint, but there is no watsonx-specific wrapper, guide, or trace processor documented.

Upstream references

Local files inspected

  • Repo-wide case-insensitive grep for watsonx — zero matches anywhere in the repository (no source, config, wrapper, plugin, or e2e references).
  • js/src/auto-instrumentations/configs/ — no watsonx/IBM config file.
  • js/src/wrappers/ — no corresponding wrapper.
  • e2e/scenarios/ — no watsonx scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions