Skip to content

[bot] Missing instrumentation for Cohere Java SDK #91

@braintrust-bot

Description

@braintrust-bot

Summary

The Braintrust Java SDK does not instrument the Cohere Java SDK (com.cohere:cohere-java). Cohere provides an official Java SDK with execution-oriented APIs for chat, text generation, embeddings, and reranking. Braintrust already supports Cohere instrumentation for Python (via wrap_cohere() / auto_instrument()), but the Java SDK has no equivalent wrapper or auto-instrumentation module.

What is missing

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

API Description
chat Conversational chat completions with multi-turn support
generate Text generation / completions
embed Embedding generation for text inputs
rerank Document relevance reranking

The SDK is available on Maven Central (com.cohere:cohere-java) at version 1.10.1 with 25+ releases. It is actively maintained and auto-generated via the Fern API tooling.

There is no reference to cohere, com.cohere, or CohereClient anywhere in this repository — no instrumentation module, no tests, no examples, no dependencies.

Braintrust docs status

Upstream sources

Local files inspected

  • settings.gradle — lists all instrumentation modules; no Cohere module present
  • braintrust-sdk/instrumentation/ — contains openai_2_8_0, anthropic_2_2_0, genai_1_18_0, langchain_1_8_0, springai_1_0_0, aws_bedrock_2_30_0; no Cohere directory
  • Full-repo grep for cohere, com.cohere, CohereClient — zero matches

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