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

Add simple usage analytics to web application #876

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Jun 8, 2023

Closes #691

The Global Biodata Coalition's application for Global Core Biodata Resources requires reporting some user metrics. Therefore, it gives motivation to add some kind of usage tracking to the Bioregistry's web application deployed at https://bioregistry.io.

There are many ways to do this. This PR pilots using https://www.apianalytics.dev/ and the SDK at https://github.com/tom-draper/api-analytics.

  • Add middleware
  • Handle passing configuration through docker environment nightmare

@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.01 ⚠️

Comparison is base (906e870) 40.80% compared to head (12ee5b3) 40.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #876      +/-   ##
==========================================
- Coverage   40.80%   40.80%   -0.01%     
==========================================
  Files         133      133              
  Lines        7746     7751       +5     
  Branches     1800     1801       +1     
==========================================
+ Hits         3161     3163       +2     
- Misses       4387     4389       +2     
- Partials      198      199       +1     
Impacted Files Coverage Δ
src/bioregistry/app/impl.py 78.04% <40.00%> (-2.48%) ⬇️
src/bioregistry/version.py 68.42% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cthoyt cthoyt changed the title Add analytics Add simple usage analytics to web application Oct 24, 2024
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.

Begin tracking traffic statistics
1 participant