Categorygithub.com/blacklane/go-libs/tracking
modulepackage
0.3.1
Repository: https://github.com/blacklane/go-libs.git
Documentation: pkg.go.dev

# README

tracking

tracking is a working in progress lib for tracking/distributed trace resources

Installation

go get -u github.com/blacklane/go-libs/tracking

Getting Started: WIP

For now there are:

  • UUID in the context
  • HTTP middleware to add/read uuid from context and request headers
  • Request depth, rout and tree path

To see full API:

# Install godoc
GO111MODULE=off go install golang.org/x/tools/cmd/godoc

# run godoc
godoc -http=localhost:6060

then head to:

# Functions

ContextWithID returns a copy of the parent context with a Version 1 UUID on it.
IDFromContext returns the ID in the context, is none is found an empty string is returned.
SetContextID returns a copy of the parent context with the id set to id.