Skip to content

Conversation

@tiewei
Copy link
Contributor

@tiewei tiewei commented Jan 22, 2026

The merge operation will mutate the leftmost dict, as a result if labels are set different for api, reader and writer, the last one will always override the values.
This change perform a deepCopy of global.labels before perform the merge to prevent the mutating on the global.labels

The `merge` operation will mutate the leftmost dict, as a result
if labels are set different for api, reader and writer, the last
one will always override the values.
This change perform a deepCopy of global.labels before perform the
merge to prevent the mutating on the global.labels
@tiewei tiewei mentioned this pull request Jan 22, 2026
Copy link
Contributor

@mdeeks mdeeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mdeeks mdeeks merged commit 7833047 into braintrustdata:main Jan 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants