newrelic-manticore 0.1.1.rc2-java → 0.1.2-java

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: a90206bab165ef353e02a1584fce0aff9c3194737eb25e4add978320da5cbe65
4
- data.tar.gz: 2d8fde246e4b9269e310910e4a2a25ba68b8a3f66b2039bb5ba000a4efd0743c
3
+ metadata.gz: 384a5c873ddc6183ca9179c5b2060f408a3141666bef46a35f996bfc0349daff
4
+ data.tar.gz: c9a3a04cb32931f85253933438f0740a3c499717cdbd50b587127945041283e9
5
5
  SHA512:
6
- metadata.gz: a61432c09b74eb8828ce728d3e21c83f2b79b965a9c468f9ad29836235f65e517900e217ad46fdc1f62c57821b2805f5a8a6c17ec60fac690e2f7c985bfac1a8
7
- data.tar.gz: 8df4a94cccf09d2129c6646f9c856a98dba70288a7cbeada550be95f5681e52793577ad627c31747b6cda7a2e78535ca199a1f6426f8acbbb87c42783ff40af5
6
+ metadata.gz: de7ccebfc9d7c74c6074f3f661c3586cdadc419a0ca3901b4fe5ae5e896d5cc48759f8ec2ee46ace4833beb9be351aab18952d401e2a69940a3999f877a9c5fb
7
+ data.tar.gz: fdc1a23c186692fbabc731902f4e84444022d62d7a4da55f30b7183798c8613f72c1607185f12e5ba5720756ea33f23e21e9cc0bda26a0a014c5e6b5249cbc11
data/Changelog.md CHANGED
@@ -4,10 +4,15 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.2] - 2018-10-11
8
+ ### Fixed
9
+ Detection whether manticore is used inside a database segment was not reliable and is now more robust
10
+
7
11
  ## [0.1.1] - 2018-10-09
8
12
  ### Fixed
9
- Time spent inside Manticore requests inside database calls where not included in the exclusive time stats of the database request
13
+ - Time spent inside Manticore requests inside database calls where not included in the exclusive time stats of the database request.
14
+ - Fixed instrumentation when using manticore with faraday adapter.
10
15
 
11
16
  ## [0.1.0] - 2018-10-09
12
17
  ### Added
13
- Basic manticore instrumentation
18
+ - Basic manticore instrumentation.
@@ -19,14 +19,14 @@ module NewRelic
19
19
  # operation
20
20
  def self.create_segment?
21
21
  state = NewRelic::Agent::TransactionState.tl_get
22
- return false unless state && state.current_transaction
22
+ return false unless state &&
23
+ state.current_transaction
23
24
 
24
- existing_segments = state.current_transaction.segments
25
+ return true unless state.current_transaction.current_segment
25
26
 
26
- existing_segments.empty? ||
27
- !existing_segments.last.is_a?(
28
- ::NewRelic::Agent::Transaction::DatastoreSegment
29
- )
27
+ !state.current_transaction.current_segment.is_a?(
28
+ ::NewRelic::Agent::Transaction::DatastoreSegment
29
+ )
30
30
  end
31
31
 
32
32
  # rubocop:disable Metrics/BlockLength
@@ -81,7 +81,6 @@ module NewRelic
81
81
  def call_with_newrelic_trace
82
82
  if NewRelic::Manticore.create_segment?
83
83
  segment = create_newrelic_segment
84
-
85
84
  segment.add_request_headers(WrappedRequest.new(@request))
86
85
  on_complete do |response|
87
86
  begin
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Newrelic
4
4
  module Manticore
5
- VERSION = "0.1.1.rc2".freeze
5
+ VERSION = "0.1.2".freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-manticore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.rc2
4
+ version: 0.1.2
5
5
  platform: java
6
6
  authors:
7
7
  - Dominik Goltermann
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-10-11 00:00:00.000000000 Z
12
+ date: 2018-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -192,9 +192,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - ">"
195
+ - - ">="
196
196
  - !ruby/object:Gem::Version
197
- version: 1.3.1
197
+ version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
200
  rubygems_version: 2.7.6