active observability templates - #321
Conversation
|
Latest downloadable build artifacts for this PR commit
Available artifact names
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49069a34b5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
13f28b9 to
35f6c55
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35f6c556ff
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
3c46e04 to
f0d7652
Compare
Summary
Adds a portable JSON template workflow for copying active observability configurations—including Loop automations and facets—between Braintrust projects and organizations.
New commands:
bt observability template pullbt observability template push <source><source>may be a local path,-for stdin, or a public HTTP(S) URL such as a raw GitHub Gist URL.Interactive pulls show every facet and Loop automation. Active facets and unpaused Loop automations are selected by default, while inactive resources can be opted in. Non-interactive pulls use those same active defaults so their output can be pushed without unexpectedly activating inactive resources.
When a facet is pushed, the CLI ensures its topic-map classifier exists and adds both functions to the selected Topics automation. Replacing or remapping a facet also reconciles its topic map and removes stale wiring from previous Topics destinations.
Automation destination settings, such as Slack channels and webhook URLs, are excluded from templates. Existing destination settings in the target project are preserved.
Examples
Pull a project's active observability configuration:
Push it to another project:
Templates can also be shared remotely:
bt observability template push \ 'https://example.com/active-observability-template.json' \ --project target-projectIf the target project has multiple Topics automations, select one by name or ID:
Templates can also be piped directly between projects:
bt observability template pull --project source-project | bt observability template push - --project target-projectValidation