reddit / baseplate.go

Reddit's Service Framework in Go
https://pkg.go.dev/github.com/reddit/baseplate.go
BSD 3-Clause "New" or "Revised" License
92 stars 77 forks source link

tracing: use opentracing.GlobalTracer instead of globalTracer #635

Open redloaf opened 11 months ago

redloaf commented 11 months ago

๐Ÿ’ธ TL;DR

There are some places where globalTracer is referenced instead of the opentracing.GlobalTracer(). If these ever differ (which is entirely possible), this breaks assumptions about how this library integrates with opentracing.

๐Ÿ“œ Details

If nil is passed as the tracer to newTrace (which is incredibly common), use opentracing's global tracer instead of baseplate's.

๐Ÿงช Testing Steps / Validation

โœ… Checks