changed CHANGELOG.md
 
@@ -1,8 1,21 @@
1
1
## CHANGELOG
2
2
3
### `v1.9.1`
4
5
Fixes
6
7
* Fix the transaction event name attribute. [#100](https://github.com/newrelic/elixir_agent/pull/100)
8
3
9
### `v1.9.0`
4
10
11
Features
12
13
* Use erlang's `httpc` client. [#70](https://github.com/newrelic/elixir_agent/pull/70)
5
14
* Calculate and report the Total Time in a Transaction. [#98](https://github.com/newrelic/elixir_agent/pull/98)
15
16
Fixes
17
18
* Attempt to flush each harvester upon graceful shutdown. [#94](https://github.com/newrelic/elixir_agent/pull/94)
6
19
* Report External metrics based on transaction type. [#99](https://github.com/newrelic/elixir_agent/pull/99)
7
20
8
21
-------
changed VERSION
 
@@ -1 1 @@
1
- 1.9.0
1
1.9.1
changed hex_metadata.config
 
@@ -92,4 92,4 @@
92
92
{<<"optional">>,false},
93
93
{<<"repository">>,<<"hexpm">>},
94
94
{<<"requirement">>,<<"~> 1.1">>}]]}.
95
- {<<"version">>,<<"1.9.0">>}.
95
{<<"version">>,<<"1.9.1">>}.
changed lib/new_relic/transaction/complete.ex
 
@@ -282,7 282,17 @@ defmodule NewRelic.Transaction.Complete do
282
282
Enum.each(span_events, &Collector.SpanEvent.Harvester.report_span_event/1)
283
283
end
284
284
285
- defp report_transaction_event(%{transaction_type: :web} = tx_attrs) do
285
defp report_transaction_event(%{other_transaction_name: _} = tx_attrs) do
286
Collector.TransactionEvent.Harvester.report_event(%Transaction.Event{
287
timestamp: tx_attrs.start_time,
288
duration: tx_attrs.duration_s,
289
total_time: tx_attrs.total_time_s,
290
name: Util.metric_join(["OtherTransaction", tx_attrs.name]),
291
user_attributes: tx_attrs
292
})
293
end
294
295
defp report_transaction_event(tx_attrs) do
286
296
Collector.TransactionEvent.Harvester.report_event(%Transaction.Event{
287
297
timestamp: tx_attrs.start_time,
288
298
duration: tx_attrs.duration_s,
 
@@ -295,16 305,6 @@ defmodule NewRelic.Transaction.Complete do
295
305
})
296
306
end
297
307
298
- defp report_transaction_event(tx_attrs) do
299
- Collector.TransactionEvent.Harvester.report_event(%Transaction.Event{
300
- timestamp: tx_attrs.start_time,
301
- duration: tx_attrs.duration_s,
302
- total_time: tx_attrs.total_time_s,
303
- name: Util.metric_join(["OtherTransaction", tx_attrs.name]),
304
- user_attributes: tx_attrs
305
- })
306
- end
307
-
308
308
defp report_transaction_trace(%{other_transaction_name: _} = tx_attrs, tx_segments) do
309
309
Collector.TransactionTrace.Harvester.report_trace(%Transaction.Trace{
310
310
start_time: tx_attrs.start_time,