This file contains hidden or 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
Could not find a response recorded for <GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?page=2&x=y [{"Accept"=>"application/json"}] ()> | |
Responses recorded are: ["<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188 [{\"Accept\"=>\"application/json\"}] ()>", "<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?x=y [{\"Accept\"=>\"application/json\"}] ()>", "<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?x=y&page=1 [{\"Accept\"=>\"application/json\"}] ()>", "<GET: /agent/e64a95b0-d661-012d-bbb0-34159e034188/classifieds?x=y&page=2 [{\"Accept\"=>\"application/json\"}] ()>"] |
This file contains hidden or 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
if defined? EventMachine::HttpRequest | |
EventMachine::HttpRequest.class_eval do | |
def setup_request_with_newrelic_trace(*args, &block) | |
metrics = ["External/#{@uri.host}/EventMachine::HttpRequest/#{args[0]}","External/#{@uri.host}/all"] | |
if NewRelic::Agent::Instrumentation::MetricFrame.recording_web_transaction? | |
metrics << "External/allWeb" | |
else | |
metrics << "External/allOther" | |
end |
This file contains hidden or 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
if defined? EventMachine::HttpRequest | |
EventMachine::HttpRequest.instance_eval do | |
def request_with_newrelic_trace(*args, &block) | |
metrics = ["External/#{@req.uri}/EventMachine::HttpRequest/#{args[0].method}","External/#{@address}/all"] | |
if NewRelic::Agent::Instrumentation::MetricFrame.recording_web_transaction? | |
metrics << "External/allWeb" | |
else | |
metrics << "External/allOther" | |
end |
This file contains hidden or 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
require 'new_relic/agent/method_tracer.rb' | |
EventMachine::HttpRequest.instance_eval do | |
include NewRelic::Agent::MethodTracer | |
add_method_tracer :delete, 'External/EventMachine::HttpRequest/delete' | |
add_method_tracer :get, 'External/EventMachine::HttpRequest/get' | |
add_method_tracer :head, 'External/EventMachine::HttpRequest/head' | |
add_method_tracer :post, 'External/EventMachine::HttpRequest/post' | |
add_method_tracer :put, 'External/EventMachine::HttpRequest/put' |
This file contains hidden or 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 ImageUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
process :convert => 'png' | |
process :resize_to_fit => [600, 600] | |
version :thumb do | |
process :convert => 'png' | |
process :resize_to_fill => [100, 100] | |
end |
This file contains hidden or 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
When \/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$\/ do |link, selector| | |
with_scope(selector) do | |
click_link(link) | |
end | |
end | |
NewerOlder