Skip to content

Trim when span name func is set#77

Open
leosunmo wants to merge 1 commit into
exaring:mainfrom
leosunmo:trim-when-func-set
Open

Trim when span name func is set#77
leosunmo wants to merge 1 commit into
exaring:mainfrom
leosunmo:trim-when-func-set

Conversation

@leosunmo
Copy link
Copy Markdown

@leosunmo leosunmo commented May 5, 2026

Fix for issue #32.

Simply set cfg.trimQuerySpanName = true when a SpanNameFunc is set. This should fix some confusion around having to explicitly set WithTrimSQLInSpanName when using a custom func because of

if t.trimQuerySpanName {

@obitech
Copy link
Copy Markdown
Member

obitech commented May 12, 2026

Thanks Could you add a short test as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants