Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Jan 28, 2022
0 parents commit 4beacec
Show file tree
Hide file tree
Showing 184 changed files with 21,065 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-v1-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-v1-
- name: tests
run: scripts/cibuild
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
flags: micro
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
example/weather/services/forecaster/cmd/forecaster/forecaster
example/weather/services/locator/cmd/locator/locator
example/weather/services/front/cmd/front/front
example/weather/.overmind.sock
example/weather/bin/*
coverage.out
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# clue: Microservice Instrumentation

[![Build Status](https://github.com/goadesign/clue/workflows/CI/badge.svg?branch=main&event=push)](https://github.com/goadesign/clue/actions?query=branch%3Amain+event%3Apush)
[![codecov](https://codecov.io/gh/goadesign/clue/branch/main/graph/badge.svg?token=HVP4WT1PS6)](https://codecov.io/gh/goadesign/clue)

## Overview

This repository contains microservice instrumentation packages covering the
following topics:

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

Consult the package-specific READMEs for more information.

## Example

The repository contains a [fully functional example](example/weather)
comprised of three instrumented Goa microservices.
2 changes: 2 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- '**/testsvc/**'
3 changes: 3 additions & 0 deletions example/weather/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
forecaster: bin/forecaster -debug
locator: bin/locator -debug
front: bin/front -debug
Loading

0 comments on commit 4beacec

Please sign in to comment.