package
0.0.6-dev-release
Repository: https://github.com/inclusi-blog/gola-utils.git
Documentation: pkg.go.dev
# README
Tracing
tools
- OpenCensus exporter
- OpenCensus collector
- Jaeger backend
Steps to add tracing
- Initialise a exporter to export traces
import "github.com/inclusi-blog/gola-utils/http/request"
tracing.Init("service-name", "collector-address")
- Instrument server
app := tracing.WithTracing(router, "api-healthz-endpoint") // to avoid tracing health endpoint
gohttp.ListenAndServe(":8080", app)
- Instrument client for inter service calls
import "go.opencensus.io/plugin/ochttp"
httpClient := &http.Client{Transport: &ochttp.Transport{}}
# Functions
No description provided by the author
No description provided by the author
can be used for default custom config of postgres.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author