summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/tracing
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2022-08-04 11:16:59 -0600
committerGitHub <noreply@github.com>2022-08-04 11:16:59 -0600
commit17ae5acaba536e98cfa86ddcd6967801f1fa1bbe (patch)
treefab5bd3d28ad46e14bb8916b95059de816db75ec /modules/caddyhttp/tracing
parent1960a0dc117dd30fb507b390ddf93b2ef371b9ad (diff)
cmd: Use newly-available version information (#4931)
Diffstat (limited to 'modules/caddyhttp/tracing')
-rw-r--r--modules/caddyhttp/tracing/tracer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/tracing/tracer.go b/modules/caddyhttp/tracing/tracer.go
index ce23944..ddb01e8 100644
--- a/modules/caddyhttp/tracing/tracer.go
+++ b/modules/caddyhttp/tracing/tracer.go
@@ -7,7 +7,6 @@ import (
"github.com/caddyserver/caddy/v2"
- caddycmd "github.com/caddyserver/caddy/v2/cmd"
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
@@ -52,7 +51,8 @@ func newOpenTelemetryWrapper(
spanName: spanName,
}
- res, err := ot.newResource(webEngineName, caddycmd.CaddyVersion())
+ version, _ := caddy.Version()
+ res, err := ot.newResource(webEngineName, version)
if err != nil {
return ot, fmt.Errorf("creating resource error: %w", err)
}