Skip to content
/ obs Public
forked from mixpanel/obs

Opinionated observability package that combines logging, tracing and metrics.

License

Notifications You must be signed in to change notification settings

dgpc/obs

 
 

Repository files navigation

obs GoDoc Build Status

Fast and buffered stats, logging and tracing in Go.

Installation

go get -u github.com/mixpanel/obs

Abstract

Mixpanel obs provides a unified interface for emitting metrics, logging as well as tracing.

FlightRecorder is the unified interface. Make an instance of flight recorder or use one of the utility methods.

fr := obs.InitGCP(ctx, "my-service", "INFO")

or

fr := NewFlightRecorder("my-service", mr, logger, tracer)

After obtaining a FlightRecorder, for telemetry you must obtain a span.

fs := fr.WithSpan(ctx)

fs.Info("my info log")
fs.Incr("my.counter")

Released under the [MIT License](LICENSE).

About

Opinionated observability package that combines logging, tracing and metrics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.6%
  • Makefile 1.4%