package
0.0.0-20240718180451-71229a9d59e1
Repository: https://github.com/jeks313/go-mongo-slow-queries.git
Documentation: pkg.go.dev

# Functions

HistoryQueryHandler will dump the ring buffer of historical slow queries.
HistoryQueryTableHandler will output the running queries in a datatable.
No description provided by the author
No description provided by the author
RunningQueryTableHandler will output the running queries in a datatable.
SlowQueryHandler will output the current running query list.

# Variables

number of items.
microsecs, think this is 5s.

# Structs

MongoSlow holds the state of slow queries, we have to keep state as we poll every x seconds and want to emit the cumulative slow query time for each user/connection/query.
Query object to hold current query details for feeding to Prometheus metrics.