-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4beacec
Showing
184 changed files
with
21,065 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# clue: Microservice Instrumentation | ||
|
||
[](https://github.com/goadesign/clue/actions?query=branch%3Amain+event%3Apush) | ||
[](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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignore: | ||
- '**/testsvc/**' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.