feat: expose effective runtime settings in metrics

This commit is contained in:
2026-09-20 19:28:23 +08:00
parent df6773be47
commit 8408331259
5 changed files with 36 additions and 0 deletions

View File

@@ -63,6 +63,12 @@ func run() error {
}
defer metricsListener.Close()
metrics = observability.NewRegistry()
metrics.RecordRuntimeConfig(observability.RuntimeConfig{
WorkflowTickInterval: cfg.WorkflowTickInterval,
ScheduleTickInterval: cfg.ScheduleTickInterval,
RecoveryTickInterval: cfg.RecoveryTickInterval,
BatchLimit: cfg.RuntimeBatchLimit,
})
metrics.RecordDatabase(db.Stats())
}
ready := func(ctx context.Context) error {