Table of Contents

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

inner IImageManager

Methods

GetAsync(string, CancellationToken)

Gets detailed information about a specific image.

public Task<ImageInfo?> GetAsync(string imageId, CancellationToken cancellationToken = default)

Parameters

imageId string
cancellationToken CancellationToken

Returns

Task<ImageInfo>

ListAsync(CancellationToken)

Lists all images.

public Task<IReadOnlyList<ImageInfo>> ListAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<IReadOnlyList<ImageInfo>>

PullAsync(PullImageRequest, CancellationToken)

Pulls an image from a registry.

public Task PullAsync(PullImageRequest request, CancellationToken cancellationToken = default)

Parameters

request PullImageRequest
cancellationToken CancellationToken

Returns

Task

RemoveAsync(string, bool, CancellationToken)

Removes an image.

public Task RemoveAsync(string imageId, bool force = false, CancellationToken cancellationToken = default)

Parameters

imageId string
force bool
cancellationToken CancellationToken

Returns

Task

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

imageId string
repository string
tag string
cancellationToken CancellationToken

Returns

Task