Skip to content
Success

Changes

Summary

  1. tarexport: Plumb ctx, add OTEL spans, handle cancellation (details)
Commit ad0f263eb55c19c804e7c24a55915c64c15a24d3 by Paweł Gronowski
tarexport: Plumb ctx, add OTEL spans, handle cancellation

Pass `context.Context` through `tarexport.Load` and `tarexport.Save`.
Create OTEL spans for the most time consuming operations.

Also, handle context cancellations to actually end saving/loading when
the operation is cancelled - before this PR the daemon would still be
performing the operation even though the user already cancelled it.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
The file was addedinternal/ioutils/copy.go
The file was addedinternal/ioutils/copy_test.go
The file was modified image/image.go (diff)
The file was modified image/tarexport/load.go (diff)
The file was modified image/tarexport/save.go (diff)
The file was modified daemon/images/image_exporter.go (diff)