Skip to content

Commit

Permalink
chore: add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Dec 3, 2024
1 parent ed229f0 commit 731fccf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions flow/otel_metrics/otel_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,18 @@ func getOrInitMetric[M any, O any](
) (M, error) {
gauge, ok := cache[name]
if !ok {
// TODO remove this post testing
slog.Info("Creating new metric", slog.String("name", name))
var err error
gauge, err = cons(meter, name, opts...)
if err != nil {
var none M
return none, err
}
cache[name] = gauge
} else {
// TODO remove this post testing
slog.Info("Found existing metric", slog.String("name", name))
}
return gauge, nil
}
Expand Down
3 changes: 2 additions & 1 deletion flow/workflows/scheduled_flows.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func GlobalScheduleManagerWorkflow(ctx workflow.Context) error {

slotSizeCtx := withCronOptions(ctx,
"record-slot-size-"+info.OriginalRunID,
"*/5 * * * *")
// TODO revert this post testing
"* * * * *")
workflow.ExecuteChildWorkflow(slotSizeCtx, RecordSlotSizeWorkflow)

ctx.Done().Receive(ctx, nil)
Expand Down

0 comments on commit 731fccf

Please sign in to comment.