elastic-apm 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfb206def6af3e002dc6b946add05afddaa93909016ca654711a6efd4a9353c9
4
- data.tar.gz: fc4edd5a2209f1babfe9277865024eb71eb24a7713b2f77c8d80a4ed6c12117f
3
+ metadata.gz: 4cefd73acad31a9561dbfb964d2654d8f702c8db1783df2fe7dee9849a87609f
4
+ data.tar.gz: 8e4be6f5ee71a5972bc964f736d1cfaf652d307e2c080f7c9439273d966fc4d5
5
5
  SHA512:
6
- metadata.gz: 464029e0c25e3a1b3ab9417f16e3b73ca8c6f5e779f37a4e45d0648c76bd2a58ff417fa95fa55adb97c5da465e637dc270df63e4b86ed2a1584ccc9040d32bbd
7
- data.tar.gz: ddebff0d47f88aaa983b46764ecafd4e12073c33434d8c7bb275e3f0655466fb237bf72ea2a3ebc8dc6583c97bf97e6903699e49efd39e74143981e3d608b8aa
6
+ metadata.gz: d73c89eb559553948b4eb628d321e0aee6aeb9d754ba6b8737e628fd2858290b761800a1da761d65d3d83126e0a6cab634ead3a3a763174064d8a16d3ae8dda9
7
+ data.tar.gz: 3b8b33c2083e82a433d650bf7708fe5686e47c3a4af71f233bbd52bafb202aa36ca1917e1f676deaeb587ad960b37286ac13e341e65e66c4d39246df99ac342f
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 2.0.1 (2018-11-15)
8
+
9
+ ### Fixed
10
+
11
+ - Stop sending `span.start` ([#234](https://github.com/elastic/apm-agent-ruby/pull/234))
12
+
7
13
  ## 2.0.0 (2018-11-14)
8
14
 
9
15
  Version adds support for APM Server 6.5 and needs at least that.
@@ -386,5 +386,3 @@ See the {apm-rum-ref}[JavaScript RUM agent documentation] for more information.
386
386
  [float]
387
387
  [[api-context]]
388
388
  === Context
389
-
390
- See https://www.elastic.co/guide/en/apm/server/current/transaction-api.html#transaction-context-schema[APM Server API Specs].
@@ -33,11 +33,10 @@ module ElasticAPM
33
33
 
34
34
  attr_accessor :name, :type, :original_backtrace, :parent
35
35
  attr_reader :id, :context, :stacktrace, :duration,
36
- :relative_start, :timestamp, :transaction_id, :trace_id
36
+ :timestamp, :transaction_id, :trace_id
37
37
 
38
38
  def transaction=(transaction)
39
39
  @transaction_id = transaction&.id
40
- @timestamp = transaction&.timestamp
41
40
  @trace_id = transaction&.trace_id
42
41
  end
43
42
 
@@ -48,15 +47,13 @@ module ElasticAPM
48
47
  # life cycle
49
48
 
50
49
  def start
51
- raise 'Transaction needed to start span' unless transaction_id
52
-
53
- @relative_start = Util.micros - timestamp
50
+ @timestamp = Util.micros
54
51
 
55
52
  self
56
53
  end
57
54
 
58
55
  def stop
59
- @duration = Util.micros - timestamp - relative_start
56
+ @duration = Util.micros - timestamp
60
57
  end
61
58
 
62
59
  def done
@@ -74,7 +71,7 @@ module ElasticAPM
74
71
  end
75
72
 
76
73
  def started?
77
- !!relative_start
74
+ !!timestamp
78
75
  end
79
76
 
80
77
  def running?
@@ -14,7 +14,6 @@ module ElasticAPM
14
14
  parent_id: span.parent_id,
15
15
  name: span.name,
16
16
  type: span.type,
17
- start: ms(span.relative_start),
18
17
  duration: ms(span.duration),
19
18
  context: span.context&.to_h,
20
19
  stacktrace: span.stacktrace.to_a,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ElasticAPM
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Malmberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-14 00:00:00.000000000 Z
11
+ date: 2018-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby