Skip to content

Commit 0c54ee4

Browse files
authored
fix: add missing span.End() (#1202)
1 parent 16d4ddf commit 0c54ee4

File tree

7 files changed

+8
-3
lines changed

7 files changed

+8
-3
lines changed

tasks/blocks/drand/task.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
2828
attribute.String("processor", "blocks"),
2929
)
3030
}
31+
defer span.End()
3132

3233
var pl model.PersistableList
3334
for _, bh := range ts.Blocks() {

tasks/blocks/headers/task.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
2828
attribute.String("processor", "blocks"),
2929
)
3030
}
31+
defer span.End()
3132

3233
var pl model.PersistableList
3334
for _, bh := range ts.Blocks() {

tasks/blocks/parents/task.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
2828
attribute.String("processor", "blocks"),
2929
)
3030
}
31+
defer span.End()
3132

3233
var pl model.PersistableList
3334
for _, bh := range ts.Blocks() {

tasks/fevmactorstats/task.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
4343
attribute.String("processor", "fevmactorstats"),
4444
)
4545
}
46+
defer span.End()
47+
4648
report := &visormodel.ProcessingReport{
4749
Height: int64(ts.Height()),
4850
StateRoot: ts.ParentState().String(),

tasks/messages/blockmessage/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewTask(node tasks.DataSource) *Task {
2626
}
2727

2828
func (t *Task) ProcessTipSet(ctx context.Context, current *types.TipSet) (model.Persistable, *visormodel.ProcessingReport, error) {
29-
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSets")
29+
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSet")
3030
if span.IsRecording() {
3131
span.SetAttributes(
3232
attribute.String("current", current.String()),

tasks/messages/gaseconomy/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewTask(node tasks.DataSource) *Task {
2929
}
3030

3131
func (t *Task) ProcessTipSet(ctx context.Context, current *types.TipSet) (model.Persistable, *visormodel.ProcessingReport, error) {
32-
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSets")
32+
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSet")
3333
if span.IsRecording() {
3434
span.SetAttributes(
3535
attribute.String("current", current.String()),

tasks/messages/message/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewTask(node tasks.DataSource) *Task {
2727
}
2828

2929
func (t *Task) ProcessTipSet(ctx context.Context, current *types.TipSet) (model.Persistable, *visormodel.ProcessingReport, error) {
30-
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSets")
30+
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSet")
3131
if span.IsRecording() {
3232
span.SetAttributes(
3333
attribute.String("current", current.String()),

0 commit comments

Comments
 (0)