stackify-ruby-apm 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +18 -0
  3. data/Gemfile.lock +181 -8
  4. data/LICENSE.md +66 -0
  5. data/README.md +5 -3
  6. data/Rakefile +4 -0
  7. data/docker-compose.yml +46 -0
  8. data/lib/stackify/agent.rb +22 -9
  9. data/lib/stackify/config.rb +65 -29
  10. data/lib/stackify/context/response.rb +13 -0
  11. data/lib/stackify/context_builder.rb +0 -2
  12. data/lib/stackify/error.rb +2 -2
  13. data/lib/stackify/error_builder.rb +1 -1
  14. data/lib/stackify/instrumenter.rb +4 -4
  15. data/lib/stackify/logger/logger_high_version.rb +65 -0
  16. data/lib/stackify/logger/logger_lower_version.rb +63 -0
  17. data/lib/stackify/middleware.rb +0 -4
  18. data/lib/stackify/normalizers.rb +0 -1
  19. data/lib/stackify/normalizers/active_record.rb +3 -1
  20. data/lib/stackify/railtie.rb +0 -1
  21. data/lib/stackify/serializers/errors.rb +8 -7
  22. data/lib/stackify/serializers/transactions.rb +3 -2
  23. data/lib/stackify/span.rb +1 -2
  24. data/lib/stackify/span/context.rb +5 -1
  25. data/lib/stackify/spies/action_dispatch.rb +8 -1
  26. data/lib/stackify/spies/httpclient.rb +14 -5
  27. data/lib/stackify/spies/httprb.rb +45 -0
  28. data/lib/stackify/spies/mongo.rb +13 -1
  29. data/lib/stackify/spies/net_http.rb +14 -3
  30. data/lib/stackify/spies/redis.rb +66 -0
  31. data/lib/stackify/spies/sinatra.rb +3 -1
  32. data/lib/stackify/spies/sinatra_activerecord/mysql_adapter.rb +177 -0
  33. data/lib/stackify/spies/sinatra_activerecord/postgresql_adapter.rb +96 -0
  34. data/lib/stackify/spies/sinatra_activerecord/sqlite_adapter.rb +48 -0
  35. data/lib/stackify/spies/tilt.rb +8 -1
  36. data/lib/stackify/stacktrace_builder.rb +4 -3
  37. data/lib/stackify/subscriber.rb +4 -4
  38. data/lib/stackify/trace_logger.rb +6 -23
  39. data/lib/stackify/transaction.rb +10 -1
  40. data/lib/stackify/util.rb +0 -13
  41. data/lib/stackify/version.rb +1 -1
  42. data/lib/stackify/worker.rb +5 -5
  43. data/lib/stackify_ruby_apm.rb +2 -6
  44. data/run-test.sh +75 -0
  45. data/stackify-ruby-apm.gemspec +0 -1
  46. metadata +12 -17
  47. data/lib/stackify/logger.rb +0 -10
@@ -26,5 +26,4 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
27
27
  spec.add_dependency('concurrent-ruby', '~> 1.0')
28
28
  spec.add_dependency('delegate_matcher', '~> 0.4')
29
- spec.add_dependency('webmock', '~> 3.4')
30
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackify-ruby-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stackify
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-16 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.4'
83
- - !ruby/object:Gem::Dependency
84
- name: webmock
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.4'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.4'
97
83
  description:
98
84
  email:
99
85
  - support@stackify.com
@@ -105,8 +91,10 @@ files:
105
91
  - ".rspec"
106
92
  - Gemfile
107
93
  - Gemfile.lock
94
+ - LICENSE.md
108
95
  - README.md
109
96
  - Rakefile
97
+ - docker-compose.yml
110
98
  - lib/stackify-ruby-apm.rb
111
99
  - lib/stackify/agent.rb
112
100
  - lib/stackify/config.rb
@@ -123,7 +111,8 @@ files:
123
111
  - lib/stackify/instrumenter.rb
124
112
  - lib/stackify/internal_error.rb
125
113
  - lib/stackify/log.rb
126
- - lib/stackify/logger.rb
114
+ - lib/stackify/logger/logger_high_version.rb
115
+ - lib/stackify/logger/logger_lower_version.rb
127
116
  - lib/stackify/middleware.rb
128
117
  - lib/stackify/naively_hashable.rb
129
118
  - lib/stackify/normalizers.rb
@@ -141,9 +130,14 @@ files:
141
130
  - lib/stackify/spies.rb
142
131
  - lib/stackify/spies/action_dispatch.rb
143
132
  - lib/stackify/spies/httpclient.rb
133
+ - lib/stackify/spies/httprb.rb
144
134
  - lib/stackify/spies/mongo.rb
145
135
  - lib/stackify/spies/net_http.rb
136
+ - lib/stackify/spies/redis.rb
146
137
  - lib/stackify/spies/sinatra.rb
138
+ - lib/stackify/spies/sinatra_activerecord/mysql_adapter.rb
139
+ - lib/stackify/spies/sinatra_activerecord/postgresql_adapter.rb
140
+ - lib/stackify/spies/sinatra_activerecord/sqlite_adapter.rb
147
141
  - lib/stackify/spies/tilt.rb
148
142
  - lib/stackify/stacktrace.rb
149
143
  - lib/stackify/stacktrace/frame.rb
@@ -159,6 +153,7 @@ files:
159
153
  - lib/stackify/version.rb
160
154
  - lib/stackify/worker.rb
161
155
  - lib/stackify_ruby_apm.rb
156
+ - run-test.sh
162
157
  - stackify-ruby-apm.gemspec
163
158
  homepage: http://www.stackify.com
164
159
  licenses:
@@ -1,10 +0,0 @@
1
- module StackifyRubyAPM
2
- # Starts the Monkey patch for the generated log by not including the header
3
- #
4
- # @param file
5
- # @removed the header of the generated log
6
- class Logger::LogDevice
7
- def add_log_header(file)
8
- end
9
- end
10
- end