changed
CHANGELOG.md
|
@@ -1,5 1,10 @@
|
1
1
|
## CHANGELOG
|
2
2
|
|
3
|
### `v1.19.3`
|
4
|
|
5
|
Features
|
6
|
* Report more Error metrics based on transaction type. [#251](https://github.com/newrelic/elixir_agent/pull/251)
|
7
|
|
3
8
|
### `v1.19.2`
|
4
9
|
|
5
10
|
Tweaks
|
changed
VERSION
|
@@ -1 1 @@
|
1
|
- 1.19.2
|
1
|
1.19.3
|
changed
hex_metadata.config
|
@@ -128,4 128,4 @@
|
128
128
|
{<<"optional">>,true},
|
129
129
|
{<<"repository">>,<<"hexpm">>},
|
130
130
|
{<<"requirement">>,<<">= 0.11.0">>}]]}.
|
131
|
- {<<"version">>,<<"1.19.2">>}.
|
131
|
{<<"version">>,<<"1.19.3">>}.
|
changed
lib/new_relic/harvest/collector/metric_data.ex
|
@@ -368,6 368,18 @@ defmodule NewRelic.Harvest.Collector.MetricData do
|
368
368
|
max_call_time: duration_s
|
369
369
|
}
|
370
370
|
|
371
|
def transform(:error, type: type, error_count: error_count),
|
372
|
do: [
|
373
|
%Metric{
|
374
|
name: "Errors/all#{type}",
|
375
|
call_count: error_count
|
376
|
},
|
377
|
%Metric{
|
378
|
name: :"Errors/all",
|
379
|
call_count: error_count
|
380
|
}
|
381
|
]
|
382
|
|
371
383
|
def transform(:error, error_count: error_count),
|
372
384
|
do: %Metric{
|
373
385
|
name: :"Errors/all",
|
changed
lib/new_relic/transaction/complete.ex
|
@@ -413,7 413,7 @@ defmodule NewRelic.Transaction.Complete do
|
413
413
|
|
414
414
|
unless expected do
|
415
415
|
NewRelic.report_metric({:supportability, :error_event}, error_count: 1)
|
416
|
- NewRelic.report_metric(:error, error_count: 1)
|
416
|
NewRelic.report_metric(:error, type: tx_attrs.transactionType, error_count: 1)
|
417
417
|
end
|
418
418
|
end
|