This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ReaperWeb.Plugs.ScoutApmAbsinthe do | |
@moduledoc """ | |
This plug allows us to add context to our GraphQL requests in Scout. | |
We are intuiting the operation name from the query itself and attaching it | |
to a Scout layer | |
""" | |
alias ScoutApm.Internal.Layer | |
alias Reaper.MetaLogger, as: Logger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomersController < ApplicationController | |
include CustomersHelper | |
def lookup_phone | |
customer_data = Customer.customer_data_by_type('phone', params[:PhoneNumber]) | |
reset_device(customer_data) | |
Customer.customer_data_to_json(customer_data) | |
end | |
def lookup_account_id |