Skip to content

Commit e556e67

Browse files
chore: more traces
1 parent 2c61014 commit e556e67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/workspace-engine/pkg/kafka/consumer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package kafka
22

33
import (
44
"context"
5+
"fmt"
56
"workspace-engine/pkg/db"
67

78
"github.com/charmbracelet/log"
@@ -63,6 +64,8 @@ func setOffsets(ctx context.Context, consumer *kafka.Consumer, partitionWorkspac
6364
ctx, span := tracer.Start(ctx, "setOffsets")
6465
defer span.End()
6566

67+
span.SetAttributes(attribute.String("partition_workspace_map", fmt.Sprintf("%+v", partitionWorkspaceMap)))
68+
6669
for partition, workspaceIDs := range partitionWorkspaceMap {
6770
snapshots, err := db.GetLatestWorkspaceSnapshots(ctx, workspaceIDs)
6871
if err != nil {

0 commit comments

Comments
 (0)