Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateError ¶
AnnotateError annotates the error to the given span.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a structure that wraps the lower level libraries. Its a convenience method for building and initialising services.
func NewService ¶
NewService creates a foundation Service.
func (*Service) WithJaegerExporter ¶
func (s *Service) WithJaegerExporter(collectorAddr string, sampler trace.Sampler, tags ...jaeger.Tag)
WithJaegerExporter create a new export that will report trace to the given collector endpoint. if collector is empty, the default address will be use (http://127.0.0.1:14268/api/traces). will panic on error
func (*Service) WithPrometheusExporter ¶
WithPrometheusExporter creates a new HTTP server that will provide a HTTP endpoint /metrics that will report application metrics. if addr is nil, default binding port will be :9090. will panic if cannot bind http to the addr.
Directories
¶
Path | Synopsis |
---|---|
Package log provides a application log that formalize a log format.
|
Package log provides a application log that formalize a log format. |
Package version provides a simple logic that will inject application version at build time.
|
Package version provides a simple logic that will inject application version at build time. |