feat(otel): switch from software name to binary path

This commit is contained in:
Julien Neuhart
2026-03-28 13:31:28 +01:00
parent ebf0548d19
commit 7549a69f71
6 changed files with 59 additions and 59 deletions

View File

@@ -608,7 +608,7 @@ func (a *Api) LibreOffice() (Uno, error) {
func (a *Api) Pdf(ctx context.Context, logger *slog.Logger, inputPath, outputPath string, options Options) error {
ctx, span := gotenberg.Tracer().Start(ctx, "libreoffice.Pdf",
trace.WithSpanKind(trace.SpanKindClient),
trace.WithAttributes(semconv.ServerAddress("libreoffice")),
trace.WithAttributes(semconv.ServerAddress(a.args.binPath)),
)
defer span.End()