Otel GO Starter
A simple means of getting the Open Telemetry global instrumentation configure and started
Get Started
Using the Otel GO Starter allows for easy configuration of the global open telemetry instrumentations.
> go get github.com/MovieStoreGuy/otel-go-starter@latest
Then all that is required to do within main is the following:
package main
import (
"context"
otelstarter "github.com/MovieStoreGuy/otel-go-starter"
)
func main() {
ctx, done := context.WithCancel(context.Background())
defer done()
defer otelstarter.Start(ctx).Shutdown()
// Start the remainder of the application
}
Further Examples
To show working examples of working with otel go starter feel free to look at the examples folder on further ideas on how to get started.