diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2022-08-04 11:16:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 11:16:59 -0600 |
commit | 17ae5acaba536e98cfa86ddcd6967801f1fa1bbe (patch) | |
tree | fab5bd3d28ad46e14bb8916b95059de816db75ec /modules/caddyhttp/tracing | |
parent | 1960a0dc117dd30fb507b390ddf93b2ef371b9ad (diff) |
cmd: Use newly-available version information (#4931)
Diffstat (limited to 'modules/caddyhttp/tracing')
-rw-r--r-- | modules/caddyhttp/tracing/tracer.go | 4 |
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) } |