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: log who calls sql_json #92

Merged
merged 2 commits into from
Dec 17, 2019
Merged

Conversation

khtruong
Copy link

@khtruong khtruong commented Dec 17, 2019

Log who calls the lyft/sql_json endpoint

👀 @betodealmeida @DiggidyDave

log_params = {
"user_agent": cast(Optional[str], request.headers.get("USER_AGENT"))
}
return self.sql_json_exec(request_json, log_params)

Choose a reason for hiding this comment

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

You also need to modify sql_json_exec to receive the second parameter, no?

Copy link
Author

Choose a reason for hiding this comment

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

Yup! That was added in apache#8826 and lyft-master has been updated with the latest apache.

@codecov-io
Copy link

codecov-io commented Dec 17, 2019

Codecov Report

Merging #92 into lyft-master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           lyft-master     #92   +/-   ##
===========================================
  Coverage         58.1%   58.1%           
===========================================
  Files              364     364           
  Lines            11602   11602           
  Branches          2826    2826           
===========================================
  Hits              6741    6741           
  Misses            4669    4669           
  Partials           192     192

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb86447...1d9d0d6. Read the comment docs.

@betodealmeida betodealmeida merged commit e8ef24f into lyft-master Dec 17, 2019
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.

3 participants