newrelic_rpm 2.10.8 → 2.11.0.beta
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of newrelic_rpm might be problematic. Click here for more details.
- data/CHANGELOG +15 -3
- data/lib/new_relic/agent.rb +17 -6
- data/lib/new_relic/agent/agent.rb +98 -77
- data/lib/new_relic/agent/busy_calculator.rb +1 -1
- data/lib/new_relic/agent/error_collector.rb +6 -3
- data/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb +1 -0
- data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +0 -2
- data/lib/new_relic/agent/instrumentation/memcache.rb +0 -1
- data/lib/new_relic/agent/instrumentation/metric_frame.rb +8 -2
- data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +3 -3
- data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +10 -0
- data/lib/new_relic/agent/method_tracer.rb +1 -1
- data/lib/new_relic/agent/shim_agent.rb +1 -1
- data/lib/new_relic/agent/stats_engine.rb +1 -1
- data/lib/new_relic/agent/stats_engine/samplers.rb +2 -2
- data/lib/new_relic/control.rb +6 -3
- data/lib/new_relic/rack/metric_app.rb +4 -4
- data/lib/new_relic/version.rb +3 -3
- data/newrelic.yml +3 -3
- data/newrelic_rpm.gemspec +4 -192
- data/test/new_relic/agent/rpm_agent_test.rb +15 -2
- data/test/new_relic/agent/task_instrumentation_test.rb +3 -2
- metadata +12 -197
- data/rdoc/classes/NewRelic.html +0 -293
- data/rdoc/classes/NewRelic/Agent.html +0 -810
- data/rdoc/classes/NewRelic/Agent/Agent.html +0 -742
- data/rdoc/classes/NewRelic/Agent/BackgroundLoadingError.html +0 -111
- data/rdoc/classes/NewRelic/Agent/BusyCalculator.html +0 -309
- data/rdoc/classes/NewRelic/Agent/CollectionHelper.html +0 -196
- data/rdoc/classes/NewRelic/Agent/ErrorCollector.html +0 -378
- data/rdoc/classes/NewRelic/Agent/ForceDisconnectException.html +0 -118
- data/rdoc/classes/NewRelic/Agent/ForceRestartException.html +0 -117
- data/rdoc/classes/NewRelic/Agent/IgnoreSilentlyException.html +0 -118
- data/rdoc/classes/NewRelic/Agent/Instrumentation.html +0 -174
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ActiveRecordInstrumentation.html +0 -221
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation.html +0 -349
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation/ClassMethods.html +0 -277
- data/rdoc/classes/NewRelic/Agent/Instrumentation/DelayedJobInstrumentation.html +0 -112
- data/rdoc/classes/NewRelic/Agent/Instrumentation/MetricFrame.html +0 -1007
- data/rdoc/classes/NewRelic/Agent/Instrumentation/Rack.html +0 -321
- data/rdoc/classes/NewRelic/Agent/Instrumentation/Sinatra.html +0 -176
- data/rdoc/classes/NewRelic/Agent/LicenseException.html +0 -117
- data/rdoc/classes/NewRelic/Agent/MethodTracer.html +0 -150
- data/rdoc/classes/NewRelic/Agent/MethodTracer/ClassMethods.html +0 -295
- data/rdoc/classes/NewRelic/Agent/MethodTracer/InstanceMethods.html +0 -284
- data/rdoc/classes/NewRelic/Agent/PostTooBigException.html +0 -120
- data/rdoc/classes/NewRelic/Agent/Sampler.html +0 -314
- data/rdoc/classes/NewRelic/Agent/Sampler/Unsupported.html +0 -117
- data/rdoc/classes/NewRelic/Agent/Samplers.html +0 -126
- data/rdoc/classes/NewRelic/Agent/Samplers/CpuSampler.html +0 -327
- data/rdoc/classes/NewRelic/Agent/Samplers/DelayedJobLockSampler.html +0 -296
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler.html +0 -321
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/Base.html +0 -186
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/JavaHeapSampler.html +0 -173
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ProcStatus.html +0 -216
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ShellPS.html +0 -207
- data/rdoc/classes/NewRelic/Agent/Samplers/ObjectSampler.html +0 -222
- data/rdoc/classes/NewRelic/Agent/ServerError.html +0 -117
- data/rdoc/classes/NewRelic/Agent/ShimAgent.html +0 -297
- data/rdoc/classes/NewRelic/Agent/StatsEngine.html +0 -204
- data/rdoc/classes/NewRelic/Agent/StatsEngine/MetricStats.html +0 -441
- data/rdoc/classes/NewRelic/Agent/StatsEngine/Samplers.html +0 -237
- data/rdoc/classes/NewRelic/Agent/StatsEngine/ScopeStackElement.html +0 -178
- data/rdoc/classes/NewRelic/Agent/StatsEngine/Transactions.html +0 -385
- data/rdoc/classes/NewRelic/Agent/TransactionSampleBuilder.html +0 -505
- data/rdoc/classes/NewRelic/Agent/TransactionSampler.html +0 -690
- data/rdoc/classes/NewRelic/Agent/WorkerLoop.html +0 -305
- data/rdoc/classes/NewRelic/Agent/WorkerLoop/LoopTask.html +0 -224
- data/rdoc/classes/NewRelic/ApdexStats.html +0 -196
- data/rdoc/classes/NewRelic/BasicStats.html +0 -113
- data/rdoc/classes/NewRelic/ChainedCall.html +0 -180
- data/rdoc/classes/NewRelic/Commands.html +0 -112
- data/rdoc/classes/NewRelic/Commands/CommandFailure.html +0 -167
- data/rdoc/classes/NewRelic/Commands/Deployments.html +0 -285
- data/rdoc/classes/NewRelic/Control.html +0 -1760
- data/rdoc/classes/NewRelic/Control/External.html +0 -148
- data/rdoc/classes/NewRelic/Control/Merb.html +0 -227
- data/rdoc/classes/NewRelic/Control/Rails.html +0 -542
- data/rdoc/classes/NewRelic/Control/Ruby.html +0 -266
- data/rdoc/classes/NewRelic/Control/Sinatra.html +0 -178
- data/rdoc/classes/NewRelic/DelayedJobInjection.html +0 -118
- data/rdoc/classes/NewRelic/Histogram.html +0 -226
- data/rdoc/classes/NewRelic/Histogram/Bucket.html +0 -319
- data/rdoc/classes/NewRelic/Histogram/Shim.html +0 -144
- data/rdoc/classes/NewRelic/LocalEnvironment.html +0 -572
- data/rdoc/classes/NewRelic/MerbBootLoader.html +0 -146
- data/rdoc/classes/NewRelic/MethodTraceStats.html +0 -250
- data/rdoc/classes/NewRelic/MetricData.html +0 -347
- data/rdoc/classes/NewRelic/MetricParser.html +0 -747
- data/rdoc/classes/NewRelic/MetricParser/ActionMailer.html +0 -170
- data/rdoc/classes/NewRelic/MetricParser/ActiveMerchant.html +0 -267
- data/rdoc/classes/NewRelic/MetricParser/ActiveRecord.html +0 -250
- data/rdoc/classes/NewRelic/MetricParser/Controller.html +0 -363
- data/rdoc/classes/NewRelic/MetricParser/ControllerCPU.html +0 -319
- data/rdoc/classes/NewRelic/MetricParser/Errors.html +0 -170
- data/rdoc/classes/NewRelic/MetricParser/External.html +0 -339
- data/rdoc/classes/NewRelic/MetricParser/MemCache.html +0 -340
- data/rdoc/classes/NewRelic/MetricParser/OtherTransaction.html +0 -205
- data/rdoc/classes/NewRelic/MetricParser/View.html +0 -381
- data/rdoc/classes/NewRelic/MetricParser/WebFrontend.html +0 -182
- data/rdoc/classes/NewRelic/MetricParser/WebService.html +0 -172
- data/rdoc/classes/NewRelic/MetricSpec.html +0 -406
- data/rdoc/classes/NewRelic/Metrics.html +0 -138
- data/rdoc/classes/NewRelic/NoticedError.html +0 -200
- data/rdoc/classes/NewRelic/Rack.html +0 -112
- data/rdoc/classes/NewRelic/Rack/MetricApp.html +0 -193
- data/rdoc/classes/NewRelic/Rack/Status.html +0 -165
- data/rdoc/classes/NewRelic/ScopedMethodTraceStats.html +0 -225
- data/rdoc/classes/NewRelic/Stats.html +0 -917
- data/rdoc/classes/NewRelic/StatsBase.html +0 -346
- data/rdoc/classes/NewRelic/TransactionAnalysis.html +0 -269
- data/rdoc/classes/NewRelic/TransactionAnalysis/SegmentSummary.html +0 -338
- data/rdoc/classes/NewRelic/TransactionSample.html +0 -766
- data/rdoc/classes/NewRelic/TransactionSample/CompositeSegment.html +0 -195
- data/rdoc/classes/NewRelic/TransactionSample/FakeSegment.html +0 -113
- data/rdoc/classes/NewRelic/TransactionSample/IDGenerator.html +0 -178
- data/rdoc/classes/NewRelic/TransactionSample/Segment.html +0 -920
- data/rdoc/classes/NewRelic/TransactionSample/SummarySegment.html +0 -180
- data/rdoc/classes/NewRelic/VersionNumber.html +0 -338
- data/rdoc/classes/NewRelicApi.html +0 -270
- data/rdoc/classes/NewRelicApi/Account.html +0 -178
- data/rdoc/classes/NewRelicApi/Account/AccountUsage.html +0 -111
- data/rdoc/classes/NewRelicApi/Account/AccountView.html +0 -146
- data/rdoc/classes/NewRelicApi/Application.html +0 -139
- data/rdoc/classes/NewRelicApi/Application/Agent.html +0 -119
- data/rdoc/classes/NewRelicApi/Deployment.html +0 -123
- data/rdoc/classes/NewRelicApi/Subscription.html +0 -111
- data/rdoc/classes/NewRelicApi/ThresholdValue.html +0 -174
- data/rdoc/classes/NewRelicApi/User.html +0 -111
- data/rdoc/created.rid +0 -1
- data/rdoc/files/CHANGELOG.html +0 -649
- data/rdoc/files/LICENSE.html +0 -143
- data/rdoc/files/lib/new_relic/agent/agent_rb.html +0 -113
- data/rdoc/files/lib/new_relic/agent/busy_calculator_rb.html +0 -115
- data/rdoc/files/lib/new_relic/agent/chained_call_rb.html +0 -107
- data/rdoc/files/lib/new_relic/agent/collection_helper_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/error_collector_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/instrumentation/active_merchant_rb.html +0 -107
- data/rdoc/files/lib/new_relic/agent/instrumentation/active_record_instrumentation_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/authlogic_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/instrumentation/controller_instrumentation_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/data_mapper_rb.html +0 -191
- data/rdoc/files/lib/new_relic/agent/instrumentation/delayed_job_instrumentation_rb.html +0 -109
- data/rdoc/files/lib/new_relic/agent/instrumentation/memcache_rb.html +0 -152
- data/rdoc/files/lib/new_relic/agent/instrumentation/merb/controller_rb.html +0 -155
- data/rdoc/files/lib/new_relic/agent/instrumentation/merb/errors_rb.html +0 -107
- data/rdoc/files/lib/new_relic/agent/instrumentation/metric_frame_rb.html +0 -113
- data/rdoc/files/lib/new_relic/agent/instrumentation/net_rb.html +0 -172
- data/rdoc/files/lib/new_relic/agent/instrumentation/passenger_instrumentation_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/instrumentation/rack_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_controller_rb.html +0 -152
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_web_service_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/errors_rb.html +0 -167
- data/rdoc/files/lib/new_relic/agent/instrumentation/sinatra_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/method_tracer_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/sampler_rb.html +0 -116
- data/rdoc/files/lib/new_relic/agent/samplers/cpu_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/samplers/delayed_job_lock_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/samplers/memory_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/samplers/object_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/shim_agent_rb.html +0 -108
- data/rdoc/files/lib/new_relic/agent/stats_engine/metric_stats_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/stats_engine/samplers_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/stats_engine/transactions_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/stats_engine_rb.html +0 -110
- data/rdoc/files/lib/new_relic/agent/transaction_sampler_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent/worker_loop_rb.html +0 -101
- data/rdoc/files/lib/new_relic/agent_rb.html +0 -204
- data/rdoc/files/lib/new_relic/commands/deployments_rb.html +0 -119
- data/rdoc/files/lib/new_relic/commands/new_relic_commands_rb.html +0 -108
- data/rdoc/files/lib/new_relic/control/external_rb.html +0 -117
- data/rdoc/files/lib/new_relic/control/merb_rb.html +0 -101
- data/rdoc/files/lib/new_relic/control/rails_rb.html +0 -108
- data/rdoc/files/lib/new_relic/control/ruby_rb.html +0 -110
- data/rdoc/files/lib/new_relic/control/sinatra_rb.html +0 -108
- data/rdoc/files/lib/new_relic/control_rb.html +0 -116
- data/rdoc/files/lib/new_relic/delayed_job_injection_rb.html +0 -180
- data/rdoc/files/lib/new_relic/histogram_rb.html +0 -114
- data/rdoc/files/lib/new_relic/local_environment_rb.html +0 -111
- data/rdoc/files/lib/new_relic/merbtasks_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_data_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/action_mailer_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/active_merchant_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/active_record_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/controller_cpu_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/controller_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/errors_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/external_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/mem_cache_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/other_transaction_rb.html +0 -108
- data/rdoc/files/lib/new_relic/metric_parser/view_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser/web_frontend_rb.html +0 -107
- data/rdoc/files/lib/new_relic/metric_parser/web_service_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_parser_rb.html +0 -101
- data/rdoc/files/lib/new_relic/metric_spec_rb.html +0 -108
- data/rdoc/files/lib/new_relic/metrics_rb.html +0 -101
- data/rdoc/files/lib/new_relic/noticed_error_rb.html +0 -107
- data/rdoc/files/lib/new_relic/rack/metric_app_rb.html +0 -108
- data/rdoc/files/lib/new_relic/rack_app_rb.html +0 -110
- data/rdoc/files/lib/new_relic/recipes_rb.html +0 -128
- data/rdoc/files/lib/new_relic/stats_rb.html +0 -101
- data/rdoc/files/lib/new_relic/transaction_analysis_rb.html +0 -108
- data/rdoc/files/lib/new_relic/transaction_sample_rb.html +0 -101
- data/rdoc/files/lib/new_relic/version_rb.html +0 -101
- data/rdoc/files/lib/new_relic_api_rb.html +0 -145
- data/rdoc/files/lib/newrelic_rpm_rb.html +0 -147
- data/rdoc/files/lib/tasks/all_rb.html +0 -107
- data/rdoc/fr_class_index.html +0 -134
- data/rdoc/fr_file_index.html +0 -103
- data/rdoc/fr_method_index.html +0 -568
- data/rdoc/index.html +0 -24
- data/rdoc/rdoc-style.css +0 -208
@@ -1,505 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: NewRelic::Agent::TransactionSampleBuilder</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">NewRelic::Agent::TransactionSampleBuilder</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/new_relic/agent/transaction_sampler_rb.html">
|
59
|
-
lib/new_relic/agent/transaction_sampler.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
a builder is created with every sampled transaction, to dynamically
|
84
|
-
generate the sampled data. It is a thread-local object, and is not accessed
|
85
|
-
by any other thread so no need for synchronization.
|
86
|
-
</p>
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div id="method-list">
|
94
|
-
<h3 class="section-bar">Methods</h3>
|
95
|
-
|
96
|
-
<div class="name-list">
|
97
|
-
<a href="#M000277">finish_trace</a>
|
98
|
-
<a href="#M000279">freeze</a>
|
99
|
-
<a href="#M000274">ignore_transaction</a>
|
100
|
-
<a href="#M000273">ignored?</a>
|
101
|
-
<a href="#M000271">new</a>
|
102
|
-
<a href="#M000283">sample</a>
|
103
|
-
<a href="#M000272">sample_id</a>
|
104
|
-
<a href="#M000278">scope_depth</a>
|
105
|
-
<a href="#M000280">set_profile</a>
|
106
|
-
<a href="#M000282">set_transaction_cpu_time</a>
|
107
|
-
<a href="#M000281">set_transaction_info</a>
|
108
|
-
<a href="#M000275">trace_entry</a>
|
109
|
-
<a href="#M000276">trace_exit</a>
|
110
|
-
</div>
|
111
|
-
</div>
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
|
116
|
-
<!-- if includes -->
|
117
|
-
<div id="includes">
|
118
|
-
<h3 class="section-bar">Included Modules</h3>
|
119
|
-
|
120
|
-
<div id="includes-list">
|
121
|
-
<span class="include-name"><a href="CollectionHelper.html">CollectionHelper</a></span>
|
122
|
-
</div>
|
123
|
-
</div>
|
124
|
-
|
125
|
-
<div id="section">
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<div id="attribute-list">
|
132
|
-
<h3 class="section-bar">Attributes</h3>
|
133
|
-
|
134
|
-
<div class="name-list">
|
135
|
-
<table>
|
136
|
-
<tr class="top-aligned-row context-row">
|
137
|
-
<td class="context-item-name">current_segment</td>
|
138
|
-
<td class="context-item-value"> [R] </td>
|
139
|
-
<td class="context-item-desc"></td>
|
140
|
-
</tr>
|
141
|
-
<tr class="top-aligned-row context-row">
|
142
|
-
<td class="context-item-name">sample</td>
|
143
|
-
<td class="context-item-value"> [R] </td>
|
144
|
-
<td class="context-item-desc"></td>
|
145
|
-
</tr>
|
146
|
-
</table>
|
147
|
-
</div>
|
148
|
-
</div>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
<!-- if method_list -->
|
153
|
-
<div id="methods">
|
154
|
-
<h3 class="section-bar">Public Class methods</h3>
|
155
|
-
|
156
|
-
<div id="method-M000271" class="method-detail">
|
157
|
-
<a name="M000271"></a>
|
158
|
-
|
159
|
-
<div class="method-heading">
|
160
|
-
<a href="#M000271" class="method-signature">
|
161
|
-
<span class="method-name">new</span><span class="method-args">(time=nil)</span>
|
162
|
-
</a>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="method-description">
|
166
|
-
<p><a class="source-toggle" href="#"
|
167
|
-
onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
|
168
|
-
<div class="method-source-code" id="M000271-source">
|
169
|
-
<pre>
|
170
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 228</span>
|
171
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">time</span>=<span class="ruby-keyword kw">nil</span>)
|
172
|
-
<span class="ruby-identifier">time</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_f</span>
|
173
|
-
<span class="ruby-ivar">@sample</span> = <span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">TransactionSample</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">time</span>)
|
174
|
-
<span class="ruby-ivar">@sample_start</span> = <span class="ruby-identifier">time</span>
|
175
|
-
<span class="ruby-ivar">@current_segment</span> = <span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">root_segment</span>
|
176
|
-
<span class="ruby-keyword kw">end</span>
|
177
|
-
</pre>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
183
|
-
|
184
|
-
<div id="method-M000277" class="method-detail">
|
185
|
-
<a name="M000277"></a>
|
186
|
-
|
187
|
-
<div class="method-heading">
|
188
|
-
<a href="#M000277" class="method-signature">
|
189
|
-
<span class="method-name">finish_trace</span><span class="method-args">(time)</span>
|
190
|
-
</a>
|
191
|
-
</div>
|
192
|
-
|
193
|
-
<div class="method-description">
|
194
|
-
<p><a class="source-toggle" href="#"
|
195
|
-
onclick="toggleCode('M000277-source');return false;">[Source]</a></p>
|
196
|
-
<div class="method-source-code" id="M000277-source">
|
197
|
-
<pre>
|
198
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 258</span>
|
199
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finish_trace</span>(<span class="ruby-identifier">time</span>)
|
200
|
-
<span class="ruby-comment cmt"># This should never get called twice, but in a rare case that we can't reproduce in house it does.</span>
|
201
|
-
<span class="ruby-comment cmt"># log forensics and return gracefully</span>
|
202
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">frozen?</span>
|
203
|
-
<span class="ruby-identifier">log</span> = <span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">Control</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">log</span>
|
204
|
-
<span class="ruby-identifier">log</span>.<span class="ruby-identifier">error</span> <span class="ruby-node">"Unexpected double-freeze of Transaction Trace Object: \n#{@sample.to_s}"</span>
|
205
|
-
<span class="ruby-keyword kw">return</span>
|
206
|
-
<span class="ruby-keyword kw">end</span>
|
207
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">root_segment</span>.<span class="ruby-identifier">end_trace</span>(<span class="ruby-identifier">time</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@sample_start</span>)
|
208
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:custom_params</span>] = <span class="ruby-identifier">normalize_params</span>(<span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">Agent</span><span class="ruby-operator">::</span><span class="ruby-constant">Instrumentation</span><span class="ruby-operator">::</span><span class="ruby-constant">MetricFrame</span>.<span class="ruby-identifier">custom_parameters</span>)
|
209
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">freeze</span>
|
210
|
-
<span class="ruby-ivar">@current_segment</span> = <span class="ruby-keyword kw">nil</span>
|
211
|
-
<span class="ruby-keyword kw">end</span>
|
212
|
-
</pre>
|
213
|
-
</div>
|
214
|
-
</div>
|
215
|
-
</div>
|
216
|
-
|
217
|
-
<div id="method-M000279" class="method-detail">
|
218
|
-
<a name="M000279"></a>
|
219
|
-
|
220
|
-
<div class="method-heading">
|
221
|
-
<a href="#M000279" class="method-signature">
|
222
|
-
<span class="method-name">freeze</span><span class="method-args">()</span>
|
223
|
-
</a>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
<div class="method-description">
|
227
|
-
<p><a class="source-toggle" href="#"
|
228
|
-
onclick="toggleCode('M000279-source');return false;">[Source]</a></p>
|
229
|
-
<div class="method-source-code" id="M000279-source">
|
230
|
-
<pre>
|
231
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 284</span>
|
232
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">freeze</span>
|
233
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">freeze</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">sample</span>.<span class="ruby-identifier">frozen?</span>
|
234
|
-
<span class="ruby-keyword kw">end</span>
|
235
|
-
</pre>
|
236
|
-
</div>
|
237
|
-
</div>
|
238
|
-
</div>
|
239
|
-
|
240
|
-
<div id="method-M000274" class="method-detail">
|
241
|
-
<a name="M000274"></a>
|
242
|
-
|
243
|
-
<div class="method-heading">
|
244
|
-
<a href="#M000274" class="method-signature">
|
245
|
-
<span class="method-name">ignore_transaction</span><span class="method-args">()</span>
|
246
|
-
</a>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div class="method-description">
|
250
|
-
<p><a class="source-toggle" href="#"
|
251
|
-
onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
|
252
|
-
<div class="method-source-code" id="M000274-source">
|
253
|
-
<pre>
|
254
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 241</span>
|
255
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ignore_transaction</span>
|
256
|
-
<span class="ruby-ivar">@ignore</span> = <span class="ruby-keyword kw">true</span>
|
257
|
-
<span class="ruby-keyword kw">end</span>
|
258
|
-
</pre>
|
259
|
-
</div>
|
260
|
-
</div>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
<div id="method-M000273" class="method-detail">
|
264
|
-
<a name="M000273"></a>
|
265
|
-
|
266
|
-
<div class="method-heading">
|
267
|
-
<a href="#M000273" class="method-signature">
|
268
|
-
<span class="method-name">ignored?</span><span class="method-args">()</span>
|
269
|
-
</a>
|
270
|
-
</div>
|
271
|
-
|
272
|
-
<div class="method-description">
|
273
|
-
<p><a class="source-toggle" href="#"
|
274
|
-
onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
|
275
|
-
<div class="method-source-code" id="M000273-source">
|
276
|
-
<pre>
|
277
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 238</span>
|
278
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ignored?</span>
|
279
|
-
<span class="ruby-ivar">@ignore</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:path</span>].<span class="ruby-identifier">nil?</span>
|
280
|
-
<span class="ruby-keyword kw">end</span>
|
281
|
-
</pre>
|
282
|
-
</div>
|
283
|
-
</div>
|
284
|
-
</div>
|
285
|
-
|
286
|
-
<div id="method-M000283" class="method-detail">
|
287
|
-
<a name="M000283"></a>
|
288
|
-
|
289
|
-
<div class="method-heading">
|
290
|
-
<a href="#M000283" class="method-signature">
|
291
|
-
<span class="method-name">sample</span><span class="method-args">()</span>
|
292
|
-
</a>
|
293
|
-
</div>
|
294
|
-
|
295
|
-
<div class="method-description">
|
296
|
-
<p><a class="source-toggle" href="#"
|
297
|
-
onclick="toggleCode('M000283-source');return false;">[Source]</a></p>
|
298
|
-
<div class="method-source-code" id="M000283-source">
|
299
|
-
<pre>
|
300
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 309</span>
|
301
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sample</span>
|
302
|
-
<span class="ruby-ivar">@sample</span>
|
303
|
-
<span class="ruby-keyword kw">end</span>
|
304
|
-
</pre>
|
305
|
-
</div>
|
306
|
-
</div>
|
307
|
-
</div>
|
308
|
-
|
309
|
-
<div id="method-M000272" class="method-detail">
|
310
|
-
<a name="M000272"></a>
|
311
|
-
|
312
|
-
<div class="method-heading">
|
313
|
-
<a href="#M000272" class="method-signature">
|
314
|
-
<span class="method-name">sample_id</span><span class="method-args">()</span>
|
315
|
-
</a>
|
316
|
-
</div>
|
317
|
-
|
318
|
-
<div class="method-description">
|
319
|
-
<p><a class="source-toggle" href="#"
|
320
|
-
onclick="toggleCode('M000272-source');return false;">[Source]</a></p>
|
321
|
-
<div class="method-source-code" id="M000272-source">
|
322
|
-
<pre>
|
323
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 235</span>
|
324
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sample_id</span>
|
325
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">sample_id</span>
|
326
|
-
<span class="ruby-keyword kw">end</span>
|
327
|
-
</pre>
|
328
|
-
</div>
|
329
|
-
</div>
|
330
|
-
</div>
|
331
|
-
|
332
|
-
<div id="method-M000278" class="method-detail">
|
333
|
-
<a name="M000278"></a>
|
334
|
-
|
335
|
-
<div class="method-heading">
|
336
|
-
<a href="#M000278" class="method-signature">
|
337
|
-
<span class="method-name">scope_depth</span><span class="method-args">()</span>
|
338
|
-
</a>
|
339
|
-
</div>
|
340
|
-
|
341
|
-
<div class="method-description">
|
342
|
-
<p><a class="source-toggle" href="#"
|
343
|
-
onclick="toggleCode('M000278-source');return false;">[Source]</a></p>
|
344
|
-
<div class="method-source-code" id="M000278-source">
|
345
|
-
<pre>
|
346
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 272</span>
|
347
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scope_depth</span>
|
348
|
-
<span class="ruby-identifier">depth</span> = <span class="ruby-value">-1</span> <span class="ruby-comment cmt"># have to account for the root</span>
|
349
|
-
<span class="ruby-identifier">current</span> = <span class="ruby-ivar">@current_segment</span>
|
350
|
-
|
351
|
-
<span class="ruby-keyword kw">while</span>(<span class="ruby-identifier">current</span>)
|
352
|
-
<span class="ruby-identifier">depth</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
353
|
-
<span class="ruby-identifier">current</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent_segment</span>
|
354
|
-
<span class="ruby-keyword kw">end</span>
|
355
|
-
|
356
|
-
<span class="ruby-identifier">depth</span>
|
357
|
-
<span class="ruby-keyword kw">end</span>
|
358
|
-
</pre>
|
359
|
-
</div>
|
360
|
-
</div>
|
361
|
-
</div>
|
362
|
-
|
363
|
-
<div id="method-M000280" class="method-detail">
|
364
|
-
<a name="M000280"></a>
|
365
|
-
|
366
|
-
<div class="method-heading">
|
367
|
-
<a href="#M000280" class="method-signature">
|
368
|
-
<span class="method-name">set_profile</span><span class="method-args">(profile)</span>
|
369
|
-
</a>
|
370
|
-
</div>
|
371
|
-
|
372
|
-
<div class="method-description">
|
373
|
-
<p><a class="source-toggle" href="#"
|
374
|
-
onclick="toggleCode('M000280-source');return false;">[Source]</a></p>
|
375
|
-
<div class="method-source-code" id="M000280-source">
|
376
|
-
<pre>
|
377
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 288</span>
|
378
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_profile</span>(<span class="ruby-identifier">profile</span>)
|
379
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">profile</span> = <span class="ruby-identifier">profile</span>
|
380
|
-
<span class="ruby-keyword kw">end</span>
|
381
|
-
</pre>
|
382
|
-
</div>
|
383
|
-
</div>
|
384
|
-
</div>
|
385
|
-
|
386
|
-
<div id="method-M000282" class="method-detail">
|
387
|
-
<a name="M000282"></a>
|
388
|
-
|
389
|
-
<div class="method-heading">
|
390
|
-
<a href="#M000282" class="method-signature">
|
391
|
-
<span class="method-name">set_transaction_cpu_time</span><span class="method-args">(cpu_time)</span>
|
392
|
-
</a>
|
393
|
-
</div>
|
394
|
-
|
395
|
-
<div class="method-description">
|
396
|
-
<p><a class="source-toggle" href="#"
|
397
|
-
onclick="toggleCode('M000282-source');return false;">[Source]</a></p>
|
398
|
-
<div class="method-source-code" id="M000282-source">
|
399
|
-
<pre>
|
400
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 305</span>
|
401
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_transaction_cpu_time</span>(<span class="ruby-identifier">cpu_time</span>)
|
402
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:cpu_time</span>] = <span class="ruby-identifier">cpu_time</span>
|
403
|
-
<span class="ruby-keyword kw">end</span>
|
404
|
-
</pre>
|
405
|
-
</div>
|
406
|
-
</div>
|
407
|
-
</div>
|
408
|
-
|
409
|
-
<div id="method-M000281" class="method-detail">
|
410
|
-
<a name="M000281"></a>
|
411
|
-
|
412
|
-
<div class="method-heading">
|
413
|
-
<a href="#M000281" class="method-signature">
|
414
|
-
<span class="method-name">set_transaction_info</span><span class="method-args">(path, uri, params)</span>
|
415
|
-
</a>
|
416
|
-
</div>
|
417
|
-
|
418
|
-
<div class="method-description">
|
419
|
-
<p><a class="source-toggle" href="#"
|
420
|
-
onclick="toggleCode('M000281-source');return false;">[Source]</a></p>
|
421
|
-
<div class="method-source-code" id="M000281-source">
|
422
|
-
<pre>
|
423
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 292</span>
|
424
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_transaction_info</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">params</span>)
|
425
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:path</span>] = <span class="ruby-identifier">path</span>
|
426
|
-
|
427
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">Control</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">capture_params</span>
|
428
|
-
<span class="ruby-identifier">params</span> = <span class="ruby-identifier">normalize_params</span> <span class="ruby-identifier">params</span>
|
429
|
-
|
430
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:request_params</span>].<span class="ruby-identifier">merge!</span>(<span class="ruby-identifier">params</span>)
|
431
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:request_params</span>].<span class="ruby-identifier">delete</span> <span class="ruby-identifier">:controller</span>
|
432
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:request_params</span>].<span class="ruby-identifier">delete</span> <span class="ruby-identifier">:action</span>
|
433
|
-
<span class="ruby-keyword kw">end</span>
|
434
|
-
<span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:uri</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">uri</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:uri</span>]
|
435
|
-
<span class="ruby-keyword kw">end</span>
|
436
|
-
</pre>
|
437
|
-
</div>
|
438
|
-
</div>
|
439
|
-
</div>
|
440
|
-
|
441
|
-
<div id="method-M000275" class="method-detail">
|
442
|
-
<a name="M000275"></a>
|
443
|
-
|
444
|
-
<div class="method-heading">
|
445
|
-
<a href="#M000275" class="method-signature">
|
446
|
-
<span class="method-name">trace_entry</span><span class="method-args">(metric_name, time)</span>
|
447
|
-
</a>
|
448
|
-
</div>
|
449
|
-
|
450
|
-
<div class="method-description">
|
451
|
-
<p><a class="source-toggle" href="#"
|
452
|
-
onclick="toggleCode('M000275-source');return false;">[Source]</a></p>
|
453
|
-
<div class="method-source-code" id="M000275-source">
|
454
|
-
<pre>
|
455
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 244</span>
|
456
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trace_entry</span>(<span class="ruby-identifier">metric_name</span>, <span class="ruby-identifier">time</span>)
|
457
|
-
<span class="ruby-identifier">segment</span> = <span class="ruby-ivar">@sample</span>.<span class="ruby-identifier">create_segment</span>(<span class="ruby-identifier">time</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@sample_start</span>, <span class="ruby-identifier">metric_name</span>)
|
458
|
-
<span class="ruby-ivar">@current_segment</span>.<span class="ruby-identifier">add_called_segment</span>(<span class="ruby-identifier">segment</span>)
|
459
|
-
<span class="ruby-ivar">@current_segment</span> = <span class="ruby-identifier">segment</span>
|
460
|
-
<span class="ruby-keyword kw">end</span>
|
461
|
-
</pre>
|
462
|
-
</div>
|
463
|
-
</div>
|
464
|
-
</div>
|
465
|
-
|
466
|
-
<div id="method-M000276" class="method-detail">
|
467
|
-
<a name="M000276"></a>
|
468
|
-
|
469
|
-
<div class="method-heading">
|
470
|
-
<a href="#M000276" class="method-signature">
|
471
|
-
<span class="method-name">trace_exit</span><span class="method-args">(metric_name, time)</span>
|
472
|
-
</a>
|
473
|
-
</div>
|
474
|
-
|
475
|
-
<div class="method-description">
|
476
|
-
<p><a class="source-toggle" href="#"
|
477
|
-
onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
|
478
|
-
<div class="method-source-code" id="M000276-source">
|
479
|
-
<pre>
|
480
|
-
<span class="ruby-comment cmt"># File lib/new_relic/agent/transaction_sampler.rb, line 250</span>
|
481
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trace_exit</span>(<span class="ruby-identifier">metric_name</span>, <span class="ruby-identifier">time</span>)
|
482
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">metric_name</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@current_segment</span>.<span class="ruby-identifier">metric_name</span>
|
483
|
-
<span class="ruby-identifier">fail</span> <span class="ruby-node">"unbalanced entry/exit: #{metric_name} != #{@current_segment.metric_name}"</span>
|
484
|
-
<span class="ruby-keyword kw">end</span>
|
485
|
-
<span class="ruby-ivar">@current_segment</span>.<span class="ruby-identifier">end_trace</span>(<span class="ruby-identifier">time</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@sample_start</span>)
|
486
|
-
<span class="ruby-ivar">@current_segment</span> = <span class="ruby-ivar">@current_segment</span>.<span class="ruby-identifier">parent_segment</span>
|
487
|
-
<span class="ruby-keyword kw">end</span>
|
488
|
-
</pre>
|
489
|
-
</div>
|
490
|
-
</div>
|
491
|
-
</div>
|
492
|
-
|
493
|
-
|
494
|
-
</div>
|
495
|
-
|
496
|
-
|
497
|
-
</div>
|
498
|
-
|
499
|
-
|
500
|
-
<div id="validator-badges">
|
501
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
502
|
-
</div>
|
503
|
-
|
504
|
-
</body>
|
505
|
-
</html>
|