feat(libreoffice): lift conversions-since-restart and queue depth onto libreoffice span

This commit is contained in:
Julien Neuhart
2026-06-02 19:30:21 +02:00
parent f6069ef84f
commit c24883b8a1

View File

@@ -622,6 +622,11 @@ func (a *Api) Pdf(ctx context.Context, logger *slog.Logger, inputPath, outputPat
)
defer span.End()
span.SetAttributes(
attribute.Int64("gotenberg.queue.depth_at_arrival", a.supervisor.ReqQueueSize()),
attribute.Int64("gotenberg.conversions_since_last_restart", a.supervisor.ConversionsSinceRestart()),
)
start := time.Now()
var conversionStart time.Time