elastic-apm 3.15.0 → 3.15.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 +4 -4
- data/CHANGELOG.asciidoc +9 -0
- data/lib/elastic_apm/spies/s3.rb +6 -9
- data/lib/elastic_apm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a5353924a1308c1ab7d5b3701968ccfbe0b03f2ac24372d3d1c4f90b12158c
|
4
|
+
data.tar.gz: 8891407bcdb4b5e8251b580e890d5d9f652e11790d5a9e3e2bb1bb378092511b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eb9e1fec293b2008d083a3bc53a8458773c04e96efbe37d170591dda5faa33ef10bcadc980d7423053704fba131575c94ff3d410b8f3ab19311f94717acaade
|
7
|
+
data.tar.gz: 037b3327a8b9e2db344301eb001817dc89500a74065f605dc335b1c8ecf51b01a026ea0f4f46ee4326e2fc6eb50202eece5bba64b8c77060c4cd1f62ff69be77
|
data/CHANGELOG.asciidoc
CHANGED
@@ -35,6 +35,15 @@ endif::[]
|
|
35
35
|
[[release-notes-3.x]]
|
36
36
|
=== Ruby Agent version 3.x
|
37
37
|
|
38
|
+
[[release-notes-3.15.1]]
|
39
|
+
==== 3.15.1 (2021-04-06)
|
40
|
+
|
41
|
+
[float]
|
42
|
+
===== Fixed
|
43
|
+
|
44
|
+
- AWS S3 spy accepts symbol bucket names {pull}998[#998]
|
45
|
+
- AWS S3 spy passing on blocks {pull}998[#998]
|
46
|
+
|
38
47
|
[[release-notes-3.15.0]]
|
39
48
|
==== 3.15.0 (2021-03-22)
|
40
49
|
|
data/lib/elastic_apm/spies/s3.rb
CHANGED
@@ -41,13 +41,10 @@ module ElasticAPM
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.bucket_name(params)
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
params[:bucket]
|
49
|
-
end
|
50
|
-
end
|
44
|
+
return unless (bucket = params[:bucket]&.to_s)
|
45
|
+
return bucket unless (index = bucket.rindex(AP_REGEX))
|
46
|
+
|
47
|
+
bucket[index+1..-1]
|
51
48
|
end
|
52
49
|
|
53
50
|
def self.accesspoint_region(params)
|
@@ -85,7 +82,7 @@ module ElasticAPM
|
|
85
82
|
api.operation_names.each do |operation_name|
|
86
83
|
alias :"#{operation_name}_without_apm" :"#{operation_name}"
|
87
84
|
|
88
|
-
define_method(operation_name) do |params = {}, options = {}|
|
85
|
+
define_method(operation_name) do |params = {}, options = {}, &block|
|
89
86
|
bucket_name = ElasticAPM::Spies::S3Spy.bucket_name(params)
|
90
87
|
cloud = ElasticAPM::Span::Context::Destination::Cloud.new(
|
91
88
|
region: ElasticAPM::Spies::S3Spy.accesspoint_region(params) || config.region
|
@@ -109,7 +106,7 @@ module ElasticAPM
|
|
109
106
|
) do
|
110
107
|
ElasticAPM::Spies::S3Spy.without_net_http do
|
111
108
|
original_method = method("#{operation_name}_without_apm")
|
112
|
-
original_method.call(params, options)
|
109
|
+
original_method.call(params, options, &block)
|
113
110
|
end
|
114
111
|
end
|
115
112
|
end
|
data/lib/elastic_apm/version.rb
CHANGED
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: 3.15.
|
4
|
+
version: 3.15.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: 2021-
|
11
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
269
|
- !ruby/object:Gem::Version
|
270
270
|
version: '0'
|
271
271
|
requirements: []
|
272
|
-
rubygems_version: 3.1.
|
272
|
+
rubygems_version: 3.1.6
|
273
273
|
signing_key:
|
274
274
|
specification_version: 4
|
275
275
|
summary: The official Elastic APM agent for Ruby
|