newrelic-manticore 1.0.0-java → 1.1.0.rc2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/.travis.yml +0 -1
- data/Changelog.md +14 -0
- data/lib/new_relic/manticore/instrumentation.rb +2 -4
- data/lib/new_relic/manticore/wrapped_request.rb +11 -0
- data/lib/new_relic/manticore/wrapped_response.rb +6 -1
- data/lib/newrelic/manticore.rb +2 -0
- data/lib/newrelic/manticore/version.rb +1 -1
- data/newrelic-manticore.gemspec +4 -2
- metadata +42 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70d9a32e1f3c655b7a83f025beed26355ebcf44ca69de03415d29ea732180760
|
4
|
+
data.tar.gz: 027645a9e5180c9fbec6d4925dfcf53b3b5264edce2cfde531fa304b1ad84da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 899866c9048e05703ca290c64a3a84ebf73ce8f1435faf9bd12273801beec32f0d66e3866adfe122ff3569f1ccaa4084966914008b5523dbc82b1511d654c49b
|
7
|
+
data.tar.gz: 4359006a763ff62b241620e8ac60ba63f281e9a5df3c1b9b47d185307d83c3521878ae986416161834ecfcf7afb8fc5b210d4ba2d94463f7746cbacb3eaaad27
|
data/.rubocop.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require: rt_rubocop_defaults
|
2
2
|
|
3
3
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.4
|
5
5
|
|
6
6
|
Metrics/BlockLength:
|
7
7
|
Exclude:
|
@@ -10,3 +10,6 @@ Metrics/BlockLength:
|
|
10
10
|
Metrics/ClassLength:
|
11
11
|
Exclude:
|
12
12
|
- test/**/*
|
13
|
+
|
14
|
+
Gemspec/RequiredRubyVersion:
|
15
|
+
Enabled: false
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
@@ -4,6 +4,20 @@ 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
|
+
## Unreleased
|
8
|
+
### Added
|
9
|
+
- Record response status on external request span
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Require ruby > 2.0.0
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
- Added manticore as dependency
|
16
|
+
|
17
|
+
## [1.0.1] - 2020-04-30
|
18
|
+
### Added
|
19
|
+
- Compatibility with agent versions ~> 6.10
|
20
|
+
|
7
21
|
## [1.0.0] - 2019-03-12
|
8
22
|
### Changed
|
9
23
|
- Update newrelic agent dependency to major version 6.
|
@@ -3,7 +3,6 @@
|
|
3
3
|
require "ostruct"
|
4
4
|
|
5
5
|
require "new_relic/agent/method_tracer"
|
6
|
-
require "new_relic/agent/http_clients/abstract_request"
|
7
6
|
|
8
7
|
require "new_relic/manticore/wrapped_request"
|
9
8
|
require "new_relic/manticore/wrapped_response"
|
@@ -19,8 +18,7 @@ module NewRelic
|
|
19
18
|
# operation
|
20
19
|
def self.create_segment?
|
21
20
|
state = NewRelic::Agent::TransactionState.tl_get
|
22
|
-
return false unless state
|
23
|
-
state.current_transaction
|
21
|
+
return false unless state&.current_transaction
|
24
22
|
|
25
23
|
return true unless state.current_transaction.current_segment
|
26
24
|
|
@@ -84,7 +82,7 @@ module NewRelic
|
|
84
82
|
segment.add_request_headers(WrappedRequest.new(@request))
|
85
83
|
on_complete do |response|
|
86
84
|
begin
|
87
|
-
segment.
|
85
|
+
segment.process_response_headers(WrappedResponse.new(response))
|
88
86
|
ensure
|
89
87
|
segment.finish
|
90
88
|
end
|
@@ -1,3 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Check version to account for a breaking path change
|
4
|
+
# introduced in 6.10
|
5
|
+
#
|
6
|
+
if NewRelic::VERSION::MAJOR == 6 && NewRelic::VERSION::MINOR < 10
|
7
|
+
require "new_relic/agent/http_clients/abstract_request"
|
8
|
+
else
|
9
|
+
require "new_relic/agent/http_clients/abstract"
|
10
|
+
end
|
11
|
+
|
1
12
|
module NewRelic
|
2
13
|
module Manticore
|
3
14
|
class WrappedRequest < Agent::HTTPClients::AbstractRequest
|
@@ -1,7 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "new_relic/agent/http_clients/abstract"
|
4
|
+
|
1
5
|
module NewRelic
|
2
6
|
module Manticore
|
3
|
-
class WrappedResponse
|
7
|
+
class WrappedResponse < NewRelic::Agent::HTTPClients::AbstractResponse
|
4
8
|
def initialize(response)
|
9
|
+
super(response)
|
5
10
|
@headers = response.headers
|
6
11
|
end
|
7
12
|
|
data/lib/newrelic/manticore.rb
CHANGED
data/newrelic-manticore.gemspec
CHANGED
@@ -27,14 +27,16 @@ Gem::Specification.new do |gem|
|
|
27
27
|
gem.executables = gem.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
gem.require_paths = ["lib"]
|
29
29
|
|
30
|
+
gem.required_ruby_version = ">= 2.0.0"
|
31
|
+
|
32
|
+
gem.add_runtime_dependency "manticore", "~> 0.6", ">= 0.6.4"
|
30
33
|
gem.add_runtime_dependency "newrelic_rpm", "~> 6"
|
31
34
|
|
32
35
|
gem.add_development_dependency "bundler"
|
33
36
|
gem.add_development_dependency "faraday", "~> 0"
|
34
|
-
gem.add_development_dependency "manticore", "~> 0"
|
35
37
|
gem.add_development_dependency "minitest"
|
36
38
|
gem.add_development_dependency "pry"
|
37
|
-
gem.add_development_dependency "rake", "~>
|
39
|
+
gem.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
|
38
40
|
gem.add_development_dependency "rspec", "~> 3.0"
|
39
41
|
gem.add_development_dependency "rt_rubocop_defaults", "~> 1"
|
40
42
|
gem.add_development_dependency "rubocop_runner", "~> 2"
|
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: 1.0.
|
4
|
+
version: 1.1.0.rc2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Dominik Goltermann
|
@@ -9,48 +9,54 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6'
|
20
|
-
|
21
|
-
|
19
|
+
version: '0.6'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.6.4
|
23
|
+
name: manticore
|
22
24
|
type: :runtime
|
25
|
+
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
28
|
- - "~>"
|
26
29
|
- !ruby/object:Gem::Version
|
27
|
-
version: '6'
|
30
|
+
version: '0.6'
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.4
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
name:
|
39
|
+
version: '6'
|
40
|
+
name: newrelic_rpm
|
41
|
+
type: :runtime
|
35
42
|
prerelease: false
|
36
|
-
type: :development
|
37
43
|
version_requirements: !ruby/object:Gem::Requirement
|
38
44
|
requirements:
|
39
|
-
- - "
|
45
|
+
- - "~>"
|
40
46
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
47
|
+
version: '6'
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - ">="
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
|
-
name:
|
49
|
-
prerelease: false
|
54
|
+
name: bundler
|
50
55
|
type: :development
|
56
|
+
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
52
58
|
requirements:
|
53
|
-
- - "
|
59
|
+
- - ">="
|
54
60
|
- !ruby/object:Gem::Version
|
55
61
|
version: '0'
|
56
62
|
- !ruby/object:Gem::Dependency
|
@@ -59,9 +65,9 @@ dependencies:
|
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: '0'
|
62
|
-
name:
|
63
|
-
prerelease: false
|
68
|
+
name: faraday
|
64
69
|
type: :development
|
70
|
+
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
73
|
- - "~>"
|
@@ -74,8 +80,8 @@ dependencies:
|
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '0'
|
76
82
|
name: minitest
|
77
|
-
prerelease: false
|
78
83
|
type: :development
|
84
|
+
prerelease: false
|
79
85
|
version_requirements: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
87
|
- - ">="
|
@@ -88,8 +94,8 @@ dependencies:
|
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: '0'
|
90
96
|
name: pry
|
91
|
-
prerelease: false
|
92
97
|
type: :development
|
98
|
+
prerelease: false
|
93
99
|
version_requirements: !ruby/object:Gem::Requirement
|
94
100
|
requirements:
|
95
101
|
- - ">="
|
@@ -100,15 +106,21 @@ dependencies:
|
|
100
106
|
requirements:
|
101
107
|
- - "~>"
|
102
108
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
109
|
+
version: '12.3'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 12.3.3
|
104
113
|
name: rake
|
105
|
-
prerelease: false
|
106
114
|
type: :development
|
115
|
+
prerelease: false
|
107
116
|
version_requirements: !ruby/object:Gem::Requirement
|
108
117
|
requirements:
|
109
118
|
- - "~>"
|
110
119
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
120
|
+
version: '12.3'
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 12.3.3
|
112
124
|
- !ruby/object:Gem::Dependency
|
113
125
|
requirement: !ruby/object:Gem::Requirement
|
114
126
|
requirements:
|
@@ -116,8 +128,8 @@ dependencies:
|
|
116
128
|
- !ruby/object:Gem::Version
|
117
129
|
version: '3.0'
|
118
130
|
name: rspec
|
119
|
-
prerelease: false
|
120
131
|
type: :development
|
132
|
+
prerelease: false
|
121
133
|
version_requirements: !ruby/object:Gem::Requirement
|
122
134
|
requirements:
|
123
135
|
- - "~>"
|
@@ -130,8 +142,8 @@ dependencies:
|
|
130
142
|
- !ruby/object:Gem::Version
|
131
143
|
version: '1'
|
132
144
|
name: rt_rubocop_defaults
|
133
|
-
prerelease: false
|
134
145
|
type: :development
|
146
|
+
prerelease: false
|
135
147
|
version_requirements: !ruby/object:Gem::Requirement
|
136
148
|
requirements:
|
137
149
|
- - "~>"
|
@@ -144,8 +156,8 @@ dependencies:
|
|
144
156
|
- !ruby/object:Gem::Version
|
145
157
|
version: '2'
|
146
158
|
name: rubocop_runner
|
147
|
-
prerelease: false
|
148
159
|
type: :development
|
160
|
+
prerelease: false
|
149
161
|
version_requirements: !ruby/object:Gem::Requirement
|
150
162
|
requirements:
|
151
163
|
- - "~>"
|
@@ -190,15 +202,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
190
202
|
requirements:
|
191
203
|
- - ">="
|
192
204
|
- !ruby/object:Gem::Version
|
193
|
-
version:
|
205
|
+
version: 2.0.0
|
194
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
207
|
requirements:
|
196
|
-
- - "
|
208
|
+
- - ">"
|
197
209
|
- !ruby/object:Gem::Version
|
198
|
-
version:
|
210
|
+
version: 1.3.1
|
199
211
|
requirements: []
|
200
|
-
|
201
|
-
rubygems_version: 2.7.6
|
212
|
+
rubygems_version: 3.0.6
|
202
213
|
signing_key:
|
203
214
|
specification_version: 4
|
204
215
|
summary: Newrelic support for manticore
|