Class OpenTelemetryImageManagerDecorator
- Namespace
- Bielu.Microservices.Orchestrator.OpenTelemetry.Instrumentation
- Assembly
- Bielu.Microservices.Orchestrator.OpenTelemetry.dll
Decorator for IImageManager that adds OpenTelemetry tracing and metrics to all operations.
public class OpenTelemetryImageManagerDecorator : IImageManager
- Inheritance
-
OpenTelemetryImageManagerDecorator
- Implements
- Inherited Members
Constructors
OpenTelemetryImageManagerDecorator(IImageManager)
Decorator for IImageManager that adds OpenTelemetry tracing and metrics to all operations.
public OpenTelemetryImageManagerDecorator(IImageManager inner)
Parameters
innerIImageManager
Methods
GetAsync(string, CancellationToken)
Gets detailed information about a specific image.
public Task<ImageInfo?> GetAsync(string imageId, CancellationToken cancellationToken = default)
Parameters
imageIdstringcancellationTokenCancellationToken
Returns
ListAsync(CancellationToken)
Lists all images.
public Task<IReadOnlyList<ImageInfo>> ListAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
PullAsync(PullImageRequest, CancellationToken)
Pulls an image from a registry.
public Task PullAsync(PullImageRequest request, CancellationToken cancellationToken = default)
Parameters
requestPullImageRequestcancellationTokenCancellationToken
Returns
RemoveAsync(string, bool, CancellationToken)
Removes an image.
public Task RemoveAsync(string imageId, bool force = false, CancellationToken cancellationToken = default)
Parameters
imageIdstringforceboolcancellationTokenCancellationToken
Returns
TagAsync(string, string, string, CancellationToken)
Tags an image with a new name.
public Task TagAsync(string imageId, string repository, string tag, CancellationToken cancellationToken = default)
Parameters
imageIdstringrepositorystringtagstringcancellationTokenCancellationToken