Skip to content

feat: add structured monitoring to migration controller#259

Open
thomas-waite wants to merge 23 commits intomainfrom
feat/monitoring
Open

feat: add structured monitoring to migration controller#259
thomas-waite wants to merge 23 commits intomainfrom
feat/monitoring

Conversation

@thomas-waite
Copy link
Contributor

@thomas-waite thomas-waite commented Feb 5, 2026

Add structured monitoring to migration controller, so we can track state of migration

Added thorough structured monitoring to the migration controller so we can build Datadog dashboards to track the overall status of migrations, including the number of failed migrations, which are failing/succeeding, how long each migration takes etc.

Bedrock implements a foreign logger (a pattern used throughout Bedrock) with the log() trait exported via UniFFI. The higher level calling app attaches the userId identifying information to the logs, so they can be identified in Datadog.

Specifically:

  • Replaced unstructured log::info/warn/error calls with structured crate::info/warn/error key=value logging for Datadog dashboard compatibility.
  • Added duration_ms to all execution outcomes - failed, successful etc.

@thomas-waite thomas-waite self-assigned this Feb 5, 2026
@thomas-waite thomas-waite changed the title [WIP] feat: add thorough monitoring to migration controller feat: add thorough monitoring to migration controller Feb 19, 2026
@thomas-waite thomas-waite marked this pull request as ready for review February 19, 2026 00:31
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c43bcd5365

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomas-waite
Copy link
Contributor Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b08129fb2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomas-waite thomas-waite changed the title feat: add thorough monitoring to migration controller feat: add structured monitoring to migration controller Feb 19, 2026
crate::info!(
"migration_run.started total_processors={} timestamp={}",
self.processors.len(),
run_start_time.to_rfc3339()
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm the logging layer should automatically add timestamps

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

Comments