From 52d9cfdf8deec6fc6e71ecdd559b49bb8f5366a0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 12 Jan 2025 01:09:26 +0100 Subject: [PATCH] tsdb: use transaction not span for write --- pkg/roles/tsdb/role.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/roles/tsdb/role.go b/pkg/roles/tsdb/role.go index 55ec7d28..cd23c819 100644 --- a/pkg/roles/tsdb/role.go +++ b/pkg/roles/tsdb/role.go @@ -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{}{}))