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

Make epivis API requests more visible #38

Open
melange396 opened this issue May 7, 2024 · 2 comments
Open

Make epivis API requests more visible #38

melange396 opened this issue May 7, 2024 · 2 comments
Assignees

Comments

@melange396
Copy link
Contributor

We dont have an easy way to distinguish epivis-originated API requests in our server logs, making it somewhat difficult to measure actual usage of epivis. We could prepend/append to or replace (im not sure right now which choice would be most appropriate) the User-Agent header with something epivis specific, or we could possibly do it via the Origin or Referer headers instead.

Current headers (for me) appear to be something like:

Origin: https://delphi.cmu.edu
Referer: https://delphi.cmu.edu/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
@melange396
Copy link
Contributor Author

As mentioned in cmu-delphi/delphi-epidata#1386 (comment) , we may need to update our Referrer-Policy.

@rzats
Copy link
Contributor

rzats commented Aug 12, 2024

Currently a somewhat hacky way of tracking epivis requests is looking for API requests with years 3921 - 3924 as the upper date bound: #53 (comment)

This is caused by a bug, though, and should be patched out once this issue is closed.

@rzats rzats self-assigned this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants