github.com/xmidt-org/golang-money
go get github.com/xmidt-org/golang-money

github.com/xmidt-org/golang-money

This is the Go implementation of Money

by xmidt-org

v0.0.0-20210104212747-f1545a069c11 (see all)License:Apache-2.0
go get github.com/xmidt-org/golang-money
Readme

Money

Distributed Tracing using Go

This is the Go implementation of Money

Build Status codecov.io Go Report Card PkgGoDev Quality Gate Status

A Money header looks like the following

Money: trace-id=YourTraceId;parent-id=12345;span-id=12346;span-name=YourSpanName;start-time=2016-02-15T20:30:46.782538292Z;span-duration=3000083865;error-code=200;span-success=true
Span DataDescription
spanIdcurrent span's identifier
traceIdname for the trace
parentIdcurrent span's parent identifier
spanNamecurrent span's name
startTimecurrent span's start time
spanDurationcurrent span's duration time
errorCodecurrent span's error code
spanSuccessWas the current span successful

Functionality to handle the Money header can be added in two ways

1. Decorate you're handlers with the Money handler

Money.Decorate( [http.Handler], Money.AddToHandler( [spanName] ))

2. Use the Money Begin and End functions by adding them to your http.Handler

Start server and make a request that includes a Money header

The basics to start a Money trace are a trace id name and starting span id number.

Money:trace-id=YourTraceId;span-id=12345;

GitHub Stars

12

LAST COMMIT

1yr ago

MAINTAINERS

0

CONTRIBUTORS

15

OPEN ISSUES

16

OPEN PRs

5
VersionTagPublished
v0.0.0-20210104212747-f1545a069c11
1yr ago
v0.0.0-20201223224530-95d6d143b47c
1yr ago
v0.0.0-20201217203843-cd9e544eabf2
1yr ago
v0.0.0-20201212022440-94e943195813
1yr ago
No alternatives found
No tutorials found
Add a tutorial