Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for custom span names #48

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

KolbyMcGarrah
Copy link

We would like to have the ability to customize the names of the spans created on sql operations. I've added the following to be able to set the span name without any changes needed to codebases already using the library.

Added an option to TraceOptions struct to allow us to set custom span names from context.
Updated all context client operations to support using the FormatSpanName func to set the custom span name.
Added a WithFormatSpanName func to functionally set the FormatSpanName option.

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.

1 participant