Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support local configuration, not only global

Open
#161 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
ruby
Domain
backend

Research direction

Start with the linked .plan/.PLAN.md section and the README's current initialization documentation, then locate the Braintrust.init entry point and global-state handling. Done means the SDK supports both the documented global initialization and an explicit local instance, with the local usage and behavior described in the README.

Written by the indexing model from the issue text.

Description

The plan mentions supporting both global and local state.

https://github.com/braintrustdata/braintrust-sdk-ruby/blob/1929a2069bb7f6f0fa3106300bbf9f3fbc8b03c9/.plan/.PLAN.md?plain=1#L16-L28

This is a very good pattern.

But currently, only global seems to be supported. At least that's all that's in the readme.

Also, if you support local state, I would suggest the traditional class pattern with new (idiomatic ruby):

# Simple case - sets global state (default)
Braintrust.init(
  api_key: ENV['BRAINTRUST_API_KEY'],
  project: "my-project"
)

# Explicit state (for testing, multi-tenant)
braintrust_instance = Braintrust.new(
  api_key: "key",
  project: "project",
  set_global: false
)

(the one in the plan is even broken, it wouldn't work at all as mentioned in the plan)

Dominant language
Ruby
Stars
9
Forks
10
Avg merge
22h 10m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from braintrustdata/braintrust-sdk-ruby

All issues in braintrustdata/braintrust-sdk-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.