Since Buildx v0.13.0 we support exporting OpenTelemetry metrics for the build command. We currently track:
|
newLocalSourceTransferMetricRecorder(meter, attrs), |
|
newImageSourceTransferMetricRecorder(meter, attrs), |
|
newExecMetricRecorder(meter, attrs), |
|
newExportImageMetricRecorder(meter, attrs), |
|
newIdleMetricRecorder(meter, attrs), |
|
newLintMetricRecorder(meter, attrs), |
We should do the same for bake with slight changes/enhancements. For example we should track the underlying attributes within the loaded bake definition for built targets and one thing that would be interesting to set along the attributes is what kind of files are being consumed (hcl, compose, json) when merging the definition. This would help understand user's workflow.
Since Buildx v0.13.0 we support exporting OpenTelemetry metrics for the
buildcommand. We currently track:buildx/util/progress/metricwriter.go
Lines 29 to 34 in 3b25e3f
We should do the same for
bakewith slight changes/enhancements. For example we should track the underlying attributes within the loaded bake definition for built targets and one thing that would be interesting to set along the attributes is what kind of files are being consumed (hcl, compose, json) when merging the definition. This would help understand user's workflow.