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: allow a metadata key to be required for a query to be logged #19200

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

adrian-thurston
Copy link
Contributor

@adrian-thurston adrian-thurston commented Aug 4, 2020

Can specify that a key must be present in the query response metadata before
LoggingProxyQueryService logs the query. Will use this in gateway to only log
the query when the connection to queryd fails.

https://github.com/influxdata/idpe/issues/8013

@adrian-thurston adrian-thurston requested a review from wolffcm August 4, 2020 09:32
Copy link

@wolffcm wolffcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, can you add a test to logging_test.go?

@adrian-thurston adrian-thurston force-pushed the feat/query-log-conn-err branch from a6bff75 to ebcc6b7 Compare August 5, 2020 10:04
Can specify that a key must be present in the query response metadata before
LoggingProxyQueryService logs the query. Will use this in gateway to only log
the query when the connection to queryd fails.
@adrian-thurston adrian-thurston force-pushed the feat/query-log-conn-err branch from ebcc6b7 to 6488371 Compare August 5, 2020 13:30
Copy link

@wolffcm wolffcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the test.

@adrian-thurston
Copy link
Contributor Author

Looks great, thanks for the test.

No problem, there was already some nice testing infrastructure present. Made it easy.

@adrian-thurston adrian-thurston merged commit 08cfb3f into master Aug 5, 2020
@adrian-thurston adrian-thurston deleted the feat/query-log-conn-err branch August 5, 2020 15:14
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