Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing span.End() #1202

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tasks/blocks/drand/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
attribute.String("processor", "blocks"),
)
}
defer span.End()

var pl model.PersistableList
for _, bh := range ts.Blocks() {
Expand Down
1 change: 1 addition & 0 deletions tasks/blocks/headers/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
attribute.String("processor", "blocks"),
)
}
defer span.End()

var pl model.PersistableList
for _, bh := range ts.Blocks() {
Expand Down
1 change: 1 addition & 0 deletions tasks/blocks/parents/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
attribute.String("processor", "blocks"),
)
}
defer span.End()

var pl model.PersistableList
for _, bh := range ts.Blocks() {
Expand Down
2 changes: 2 additions & 0 deletions tasks/fevmactorstats/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func (p *Task) ProcessTipSet(ctx context.Context, ts *types.TipSet) (model.Persi
attribute.String("processor", "fevmactorstats"),
)
}
defer span.End()

report := &visormodel.ProcessingReport{
Height: int64(ts.Height()),
StateRoot: ts.ParentState().String(),
Expand Down
2 changes: 1 addition & 1 deletion tasks/messages/blockmessage/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewTask(node tasks.DataSource) *Task {
}

func (t *Task) ProcessTipSet(ctx context.Context, current *types.TipSet) (model.Persistable, *visormodel.ProcessingReport, error) {
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSets")
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSet")
if span.IsRecording() {
span.SetAttributes(
attribute.String("current", current.String()),
Expand Down
2 changes: 1 addition & 1 deletion tasks/messages/gaseconomy/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewTask(node tasks.DataSource) *Task {
}

func (t *Task) ProcessTipSet(ctx context.Context, current *types.TipSet) (model.Persistable, *visormodel.ProcessingReport, error) {
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSets")
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSet")
if span.IsRecording() {
span.SetAttributes(
attribute.String("current", current.String()),
Expand Down
2 changes: 1 addition & 1 deletion tasks/messages/message/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewTask(node tasks.DataSource) *Task {
}

func (t *Task) ProcessTipSet(ctx context.Context, current *types.TipSet) (model.Persistable, *visormodel.ProcessingReport, error) {
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSets")
ctx, span := otel.Tracer("").Start(ctx, "ProcessTipSet")
if span.IsRecording() {
span.SetAttributes(
attribute.String("current", current.String()),
Expand Down