appoptics_apm 4.5.1 → 4.5.2
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/.github/ISSUE_TEMPLATE/bug-or-feature-request.md +16 -0
- data/Rakefile +1 -1
- data/build_gem_upload_to_packagecloud.sh +6 -2
- data/lib/appoptics_apm.rb +1 -0
- data/lib/appoptics_apm/noop/context.rb +8 -1
- data/lib/appoptics_apm/noop/metadata.rb +22 -0
- data/lib/appoptics_apm/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6f74865135bb353e7f453b844739e7c0a93d4c38d38d36982c7710f7f31907
|
4
|
+
data.tar.gz: cafe57a6604f715e5f33c2dcf657803d256cf3dea951facbc19ca05be1e7865b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230aaaa311ae7741a6e65168326a79a7e7cee82edf857827d9ce4dff07624a6f3acff4a655a5fa98ac4d53ed05f90b2a71282cf995259c4e7d2e48ad7d3de9ba
|
7
|
+
data.tar.gz: 8f43e985fb4379c9c61356a2d24189710db9a1c1c2c9d03bfbc0727ac5e4fdcf7c66dd706120b6e908a346ef1e8942d40a6d28548c02d25554d2c923fbd52e89
|
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
name: Bug or Feature request
|
3
|
+
about: general purpose template
|
4
|
+
title: "[Bug] or [Feature request]"
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
# Description
|
11
|
+
|
12
|
+
# How to reproduce or use case
|
13
|
+
|
14
|
+
# Code Sample (if available)
|
15
|
+
|
16
|
+
# OS, Ruby version, Gemfile, Gemfile.lock, log message ... (if relevant)
|
data/Rakefile
CHANGED
@@ -46,7 +46,7 @@ Rake::TestTask.new do |t|
|
|
46
46
|
FileList['test/profiling/*_test.rb'] -
|
47
47
|
['test/instrumentation/twitter-cassandra_test.rb']
|
48
48
|
when /instrumentation_mocked/
|
49
|
-
# WebMock is interfering with other tests, so these have to run
|
49
|
+
# WebMock is interfering with other tests, so these have to run separately
|
50
50
|
t.test_files = FileList['test/mocked/*_test.rb']
|
51
51
|
when /noop/
|
52
52
|
t.test_files = FileList['test/noop/*_test.rb']
|
@@ -1,7 +1,11 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
|
3
3
|
# build the gem
|
4
|
-
|
4
|
+
if [ "$1" != "" ]; then
|
5
|
+
OBOE_VERSION=$1 ./build_gem.sh
|
6
|
+
else
|
7
|
+
./build_gem.sh
|
8
|
+
fi
|
5
9
|
|
6
10
|
# save current rbenv setting and switch to 2.4.1 for the package_cloud commands
|
7
11
|
current_ruby=`rbenv global`
|
@@ -9,7 +13,7 @@ rbenv global 2.4.1
|
|
9
13
|
|
10
14
|
# prerequisite: package_cloud token needs to be in ~/.packagecloud
|
11
15
|
gem=`ls -dt1 appoptics_apm-[^pre]*.gem | head -1`
|
12
|
-
package_cloud push
|
16
|
+
package_cloud push solarwinds/appoptics-apm-ruby $gem
|
13
17
|
|
14
18
|
# restore ruby version
|
15
19
|
rbenv global $current_ruby
|
data/lib/appoptics_apm.rb
CHANGED
@@ -61,6 +61,7 @@ begin
|
|
61
61
|
$stderr.puts 'Service Key may be wrong or missing.'
|
62
62
|
$stderr.puts '=============================================================='
|
63
63
|
require 'appoptics_apm/noop/context'
|
64
|
+
require 'appoptics_apm/noop/metadata'
|
64
65
|
end
|
65
66
|
|
66
67
|
# Load Ruby module last. If there is no framework detected,
|
@@ -7,7 +7,7 @@ module AppOpticsAPM
|
|
7
7
|
module Context
|
8
8
|
|
9
9
|
##
|
10
|
-
# noop version of toString
|
10
|
+
# noop version of :toString
|
11
11
|
# toString would return the current context (xtrace) as string
|
12
12
|
#
|
13
13
|
# the noop version returns an empty string
|
@@ -15,5 +15,12 @@ module AppOpticsAPM
|
|
15
15
|
def self.toString
|
16
16
|
''
|
17
17
|
end
|
18
|
+
|
19
|
+
##
|
20
|
+
# noop version of :clear
|
21
|
+
#
|
22
|
+
def self.clear
|
23
|
+
|
24
|
+
end
|
18
25
|
end
|
19
26
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
####
|
2
|
+
# noop version of AppOpticsAPM::Metadata
|
3
|
+
#
|
4
|
+
#
|
5
|
+
|
6
|
+
module AppOpticsAPM
|
7
|
+
class Metadata
|
8
|
+
|
9
|
+
##
|
10
|
+
# noop version of :makeRandom
|
11
|
+
#
|
12
|
+
# needs to return an object that responds to :isValid
|
13
|
+
#
|
14
|
+
def self.makeRandom
|
15
|
+
Metadata.new
|
16
|
+
end
|
17
|
+
|
18
|
+
def isValid
|
19
|
+
false
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appoptics_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maia Engeli
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-02-
|
13
|
+
date: 2019-02-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -129,6 +129,7 @@ extra_rdoc_files:
|
|
129
129
|
- LICENSE
|
130
130
|
files:
|
131
131
|
- ".dockerignore"
|
132
|
+
- ".github/ISSUE_TEMPLATE/bug-or-feature-request.md"
|
132
133
|
- ".gitignore"
|
133
134
|
- ".rubocop.yml"
|
134
135
|
- ".travis.yml"
|
@@ -216,6 +217,7 @@ files:
|
|
216
217
|
- lib/appoptics_apm/method_profiling.rb
|
217
218
|
- lib/appoptics_apm/noop/README.md
|
218
219
|
- lib/appoptics_apm/noop/context.rb
|
220
|
+
- lib/appoptics_apm/noop/metadata.rb
|
219
221
|
- lib/appoptics_apm/ruby.rb
|
220
222
|
- lib/appoptics_apm/sdk/custom_metrics.rb
|
221
223
|
- lib/appoptics_apm/sdk/tracing.rb
|