README ¶ Logrus OpenTelemetry instrumentation example Quickstart To install otellogrus instrumentation: go get github.com/uptrace/uptrace-go/extra/otellogrus Then add OpenTelemetry hook: logrus.AddHook(otellogrus.NewHook()) And use WithContext to propagate the active span: logrus.WithContext(ctx). WithError(errors.New("hello world")). WithField("foo", "bar"). Error("hello from logrus") Example To run this example: UPTRACE_DSN="https://<token>@api.uptrace.dev/<project_id>" go run . Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.