alacrity-rails 0.10.2 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5bc2e6357aa4b47dfae6fda793a915cc246333e
4
- data.tar.gz: '038f9001463555626644a2bebc901d844abffb71'
3
+ metadata.gz: 7de4111ca3d48f3ed4cb9e30221c107f226d2bfb
4
+ data.tar.gz: 10afa26f0dd1242da44dc4fd1233ecfa061b41f7
5
5
  SHA512:
6
- metadata.gz: ac403c9e359146709387d985ed34e2c4546967444229d6206bbe45269e3ba56b6a207893ee0c7e0141474ddfd5533c3f81e33496ad7c8cfb4155c248218419ae
7
- data.tar.gz: e0010d9e286d9ded51d4e9aa84316a4bf5a331a382f2dcadab63a796005b5c24b4c3f5b8b15ecc563709124005bf6c750f0e77ad9f761f023ae8fb4e5f12b3b1
6
+ metadata.gz: 37e057d9025ae6cf31ce3424788c3c5b55b0b540cc38c51246caa6ae6b055a0e5e94b8a4b4369632520b744d75d7977167068e28a59a865f1509719d1ca2a424
7
+ data.tar.gz: 29235ae28954ee446ce111a8cde6831a94b62a76583f97ea10fba6738b4f486d667ac9a547fb9e207293c6a63b447fbada98df0665884e82412a0da43bc13a92
@@ -2,8 +2,6 @@ require 'net/http'
2
2
 
3
3
  module AlacrityRails
4
4
  class Client
5
- Thread.current[:alacrity_transactions] = []
6
-
7
5
  def self.open_transaction(transaction)
8
6
  transactions.push(transaction) if config_enabled?
9
7
  end
@@ -24,22 +24,23 @@ module AlacrityRails::Transaction
24
24
  middleware_finished_at = absolute_time(@middleware_finished_at) || absolute_time(DateTime.now)
25
25
  {
26
26
  environment: AlacrityRails::ServerConfig.environment,
27
- url: url,
28
- controller: controller,
29
- action: action,
30
- middleware_elapsed: middleware_finished_at - middleware_started_at,
31
- middleware_started_at: middleware_started_at,
32
- middleware_finished_at: middleware_finished_at,
33
- format: format,
34
- method: method,
35
- status: status,
27
+ event_type: 'web-request',
28
+ started_at: middleware_started_at,
29
+ finished_at: middleware_finished_at,
36
30
  timeline_events: prepared_timeline_events,
37
- timestamp: Time.now.utc
31
+ data: {
32
+ url: url,
33
+ controller: controller,
34
+ action: action,
35
+ format: format,
36
+ method: method,
37
+ status: status,
38
+ }
38
39
  }
39
40
  end
40
41
 
41
42
  def self.endpoint
42
- @endpoint ||= URI("#{AlacrityRails::Config.collector_host}/v1/web-transactions")
43
+ @endpoint ||= URI("#{AlacrityRails::Config.collector_host}/v2/events")
43
44
  end
44
45
  end
45
46
  end
@@ -1,3 +1,3 @@
1
1
  module AlacrityRails
2
- VERSION = '0.10.2'
2
+ VERSION = '0.11.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacrity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alacrity, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails