Skip to content

Commit 2a3d4f2

Browse files
committed
add code coverage
1 parent 011001b commit 2a3d4f2

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/go.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ jobs:
2525
run: go build -v ./...
2626

2727
- name: Test
28-
run: go test -v ./...
28+
run: go test -p 1 ./... -coverprofile=coverage.out
29+
30+
- name: Upload to Codecov
31+
uses: codecov/codecov-action@v4
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
files: coverage.out

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# FlowTracker
22

3+
![CI](https://github.com/spdeepak/flowtracker/actions/workflows/go.yml/badge.svg)
4+
[![codecov](https://codecov.io/gh/spdeepak/flowtracker/branch/main/graph/badge.svg)](https://codecov.io/gh/spdeepak/flowtracker)
5+
36
**FlowTracker** is a lightweight, thread-safe observability library for Golang microservices. It tracks the lifecycle of an API request as it flows through your application, capturing execution time, hierarchy, and metadata.
47

58
Unlike full-blown distributed tracing solutions (like Jaeger/OpenTelemetry) which can be heavy to set up, FlowTracker is designed for **single-service internal flow analysis**. It produces hierarchical JSON data perfectly structured for generating **Sankey Diagrams**, **Gantt Charts**, or **Execution Trees**.

0 commit comments

Comments
 (0)