Support local configuration, not only global
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
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.
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
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from braintrustdata/braintrust-sdk-ruby
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
ruby
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
ruby
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in braintrustdata/braintrust-sdk-ruby
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
forem/forem#23933 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
rails/mission_control-jobs#347 ·
-
PROJECT: ILR/DRS
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
thewca/worldcubeassociation.org#15914 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 7 days
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
benbalter/site-inspector#127 ·
Maintainers usually reply within 1 day