Skip to content

Commit

Permalink
tsdb: use transaction not span for write
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jan 12, 2025
1 parent cab7708 commit 52d9cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/roles/tsdb/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (r *Role) Start(ctx context.Context, config []byte) error {
}

func (r *Role) write(ctx context.Context) {
ss := sentry.StartSpan(ctx, "gravity.tsdb.write")
ss := sentry.StartTransaction(ctx, "gravity.tsdb.write")
defer ss.Finish()
r.log.Debug("writing metrics")
r.i.DispatchEvent(types.EventTopicTSDBBeforeWrite, roles.NewEvent(ss.Context(), map[string]interface{}{}))
Expand Down

0 comments on commit 52d9cfd

Please sign in to comment.