clue

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: MIT

README

clue: Microservice Instrumentation

Build Status codecov Go Reference

Overview

clue provides a set of Go packages for instrumenting microservices. The emphasis is on simplicity and ease of use. Although not a requirement, clue works best when used in microservices written using Goa.

clue covers the following topics:

  • Logging: the log package provides a context-based logging API that intelligently selects what to log.
  • Metrics: the metrics package makes it possible for services to expose a Prometheus compatible /metrics HTTP endpoint.
  • Health checks: the health package provides a simple way for services to expose a health check endpoint.
  • Dependency mocks: the mock package provides a way to mock downstream dependencies for testing.
  • Tracing: the trace package conforms to the OpenTelemetry specification to trace requests.

The weather example illustrates how to use clue to instrument a system of Goa microservices. The example comes with a set of scripts that can be used to compile and start the system as well as a complete Grafana stack to query metrics and traces. See the README for more information.

Contributing

See Contributing

Directories

Path Synopsis
example
weather/design
Package design contains shared design resources.
Package design contains shared design resources.
weather/services/forecaster/clients/weathergov
Package weathergov provides a client for the Weather.gov API described at https://www.weather.gov/documentation/services-web-api#
Package weathergov provides a client for the Weather.gov API described at https://www.weather.gov/documentation/services-web-api#
weather Module
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL