Skip to content

Releases: braintrustdata/braintrust-sdk-go

v0.6.1

21 Apr 18:46
fdbe5cd

Choose a tag to compare

Changelog

  • fdbe5cd chore: release v0.6.1 (#109)
  • ae1c8f2 ci(release): drop proxy.golang.org pre-warm step (#89)
  • 553f579 fix(eval): escape org name in permalink URL (#106)
  • 5bee810 perf(adk): remove redundant global TP set and parallelize tests
  • 8012d5d perf(contrib): batch go mod edit into a single subprocess call
  • a42b904 perf(contrib): parallelize orchestrion subtests
  • e14a57c perf(contrib): parallelize top-level test functions
  • 90eef28 perf(langchaingo): eliminate network round-trip in TestContextIdentity

v0.6.0

20 Apr 14:52
3e7e593

Choose a tag to compare

Changelog

  • 736abb1 feat(bedrockruntime): add AWS Bedrock Runtime integration (#92)
  • 58f7de7 feat(genkit): add embeddings instrumentation via WrapEmbedder (#96)
  • a042f06 feat(trace): add embeddings instrumentation across providers (#91)

v0.5.0

16 Apr 20:08
01267e6

Choose a tag to compare

Changelog

  • 598bf71 Instrument Gemini streaming (streamGenerateContent) calls (#55)
  • 207c425 fix(anthropic): preserve citations in streaming traces (#83)
  • 50c3c0f fix(genai): capture Gemini thinking config in traces (#75)
  • 8986b07 fix: align pinned minimum versions with ci (#86)
  • 4e6142c fix: restore BRAINTRUST_ENABLE_TRACE_CONSOLE_LOG support lost in v0.1 migration (#67)

v0.4.1

16 Apr 15:42
c39afdb

Choose a tag to compare

Changelog

  • 54cc733 chore(go): update repo to test with go 1.26 (#65)
  • 30efdf3 chore: Make sure tags get pushed properly (#62)
  • c39afdb chore: release v0.4.1 (#72)
  • e0c5bb6 feat: capture max_completion_tokens and reasoning_effort in chat completions metadata (#66)
  • 4349f50 feat: capture text parameter in Responses API tracer metadata (#71)

v0.4.0

07 Apr 16:28
d0803c3

Choose a tag to compare

Changelog

  • d0803c3 chore: release v0.4.0 (#61)
  • 4bedb0e feat!: split trace/contrib integrations into individual Go modules (#49)

This release contains breaking changes if you were using trace integrations with the Go SDK. See below on how to upgrade.

Upgrade Guide

Tracing integrations under trace/contrib/... are now published as separate Go modules instead of being transitively included by the root SDK module. This reduces unnecessary dependencies for users who only need the core SDK or a small number of integrations.

Who is affected

You only need to take action if your project uses one or more tracing integrations, for example:

  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/openai
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/anthropic
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/genai
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/genkit
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/adk
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/langchaingo
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/cloudwego/eino
  • github.com/braintrustdata/braintrust-sdk-go/trace/contrib/github.com/sashabaranov/go-openai

If you only use the core SDK (braintrust, eval, API client, etc.), no migration is required beyond upgrading the root module.

What stays the same

  • Import paths do not change
  • Application code usually does not need to change
  • Only the module/dependency setup changes

How to upgrade

Core SDK only

go get github.com/braintrustdata/braintrust-sdk-go@v0.4.0
go mod tidy

Core SDK + specific integrations

Install the root SDK plus each integration you use:

go get github.com/braintrustdata/braintrust-sdk-go@v0.4.0
go get github.com/braintrustdata/braintrust-sdk-go/trace/contrib/openai@v0.4.0
go get github.com/braintrustdata/braintrust-sdk-go/trace/contrib/anthropic@v0.4.0
go mod tidy

If you want the previous “install everything” behavior

Use the new convenience meta-module:

go get github.com/braintrustdata/braintrust-sdk-go/trace/contrib/all@v0.4.0
go mod tidy

This is especially useful for Orchestrion-based auto-instrumentation:

import (
    _ "github.com/DataDog/orchestrion"
    _ "github.com/braintrustdata/braintrust-sdk-go/trace/contrib/all"
)

Before vs after

Before

A single dependency pulled in all integrations transitively:

go get github.com/braintrustdata/braintrust-sdk-go

After

Install the root SDK plus only the integrations you use:

go get github.com/braintrustdata/braintrust-sdk-go
go get github.com/braintrustdata/braintrust-sdk-go/trace/contrib/openai

Or opt into all integrations explicitly:

go get github.com/braintrustdata/braintrust-sdk-go/trace/contrib/all

v0.3.1

03 Apr 21:04
4084933

Choose a tag to compare

Changelog

  • e015507 Add time_to_first_token metric to Anthropic integration (#54)
  • 5e6c647 Don't set output_json to null when task fails.
  • 4084933 Fix Anthropic streaming extended thinking support (#56)
  • 1be4a91 Fixed eval trace structure inconsistencies
  • e189097 Make sure eval spans are nested properly
  • ce40450 Merge pull request #43 from braintrustdata/fix/eval_trace_structure

v0.3.0

25 Mar 20:03
2e5e14d

Choose a tag to compare

Changelog

  • 2e5e14d Add CloudWeGo Eino tracing integration (#44)
  • e35e5aa Add Firebase Genkit tracing integration (#47)
  • 8cd166d Add Go integration skill and TDD workflow docs
  • dddbfe0 Move adk golden tests => adk folder. (#41)
  • 6b567d4 chore: Pin github actions to commit (#46)

v0.2.1

09 Feb 19:18
c9dceb8

Choose a tag to compare

Changelog

v0.2.0

17 Jan 19:04

Choose a tag to compare

Changelog

  • Our library now requires go v1.24.
  • 382b5db Implement auto instrumentation with go orchestrion. This allows users to instrument their LLM libraries with no-code changes at compile time. (#32)

Documentation

v0.1.2

30 Dec 21:01

Choose a tag to compare

Changelog

  • 83e03bc Add time to first token to openai responses.
  • 830c8f1 Merge pull request #21 from braintrustdata/ark/gemini-model-name
  • 7cb70e0 add claude docker script
  • a4c7dcd change gemini span name to match other SDKs