You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The accelerated-container-image project includes OpenTelemetry (OTEL) tracing support to help monitor and debug image conversion operations. This document describes how to use and configure tracing in the project.
4
+
5
+
## Overview
6
+
7
+
Tracing is implemented using OpenTelemetry, which provides detailed insights into the image conversion process. Key operations that are traced include:
8
+
9
+
- Overall image conversion process
10
+
- Layer conversion operations
11
+
- Individual layer application and processing
12
+
- Remote layer operations (when using remote storage)
13
+
14
+
## Configuration
15
+
16
+
Tracing can be configured using standard OpenTelemetry environment variables:
17
+
18
+
-`OTEL_SERVICE_NAME`: Sets the service name for traces (default: "accelerated-container-image")
19
+
-`OTEL_EXPORTER_OTLP_ENDPOINT`: The endpoint where traces should be sent (e.g., "http://localhost:4317")
20
+
-`OTEL_EXPORTER_OTLP_PROTOCOL`: The protocol to use (default: "grpc")
21
+
-`ENVIRONMENT`: The environment name to be included in traces (e.g., "production", "staging")
22
+
23
+
## Key Spans and Attributes
24
+
25
+
The following spans are created during image conversion:
26
+
27
+
### Convert Operation
28
+
- Name: `Convert`
29
+
- Attributes:
30
+
-`fsType`: The filesystem type being used
31
+
-`layerCount`: Number of layers in the source image
32
+
33
+
### Layer Conversion
34
+
- Name: `convertLayers`
35
+
- Attributes:
36
+
-`fsType`: The filesystem type being used
37
+
-`layerCount`: Number of layers to convert
38
+
39
+
### Layer Application
40
+
- Name: `applyOCIV1LayerInObd`
41
+
- Attributes:
42
+
-`layerDigest`: The digest of the layer being applied
0 commit comments