Skip to content

Commit

Permalink
pkg/routine: Drop span
Browse files Browse the repository at this point in the history
  • Loading branch information
monstermunchkin committed Nov 27, 2024
1 parent 4597413 commit a2b9f26
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/routine/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"time"

"github.com/getsentry/sentry-go"
"github.com/pace/bricks/maintenance/errors"
"github.com/pace/bricks/pkg/lock/redis"

Expand Down Expand Up @@ -58,11 +57,6 @@ func (r *routineThatKeepsRunningOneInstance) Run(ctx context.Context) {
// until it returns. Return the backoff duration after which another single run
// should be performed.
func (r *routineThatKeepsRunningOneInstance) singleRun(ctx context.Context) time.Duration {
span := sentry.StartSpan(ctx, "function", sentry.WithDescription(fmt.Sprintf("Routine %s", r.Name)))
defer span.Finish()

ctx = span.Context()

l := redis.NewLock("routine:lock:"+r.Name, redis.SetTTL(r.lockTTL))
lockCtx, cancel, err := l.AcquireAndKeepUp(ctx)
if err != nil {
Expand Down

0 comments on commit a2b9f26

Please sign in to comment.