// FromContext returns a newrelic.Tx from the context. func FromContext(ctx context.Context) (Tx, bool) { t, ok := ctx.Value(txKey).(Tx) return t, ok }