diff --git a/options.go b/options.go index 253366d..aaa3e7e 100644 --- a/options.go +++ b/options.go @@ -98,6 +98,7 @@ func WithSpanNameFunc(fn SpanNameFunc) Option { // By default, the whole SQL statement is used as a span name, where applicable. func WithSpanNameCtxFunc(fn SpanNameCtxFunc) Option { return optionFunc(func(cfg *tracerConfig) { + cfg.trimQuerySpanName = true cfg.spanNameCtxFunc = fn }) }