Skip to content

Query tracking #1060

Description

@MitchellShiell

Goal

Add logging instrumentation to Arranger to capture search query volume
and tabular data downloads, then build a reporting script to aggregate
these for active researcher and platform usage metrics.

Projects Implicated

  • iMicroSeq
  • HCMI
  • OHCRN
  • ARGO
  • DDP

Instrumentation

Add structured log events for the following interactions:

  • Query execution log each time a search query is submitted via the
    Arranger GraphQL API
  • Tabular download log each time a user exports results as TSV/CSV

Each log event should capture:

  • Timestamp
  • Event type (query | download)
  • Platform / deployment identifier

Reporting

Build a script or query that aggregates log events to produce:

  • Count of distinct active users (30-day rolling window)
  • Count of query executions per period
  • Count of tabular downloads per period
    • Total downloaded records

Notes

  • Log output should be structured (JSON preferred) for easy parsing
  • Reporting script should be portable across deployments
  • Consider whether this belongs in Arranger core

Acceptance criteria

  • Structured log events emitted for query executions and downloads
  • Reporting script produces aggregate counts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions