Skip to content
Merged
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
4 changes: 3 additions & 1 deletion instrument/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ func CollectedRequest(ctx context.Context, method string, col Collector, toStatu
col.After(method, toStatusCode(err), start)

if err != nil {
ext.Error.Set(sp, true)
if err != context.Canceled {
ext.Error.Set(sp, true)
}
sp.LogFields(otlog.Error(err))
}
sp.Finish()
Expand Down