Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
/ obs Public archive

Opinionated observability package that combines logging, tracing and metrics.

License

Notifications You must be signed in to change notification settings

mixpanel/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

Contributors 4

  •  
  •  
  •  
  •  

Languages