An open API service indexing awesome lists of open source software.

https://github.com/xmidt-org/mockitmetrics

A simple mock implementation for go-kit metrics allowing for easy validation of metrics generating code.
https://github.com/xmidt-org/mockitmetrics

Last synced: 11 days ago
JSON representation

A simple mock implementation for go-kit metrics allowing for easy validation of metrics generating code.

Awesome Lists containing this project

README

        

# mockitmetrics
A simple mock implementation for go-kit metrics allowing for easy validation of metrics generating code.

[![Build Status](https://github.com/xmidt-org/mockitmetrics/actions/workflows/ci.yml/badge.svg)](https://github.com/xmidt-org/mockitmetrics/actions/workflows/ci.yml)
[![codecov.io](https://codecov.io/github/xmidt-org/mockitmetrics/coverage.svg?branch=main)](http://codecov.io/github/xmidt-org/mockitmetrics?branch=main)
[![Go Report Card](https://goreportcard.com/badge/github.com/xmidt-org/mockitmetrics)](https://goreportcard.com/report/github.com/xmidt-org/mockitmetrics)
[![Apache V2 License](https://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/xmidt-org/mockitmetrics/blob/main/LICENSE)
[![GitHub Release](https://img.shields.io/github/release/xmidt-org/mockitmetrics.svg)](https://github.com/xmidt-org/mockitmetrics/releases)
[![GoDoc](https://pkg.go.dev/badge/github.com/xmidt-org/mockitmetrics)](https://pkg.go.dev/github.com/xmidt-org/mockitmetrics)

## Summary

A simple library that makes testing if metrics are being recorded when they
should easy.

In general it is wise to be cautious of over-validating metrics and logs, but
it's also wise to make sure when things get a bit crazy you're covered.

## Usage

```golang
```