Skip to content

[bot] Missing instrumentation for Alibaba DashScope Java SDK #133

Description

@braintrust-bot

Summary

The Braintrust Java SDK does not instrument the Alibaba DashScope Java SDK (com.alibaba:dashscope-sdk-java). This is Alibaba Cloud's official Java client for the DashScope AI platform, providing execution-oriented APIs for text generation and streaming chat using Qwen foundation models. There is no instrumentation module, wrapper, test, example, or dependency for dashscope-sdk-java anywhere in this repository.

What is missing

The com.alibaba:dashscope-sdk-java SDK provides these execution surfaces, none of which are instrumented:

API Class Description
Synchronous generation Generation.call(GenerationParam) Non-streaming text generation / chat completions returning GenerationResult
Streaming generation Generation.streamCall(GenerationParam) Reactive streaming generation returning Flowable<GenerationResult>
Callback-based generation Generation.call(GenerationParam, ResultCallback) Async callback mode supporting both stream and non-stream

The SDK uses its own HTTP client implementation distinct from com.openai:openai-java. No existing Braintrust instrumentation module intercepts these calls.

Braintrust docs status

not_found — The Braintrust Java instrumentation documentation at https://www.braintrust.dev/docs/instrument/trace-llm-calls#java lists com.openai:openai-java, com.anthropic:anthropic-java, com.google.genai:google-genai, dev.langchain4j:langchain4j, org.springframework.ai:spring-ai-core, and software.amazon.awssdk:bedrockruntime. Alibaba DashScope is not mentioned anywhere in Braintrust docs.

Upstream sources

Local repo files inspected

  • braintrust-sdk/instrumentation/ — contains openai_2_15_0, anthropic_2_2_0, aws_bedrock_2_30_0, genai_1_18_0, langchain_1_8_0, springai_1_0_0; no DashScope directory
  • README.md — lists supported instrumentation; DashScope absent
  • Full-repo grep for dashscope, com.alibaba, Generation (DashScope class) — zero matches in instrumentation code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions