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

feat(bunotel): add option to enable formatting of queries #547

Merged
merged 2 commits into from
May 28, 2022
Merged

feat(bunotel): add option to enable formatting of queries #547

merged 2 commits into from
May 28, 2022

Conversation

matoous
Copy link
Contributor

@matoous matoous commented May 26, 2022

Disable formatting by default (breaing change)
and add bunotel option that enables formatting.

Formatting has potential to leak information into the traces
as such not formatting the query by default seems like
safer option.

Fixes: #546

Disable formatting by default (breaing change)
and add bunotel option that enables formatting.

Formatting has potential to leak information into the traces
as such not formatting the query by default seems like
safer option.
@matoous
Copy link
Contributor Author

matoous commented May 26, 2022

@vmihailenco would you take a look please? This is breaking change, so if you want the default to stay as it is I will have to invert the logic and have option WithUnfromattedQuery or maybe WithFormatting that would take boolean/flag param.

@vmihailenco
Copy link
Member

@matoous thanks for the PR.

Let's change WithFormatting to accept a boolean flag - I have some reasoning here. I am fine with having it disabled by default.

Also, what about renaming WithFormatting to WithFormattedQuery?

@matoous
Copy link
Contributor Author

matoous commented May 28, 2022

@vmihailenco thanks for feedback, updated.

@vmihailenco
Copy link
Member

Thanks 👍

@vmihailenco vmihailenco merged commit b9c768c into uptrace:master May 28, 2022
@matoous matoous deleted the md/bunotel-formatting branch May 28, 2022 13:13
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.

[bunotel] option to always use unformatted query
2 participants