ruby on rails - New Relic with Mixpanel -
when website protected login pwd gate, mixpanel not showing new relic pings on live view know pinging showing when website down. reason, since remove “gate” meaning website public, new relic every 20 seconds pings showing on mixpanel live view. terrible. both new relic , mixpanel have been integrated ruby.
any idea cause this?
thanks
class applicationcontroller < actioncontroller::base http_basic_authenticate_with name: "xxxx", password: "xxx", if: proc.new{ rails.env.staging? } # before_filter :check_beta_user before_filter :get_tracker before_filter :verify_account_existance, :except => [:destroy] include simplecaptcha::controllerhelpers def check_beta_user # return if rails.env == "development" return true unless rails.env.production? session[:beta] = true if request.referrer && request.referrer == "http://signup.mawwell.com/" return redirect_to "http://xxxxxx.com/" unless session[:beta] end def get_tracker @tracker = mixpanel::tracker.new(mixpanel_config[:key]) if current_user @user_tracker_id = current_user.email else if !session[:anonymous_uid] session[:anonymous_uid] = securerandom.uuid end @user_tracker_id = session[:anonymous_uid] end end def verify_account_existance if i18n.locale == :ar i18n.locale = :ar cookies['googtrans'] ="" cookies['googtrans']="/ar" elsif i18n.locale == :en i18n.locale = :en cookies['googtrans'] = "" cookies['googtrans']="/en" end if params.present? , params['action'] == "change_language" , params['controller'] == "users" if i18n.locale == :ar i18n.locale = :en cookies['googtrans'] ="" cookies['googtrans']="/en" elsif i18n.locale == :en i18n.locale = :ar cookies['googtrans'] = "" cookies['googtrans']="/ar" end end if user_signed_in? && !current_user.is_active? sign_out(current_user) return redirect_to new_user_session_path, :alert => "your account has been deactivated" end end rescue_from cancan::accessdenied |exception| redirect_to root_url, :alert => exception.message end end
since new relic pinger sends standard or head request , reporting if responding url returns 200, interesting find out if seeing same behavior other external or head requests. mixplanel monitoring external or head requests hit password gateway? if not, explain why seeing pings now. may want check mixpanel investigate why pinger notifications started appearing after removing password gate.
https://discuss.newrelic.com/t/issue-new-relic-pings-showing-mixpanel/1089/2
Comments
Post a Comment