ls-trace 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (356) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +673 -0
  3. data/.circleci/images/primary/Dockerfile-2.0.0 +73 -0
  4. data/.circleci/images/primary/Dockerfile-2.1.10 +73 -0
  5. data/.circleci/images/primary/Dockerfile-2.2.10 +73 -0
  6. data/.circleci/images/primary/Dockerfile-2.3.8 +75 -0
  7. data/.circleci/images/primary/Dockerfile-2.4.6 +73 -0
  8. data/.circleci/images/primary/Dockerfile-2.5.6 +73 -0
  9. data/.circleci/images/primary/Dockerfile-2.6.4 +73 -0
  10. data/.dockerignore +1 -0
  11. data/.env +24 -0
  12. data/.github/CODEOWNERS +1 -0
  13. data/.gitignore +59 -0
  14. data/.rspec +1 -0
  15. data/.rubocop.yml +77 -0
  16. data/.yardopts +5 -0
  17. data/Appraisals +820 -0
  18. data/CHANGELOG.md +1051 -0
  19. data/CONTRIBUTING.md +85 -0
  20. data/Gemfile +7 -0
  21. data/LICENSE +24 -0
  22. data/README.md +108 -0
  23. data/Rakefile +635 -0
  24. data/benchmarks/postgres_database.yml +9 -0
  25. data/benchmarks/sidekiq_test.rb +154 -0
  26. data/ddtrace.gemspec +63 -0
  27. data/docker-compose.yml +276 -0
  28. data/docs/DevelopmentGuide.md +195 -0
  29. data/docs/GettingStarted.md +1981 -0
  30. data/lib/ddtrace.rb +63 -0
  31. data/lib/ddtrace/analytics.rb +29 -0
  32. data/lib/ddtrace/augmentation.rb +13 -0
  33. data/lib/ddtrace/augmentation/method_wrapper.rb +20 -0
  34. data/lib/ddtrace/augmentation/method_wrapping.rb +38 -0
  35. data/lib/ddtrace/augmentation/shim.rb +102 -0
  36. data/lib/ddtrace/buffer.rb +119 -0
  37. data/lib/ddtrace/configuration.rb +30 -0
  38. data/lib/ddtrace/configuration/base.rb +82 -0
  39. data/lib/ddtrace/configuration/dependency_resolver.rb +24 -0
  40. data/lib/ddtrace/configuration/option.rb +55 -0
  41. data/lib/ddtrace/configuration/option_definition.rb +127 -0
  42. data/lib/ddtrace/configuration/option_definition_set.rb +18 -0
  43. data/lib/ddtrace/configuration/option_set.rb +6 -0
  44. data/lib/ddtrace/configuration/options.rb +107 -0
  45. data/lib/ddtrace/configuration/pin_setup.rb +30 -0
  46. data/lib/ddtrace/configuration/settings.rb +105 -0
  47. data/lib/ddtrace/context.rb +284 -0
  48. data/lib/ddtrace/context_flush.rb +132 -0
  49. data/lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb +144 -0
  50. data/lib/ddtrace/contrib/action_pack/action_controller/patcher.rb +37 -0
  51. data/lib/ddtrace/contrib/action_pack/configuration/settings.rb +27 -0
  52. data/lib/ddtrace/contrib/action_pack/ext.rb +16 -0
  53. data/lib/ddtrace/contrib/action_pack/integration.rb +36 -0
  54. data/lib/ddtrace/contrib/action_pack/patcher.rb +29 -0
  55. data/lib/ddtrace/contrib/action_pack/utils.rb +36 -0
  56. data/lib/ddtrace/contrib/action_view/configuration/settings.rb +26 -0
  57. data/lib/ddtrace/contrib/action_view/ext.rb +17 -0
  58. data/lib/ddtrace/contrib/action_view/instrumentation/partial_renderer.rb +78 -0
  59. data/lib/ddtrace/contrib/action_view/instrumentation/template_renderer.rb +167 -0
  60. data/lib/ddtrace/contrib/action_view/integration.rb +43 -0
  61. data/lib/ddtrace/contrib/action_view/patcher.rb +53 -0
  62. data/lib/ddtrace/contrib/action_view/utils.rb +32 -0
  63. data/lib/ddtrace/contrib/active_model_serializers/configuration/settings.rb +25 -0
  64. data/lib/ddtrace/contrib/active_model_serializers/event.rb +65 -0
  65. data/lib/ddtrace/contrib/active_model_serializers/events.rb +30 -0
  66. data/lib/ddtrace/contrib/active_model_serializers/events/render.rb +32 -0
  67. data/lib/ddtrace/contrib/active_model_serializers/events/serialize.rb +35 -0
  68. data/lib/ddtrace/contrib/active_model_serializers/ext.rb +17 -0
  69. data/lib/ddtrace/contrib/active_model_serializers/integration.rb +39 -0
  70. data/lib/ddtrace/contrib/active_model_serializers/patcher.rb +36 -0
  71. data/lib/ddtrace/contrib/active_record/configuration/resolver.rb +46 -0
  72. data/lib/ddtrace/contrib/active_record/configuration/settings.rb +30 -0
  73. data/lib/ddtrace/contrib/active_record/event.rb +30 -0
  74. data/lib/ddtrace/contrib/active_record/events.rb +30 -0
  75. data/lib/ddtrace/contrib/active_record/events/instantiation.rb +57 -0
  76. data/lib/ddtrace/contrib/active_record/events/sql.rb +64 -0
  77. data/lib/ddtrace/contrib/active_record/ext.rb +21 -0
  78. data/lib/ddtrace/contrib/active_record/integration.rb +44 -0
  79. data/lib/ddtrace/contrib/active_record/patcher.rb +29 -0
  80. data/lib/ddtrace/contrib/active_record/utils.rb +76 -0
  81. data/lib/ddtrace/contrib/active_support/cache/instrumentation.rb +157 -0
  82. data/lib/ddtrace/contrib/active_support/cache/patcher.rb +62 -0
  83. data/lib/ddtrace/contrib/active_support/cache/redis.rb +47 -0
  84. data/lib/ddtrace/contrib/active_support/configuration/settings.rb +25 -0
  85. data/lib/ddtrace/contrib/active_support/ext.rb +21 -0
  86. data/lib/ddtrace/contrib/active_support/integration.rb +38 -0
  87. data/lib/ddtrace/contrib/active_support/notifications/event.rb +62 -0
  88. data/lib/ddtrace/contrib/active_support/notifications/subscriber.rb +66 -0
  89. data/lib/ddtrace/contrib/active_support/notifications/subscription.rb +159 -0
  90. data/lib/ddtrace/contrib/active_support/patcher.rb +29 -0
  91. data/lib/ddtrace/contrib/analytics.rb +20 -0
  92. data/lib/ddtrace/contrib/aws/configuration/settings.rb +25 -0
  93. data/lib/ddtrace/contrib/aws/ext.rb +20 -0
  94. data/lib/ddtrace/contrib/aws/instrumentation.rb +56 -0
  95. data/lib/ddtrace/contrib/aws/integration.rb +36 -0
  96. data/lib/ddtrace/contrib/aws/parsed_context.rb +56 -0
  97. data/lib/ddtrace/contrib/aws/patcher.rb +49 -0
  98. data/lib/ddtrace/contrib/aws/services.rb +115 -0
  99. data/lib/ddtrace/contrib/concurrent_ruby/configuration/settings.rb +15 -0
  100. data/lib/ddtrace/contrib/concurrent_ruby/context_composite_executor_service.rb +35 -0
  101. data/lib/ddtrace/contrib/concurrent_ruby/ext.rb +11 -0
  102. data/lib/ddtrace/contrib/concurrent_ruby/future_patch.rb +23 -0
  103. data/lib/ddtrace/contrib/concurrent_ruby/integration.rb +32 -0
  104. data/lib/ddtrace/contrib/concurrent_ruby/patcher.rb +35 -0
  105. data/lib/ddtrace/contrib/configurable.rb +59 -0
  106. data/lib/ddtrace/contrib/configuration/resolver.rb +12 -0
  107. data/lib/ddtrace/contrib/configuration/settings.rb +35 -0
  108. data/lib/ddtrace/contrib/dalli/configuration/settings.rb +25 -0
  109. data/lib/ddtrace/contrib/dalli/ext.rb +17 -0
  110. data/lib/ddtrace/contrib/dalli/instrumentation.rb +50 -0
  111. data/lib/ddtrace/contrib/dalli/integration.rb +36 -0
  112. data/lib/ddtrace/contrib/dalli/patcher.rb +73 -0
  113. data/lib/ddtrace/contrib/dalli/quantize.rb +22 -0
  114. data/lib/ddtrace/contrib/delayed_job/configuration/settings.rb +25 -0
  115. data/lib/ddtrace/contrib/delayed_job/ext.rb +18 -0
  116. data/lib/ddtrace/contrib/delayed_job/integration.rb +32 -0
  117. data/lib/ddtrace/contrib/delayed_job/patcher.rb +34 -0
  118. data/lib/ddtrace/contrib/delayed_job/plugin.rb +57 -0
  119. data/lib/ddtrace/contrib/elasticsearch/configuration/settings.rb +26 -0
  120. data/lib/ddtrace/contrib/elasticsearch/ext.rb +19 -0
  121. data/lib/ddtrace/contrib/elasticsearch/integration.rb +37 -0
  122. data/lib/ddtrace/contrib/elasticsearch/patcher.rb +124 -0
  123. data/lib/ddtrace/contrib/elasticsearch/quantize.rb +80 -0
  124. data/lib/ddtrace/contrib/ethon/configuration/settings.rb +26 -0
  125. data/lib/ddtrace/contrib/ethon/easy_patch.rb +139 -0
  126. data/lib/ddtrace/contrib/ethon/ext.rb +15 -0
  127. data/lib/ddtrace/contrib/ethon/integration.rb +31 -0
  128. data/lib/ddtrace/contrib/ethon/multi_patch.rb +80 -0
  129. data/lib/ddtrace/contrib/ethon/patcher.rb +27 -0
  130. data/lib/ddtrace/contrib/excon/configuration/settings.rb +28 -0
  131. data/lib/ddtrace/contrib/excon/ext.rb +14 -0
  132. data/lib/ddtrace/contrib/excon/integration.rb +32 -0
  133. data/lib/ddtrace/contrib/excon/middleware.rb +154 -0
  134. data/lib/ddtrace/contrib/excon/patcher.rb +34 -0
  135. data/lib/ddtrace/contrib/extensions.rb +59 -0
  136. data/lib/ddtrace/contrib/faraday/configuration/settings.rb +33 -0
  137. data/lib/ddtrace/contrib/faraday/ext.rb +14 -0
  138. data/lib/ddtrace/contrib/faraday/integration.rb +36 -0
  139. data/lib/ddtrace/contrib/faraday/middleware.rb +93 -0
  140. data/lib/ddtrace/contrib/faraday/patcher.rb +82 -0
  141. data/lib/ddtrace/contrib/faraday/rack_builder.rb +18 -0
  142. data/lib/ddtrace/contrib/grape/configuration/settings.rb +27 -0
  143. data/lib/ddtrace/contrib/grape/endpoint.rb +199 -0
  144. data/lib/ddtrace/contrib/grape/ext.rb +19 -0
  145. data/lib/ddtrace/contrib/grape/instrumentation.rb +33 -0
  146. data/lib/ddtrace/contrib/grape/integration.rb +36 -0
  147. data/lib/ddtrace/contrib/grape/patcher.rb +79 -0
  148. data/lib/ddtrace/contrib/graphql/configuration/settings.rb +27 -0
  149. data/lib/ddtrace/contrib/graphql/ext.rb +13 -0
  150. data/lib/ddtrace/contrib/graphql/integration.rb +38 -0
  151. data/lib/ddtrace/contrib/graphql/patcher.rb +63 -0
  152. data/lib/ddtrace/contrib/grpc/configuration/settings.rb +25 -0
  153. data/lib/ddtrace/contrib/grpc/datadog_interceptor.rb +74 -0
  154. data/lib/ddtrace/contrib/grpc/datadog_interceptor/client.rb +56 -0
  155. data/lib/ddtrace/contrib/grpc/datadog_interceptor/server.rb +73 -0
  156. data/lib/ddtrace/contrib/grpc/ext.rb +15 -0
  157. data/lib/ddtrace/contrib/grpc/integration.rb +36 -0
  158. data/lib/ddtrace/contrib/grpc/intercept_with_datadog.rb +49 -0
  159. data/lib/ddtrace/contrib/grpc/patcher.rb +78 -0
  160. data/lib/ddtrace/contrib/http/circuit_breaker.rb +63 -0
  161. data/lib/ddtrace/contrib/http/configuration/settings.rb +26 -0
  162. data/lib/ddtrace/contrib/http/ext.rb +14 -0
  163. data/lib/ddtrace/contrib/http/instrumentation.rb +114 -0
  164. data/lib/ddtrace/contrib/http/integration.rb +32 -0
  165. data/lib/ddtrace/contrib/http/patcher.rb +32 -0
  166. data/lib/ddtrace/contrib/integration.rb +16 -0
  167. data/lib/ddtrace/contrib/mongodb/configuration/settings.rb +28 -0
  168. data/lib/ddtrace/contrib/mongodb/ext.rb +20 -0
  169. data/lib/ddtrace/contrib/mongodb/instrumentation.rb +68 -0
  170. data/lib/ddtrace/contrib/mongodb/integration.rb +36 -0
  171. data/lib/ddtrace/contrib/mongodb/parsers.rb +68 -0
  172. data/lib/ddtrace/contrib/mongodb/patcher.rb +37 -0
  173. data/lib/ddtrace/contrib/mongodb/subscribers.rb +108 -0
  174. data/lib/ddtrace/contrib/mysql2/configuration/settings.rb +25 -0
  175. data/lib/ddtrace/contrib/mysql2/ext.rb +15 -0
  176. data/lib/ddtrace/contrib/mysql2/instrumentation.rb +60 -0
  177. data/lib/ddtrace/contrib/mysql2/integration.rb +32 -0
  178. data/lib/ddtrace/contrib/mysql2/patcher.rb +33 -0
  179. data/lib/ddtrace/contrib/patchable.rb +42 -0
  180. data/lib/ddtrace/contrib/patcher.rb +28 -0
  181. data/lib/ddtrace/contrib/racecar/configuration/settings.rb +25 -0
  182. data/lib/ddtrace/contrib/racecar/event.rb +67 -0
  183. data/lib/ddtrace/contrib/racecar/events.rb +30 -0
  184. data/lib/ddtrace/contrib/racecar/events/batch.rb +27 -0
  185. data/lib/ddtrace/contrib/racecar/events/message.rb +27 -0
  186. data/lib/ddtrace/contrib/racecar/ext.rb +21 -0
  187. data/lib/ddtrace/contrib/racecar/integration.rb +36 -0
  188. data/lib/ddtrace/contrib/racecar/patcher.rb +32 -0
  189. data/lib/ddtrace/contrib/rack/configuration/settings.rb +41 -0
  190. data/lib/ddtrace/contrib/rack/ext.rb +18 -0
  191. data/lib/ddtrace/contrib/rack/integration.rb +32 -0
  192. data/lib/ddtrace/contrib/rack/middlewares.rb +283 -0
  193. data/lib/ddtrace/contrib/rack/patcher.rb +72 -0
  194. data/lib/ddtrace/contrib/rack/request_queue.rb +39 -0
  195. data/lib/ddtrace/contrib/rails/configuration/settings.rb +80 -0
  196. data/lib/ddtrace/contrib/rails/ext.rb +12 -0
  197. data/lib/ddtrace/contrib/rails/framework.rb +100 -0
  198. data/lib/ddtrace/contrib/rails/integration.rb +37 -0
  199. data/lib/ddtrace/contrib/rails/middlewares.rb +38 -0
  200. data/lib/ddtrace/contrib/rails/patcher.rb +78 -0
  201. data/lib/ddtrace/contrib/rails/railtie.rb +17 -0
  202. data/lib/ddtrace/contrib/rails/utils.rb +20 -0
  203. data/lib/ddtrace/contrib/rake/configuration/settings.rb +27 -0
  204. data/lib/ddtrace/contrib/rake/ext.rb +18 -0
  205. data/lib/ddtrace/contrib/rake/instrumentation.rb +84 -0
  206. data/lib/ddtrace/contrib/rake/integration.rb +32 -0
  207. data/lib/ddtrace/contrib/rake/patcher.rb +36 -0
  208. data/lib/ddtrace/contrib/redis/configuration/settings.rb +25 -0
  209. data/lib/ddtrace/contrib/redis/ext.rb +18 -0
  210. data/lib/ddtrace/contrib/redis/integration.rb +36 -0
  211. data/lib/ddtrace/contrib/redis/patcher.rb +94 -0
  212. data/lib/ddtrace/contrib/redis/quantize.rb +47 -0
  213. data/lib/ddtrace/contrib/redis/tags.rb +38 -0
  214. data/lib/ddtrace/contrib/registerable.rb +33 -0
  215. data/lib/ddtrace/contrib/registry.rb +42 -0
  216. data/lib/ddtrace/contrib/resque/configuration/settings.rb +26 -0
  217. data/lib/ddtrace/contrib/resque/ext.rb +14 -0
  218. data/lib/ddtrace/contrib/resque/integration.rb +37 -0
  219. data/lib/ddtrace/contrib/resque/patcher.rb +35 -0
  220. data/lib/ddtrace/contrib/resque/resque_job.rb +76 -0
  221. data/lib/ddtrace/contrib/rest_client/configuration/settings.rb +26 -0
  222. data/lib/ddtrace/contrib/rest_client/ext.rb +14 -0
  223. data/lib/ddtrace/contrib/rest_client/integration.rb +31 -0
  224. data/lib/ddtrace/contrib/rest_client/patcher.rb +25 -0
  225. data/lib/ddtrace/contrib/rest_client/request_patch.rb +89 -0
  226. data/lib/ddtrace/contrib/sequel/configuration/settings.rb +23 -0
  227. data/lib/ddtrace/contrib/sequel/database.rb +61 -0
  228. data/lib/ddtrace/contrib/sequel/dataset.rb +62 -0
  229. data/lib/ddtrace/contrib/sequel/ext.rb +15 -0
  230. data/lib/ddtrace/contrib/sequel/integration.rb +32 -0
  231. data/lib/ddtrace/contrib/sequel/patcher.rb +39 -0
  232. data/lib/ddtrace/contrib/sequel/utils.rb +46 -0
  233. data/lib/ddtrace/contrib/shoryuken/configuration/settings.rb +24 -0
  234. data/lib/ddtrace/contrib/shoryuken/ext.rb +18 -0
  235. data/lib/ddtrace/contrib/shoryuken/integration.rb +35 -0
  236. data/lib/ddtrace/contrib/shoryuken/patcher.rb +30 -0
  237. data/lib/ddtrace/contrib/shoryuken/tracer.rb +45 -0
  238. data/lib/ddtrace/contrib/sidekiq/client_tracer.rb +43 -0
  239. data/lib/ddtrace/contrib/sidekiq/configuration/settings.rb +26 -0
  240. data/lib/ddtrace/contrib/sidekiq/ext.rb +21 -0
  241. data/lib/ddtrace/contrib/sidekiq/integration.rb +36 -0
  242. data/lib/ddtrace/contrib/sidekiq/patcher.rb +40 -0
  243. data/lib/ddtrace/contrib/sidekiq/server_tracer.rb +58 -0
  244. data/lib/ddtrace/contrib/sidekiq/tracing.rb +28 -0
  245. data/lib/ddtrace/contrib/sinatra/configuration/settings.rb +34 -0
  246. data/lib/ddtrace/contrib/sinatra/env.rb +38 -0
  247. data/lib/ddtrace/contrib/sinatra/ext.rb +18 -0
  248. data/lib/ddtrace/contrib/sinatra/headers.rb +31 -0
  249. data/lib/ddtrace/contrib/sinatra/integration.rb +36 -0
  250. data/lib/ddtrace/contrib/sinatra/patcher.rb +33 -0
  251. data/lib/ddtrace/contrib/sinatra/tracer.rb +84 -0
  252. data/lib/ddtrace/contrib/sinatra/tracer_middleware.rb +72 -0
  253. data/lib/ddtrace/contrib/sucker_punch/configuration/settings.rb +25 -0
  254. data/lib/ddtrace/contrib/sucker_punch/exception_handler.rb +26 -0
  255. data/lib/ddtrace/contrib/sucker_punch/ext.rb +18 -0
  256. data/lib/ddtrace/contrib/sucker_punch/instrumentation.rb +70 -0
  257. data/lib/ddtrace/contrib/sucker_punch/integration.rb +36 -0
  258. data/lib/ddtrace/contrib/sucker_punch/patcher.rb +48 -0
  259. data/lib/ddtrace/correlation.rb +28 -0
  260. data/lib/ddtrace/diagnostics/health.rb +30 -0
  261. data/lib/ddtrace/distributed_tracing/headers/b3.rb +44 -0
  262. data/lib/ddtrace/distributed_tracing/headers/b3_single.rb +56 -0
  263. data/lib/ddtrace/distributed_tracing/headers/datadog.rb +42 -0
  264. data/lib/ddtrace/distributed_tracing/headers/headers.rb +70 -0
  265. data/lib/ddtrace/distributed_tracing/headers/helpers.rb +45 -0
  266. data/lib/ddtrace/encoding.rb +65 -0
  267. data/lib/ddtrace/environment.rb +23 -0
  268. data/lib/ddtrace/error.rb +27 -0
  269. data/lib/ddtrace/ext/analytics.rb +11 -0
  270. data/lib/ddtrace/ext/app_types.rb +11 -0
  271. data/lib/ddtrace/ext/diagnostics.rb +25 -0
  272. data/lib/ddtrace/ext/distributed.rb +33 -0
  273. data/lib/ddtrace/ext/errors.rb +10 -0
  274. data/lib/ddtrace/ext/forced_tracing.rb +25 -0
  275. data/lib/ddtrace/ext/http.rb +46 -0
  276. data/lib/ddtrace/ext/manual_tracing.rb +9 -0
  277. data/lib/ddtrace/ext/metrics.rb +15 -0
  278. data/lib/ddtrace/ext/net.rb +10 -0
  279. data/lib/ddtrace/ext/priority.rb +16 -0
  280. data/lib/ddtrace/ext/runtime.rb +26 -0
  281. data/lib/ddtrace/ext/sql.rb +8 -0
  282. data/lib/ddtrace/ext/transport.rb +17 -0
  283. data/lib/ddtrace/forced_tracing.rb +36 -0
  284. data/lib/ddtrace/logger.rb +39 -0
  285. data/lib/ddtrace/metrics.rb +215 -0
  286. data/lib/ddtrace/monkey.rb +58 -0
  287. data/lib/ddtrace/opentracer.rb +40 -0
  288. data/lib/ddtrace/opentracer/binary_propagator.rb +24 -0
  289. data/lib/ddtrace/opentracer/carrier.rb +6 -0
  290. data/lib/ddtrace/opentracer/distributed_headers.rb +52 -0
  291. data/lib/ddtrace/opentracer/global_tracer.rb +15 -0
  292. data/lib/ddtrace/opentracer/propagator.rb +22 -0
  293. data/lib/ddtrace/opentracer/rack_propagator.rb +60 -0
  294. data/lib/ddtrace/opentracer/scope.rb +15 -0
  295. data/lib/ddtrace/opentracer/scope_manager.rb +6 -0
  296. data/lib/ddtrace/opentracer/span.rb +98 -0
  297. data/lib/ddtrace/opentracer/span_context.rb +14 -0
  298. data/lib/ddtrace/opentracer/span_context_factory.rb +23 -0
  299. data/lib/ddtrace/opentracer/text_map_propagator.rb +75 -0
  300. data/lib/ddtrace/opentracer/thread_local_scope.rb +30 -0
  301. data/lib/ddtrace/opentracer/thread_local_scope_manager.rb +40 -0
  302. data/lib/ddtrace/opentracer/tracer.rb +208 -0
  303. data/lib/ddtrace/patcher.rb +47 -0
  304. data/lib/ddtrace/pin.rb +114 -0
  305. data/lib/ddtrace/pipeline.rb +46 -0
  306. data/lib/ddtrace/pipeline/span_filter.rb +38 -0
  307. data/lib/ddtrace/pipeline/span_processor.rb +20 -0
  308. data/lib/ddtrace/propagation/grpc_propagator.rb +61 -0
  309. data/lib/ddtrace/propagation/http_propagator.rb +75 -0
  310. data/lib/ddtrace/provider.rb +21 -0
  311. data/lib/ddtrace/quantization/hash.rb +103 -0
  312. data/lib/ddtrace/quantization/http.rb +86 -0
  313. data/lib/ddtrace/runtime/cgroup.rb +44 -0
  314. data/lib/ddtrace/runtime/class_count.rb +17 -0
  315. data/lib/ddtrace/runtime/container.rb +73 -0
  316. data/lib/ddtrace/runtime/gc.rb +16 -0
  317. data/lib/ddtrace/runtime/identity.rb +41 -0
  318. data/lib/ddtrace/runtime/metrics.rb +93 -0
  319. data/lib/ddtrace/runtime/object_space.rb +19 -0
  320. data/lib/ddtrace/runtime/socket.rb +14 -0
  321. data/lib/ddtrace/runtime/thread_count.rb +16 -0
  322. data/lib/ddtrace/sampler.rb +195 -0
  323. data/lib/ddtrace/span.rb +260 -0
  324. data/lib/ddtrace/sync_writer.rb +62 -0
  325. data/lib/ddtrace/tracer.rb +459 -0
  326. data/lib/ddtrace/transport/http.rb +91 -0
  327. data/lib/ddtrace/transport/http/adapters/net.rb +112 -0
  328. data/lib/ddtrace/transport/http/adapters/registry.rb +24 -0
  329. data/lib/ddtrace/transport/http/adapters/test.rb +77 -0
  330. data/lib/ddtrace/transport/http/adapters/unix_socket.rb +64 -0
  331. data/lib/ddtrace/transport/http/api.rb +46 -0
  332. data/lib/ddtrace/transport/http/api/endpoint.rb +27 -0
  333. data/lib/ddtrace/transport/http/api/fallbacks.rb +22 -0
  334. data/lib/ddtrace/transport/http/api/instance.rb +29 -0
  335. data/lib/ddtrace/transport/http/api/map.rb +14 -0
  336. data/lib/ddtrace/transport/http/api/spec.rb +15 -0
  337. data/lib/ddtrace/transport/http/builder.rb +165 -0
  338. data/lib/ddtrace/transport/http/client.rb +107 -0
  339. data/lib/ddtrace/transport/http/env.rb +48 -0
  340. data/lib/ddtrace/transport/http/response.rb +26 -0
  341. data/lib/ddtrace/transport/http/statistics.rb +30 -0
  342. data/lib/ddtrace/transport/http/traces.rb +140 -0
  343. data/lib/ddtrace/transport/parcel.rb +13 -0
  344. data/lib/ddtrace/transport/request.rb +13 -0
  345. data/lib/ddtrace/transport/response.rb +49 -0
  346. data/lib/ddtrace/transport/statistics.rb +72 -0
  347. data/lib/ddtrace/transport/traces.rb +33 -0
  348. data/lib/ddtrace/utils.rb +65 -0
  349. data/lib/ddtrace/utils/database.rb +25 -0
  350. data/lib/ddtrace/utils/time.rb +14 -0
  351. data/lib/ddtrace/vendor/active_record/connection_specification.rb +301 -0
  352. data/lib/ddtrace/version.rb +12 -0
  353. data/lib/ddtrace/workers.rb +125 -0
  354. data/lib/ddtrace/writer.rb +157 -0
  355. data/tasks/release_gem.rake +28 -0
  356. metadata +682 -0
@@ -0,0 +1 @@
1
+ gemfiles/*
data/.env ADDED
@@ -0,0 +1,24 @@
1
+ DD_AGENT_HOST=localhost
2
+ DD_METRIC_AGENT_PORT=8125
3
+ DD_TRACE_AGENT_PORT=8126
4
+ TEST_DDAGENT_API_KEY=invalid_key_but_this_is_fine
5
+ TEST_ELASTICSEARCH_HOST=127.0.0.1
6
+ TEST_ELASTICSEARCH_NATIVE_PORT=9300
7
+ TEST_ELASTICSEARCH_REST_PORT=9200
8
+ TEST_MEMCACHED_HOST=127.0.0.1
9
+ TEST_MEMCACHED_PORT=11211
10
+ TEST_MONGODB_HOST=127.0.0.1
11
+ TEST_MONGODB_PORT=27017
12
+ TEST_MYSQL_DB=mysql
13
+ TEST_MYSQL_HOST=127.0.0.1
14
+ TEST_MYSQL_PASSWORD=mysql
15
+ TEST_MYSQL_PORT=3306
16
+ TEST_MYSQL_ROOT_PASSWORD=root
17
+ TEST_MYSQL_USER=mysql
18
+ TEST_POSTGRES_DB=postgres
19
+ TEST_POSTGRES_HOST=127.0.0.1
20
+ TEST_POSTGRES_PASSWORD=postgres
21
+ TEST_POSTGRES_PORT=5432
22
+ TEST_POSTGRES_USER=postgres
23
+ TEST_REDIS_HOST=127.0.0.1
24
+ TEST_REDIS_PORT=6379
@@ -0,0 +1 @@
1
+ * @DataDog/apm-ruby
@@ -0,0 +1,59 @@
1
+ *.gem
2
+ *.rbc
3
+ *.swp
4
+ /.config
5
+ /coverage/
6
+ /InstalledFiles
7
+ /pkg/
8
+ /spec/reports/
9
+ /spec/examples.txt
10
+ /test/tmp/
11
+ /test/version_tmp/
12
+ /tmp/
13
+ /log/
14
+
15
+ # Used by dotenv library to load environment variables.
16
+ # .env
17
+
18
+ ## Specific to RubyMotion:
19
+ .dat*
20
+ .repl_history
21
+ build/
22
+ *.bridgesupport
23
+ build-iPhoneOS/
24
+ build-iPhoneSimulator/
25
+
26
+ ## Specific to RubyMotion (use of CocoaPods):
27
+ #
28
+ # We recommend against adding the Pods directory to your .gitignore. However
29
+ # you should judge for yourself, the pros and cons are mentioned at:
30
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
31
+ #
32
+ # vendor/Pods/
33
+
34
+ ## Documentation cache and generated files:
35
+ /.yardoc/
36
+ /_yardoc/
37
+ /doc/
38
+ /rdoc/
39
+ /html/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ .ruby-version
49
+ .ruby-gemset
50
+
51
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
52
+ .rvmrc
53
+
54
+ # lock files
55
+ Gemfile.lock
56
+ gemfiles/*
57
+
58
+ # bundle config
59
+ gemfiles/.bundle
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
@@ -0,0 +1,77 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.1
3
+ Include:
4
+ - 'lib/**/*.rb'
5
+ - 'test/**/*.rb'
6
+ - 'spec/**/*.rb'
7
+ - 'Gemfile'
8
+ - 'Rakefile'
9
+ Exclude:
10
+ - 'Appraisals'
11
+ - '*.gemspec'
12
+ - 'lib/ddtrace/vendor/**/*.rb'
13
+
14
+ # 80 characters is a nice goal, but not worth currently changing in existing
15
+ # code for the sake of changing it to conform to a length set in 1928 (IBM).
16
+ Metrics/LineLength:
17
+ Max: 124
18
+
19
+ # These exceptions are good goals to attain, and probably will over time,
20
+ # so periodic disabling and re-running to inspect values is suggested.
21
+
22
+ Metrics/AbcSize:
23
+ Max: 50
24
+
25
+ # TODO: As refactors continue, this should drop. However, the goal of
26
+ # 10 lines in a method may be a little lofty.
27
+ Metrics/MethodLength:
28
+ Max: 36
29
+
30
+ Performance/Casecmp:
31
+ Enabled: false
32
+
33
+ # TODO: this is not compliant with the Ruby community style guide. We
34
+ # should enable again this rule but it will change the public API because
35
+ # we're using set_ methods. We should work on that because also Rails
36
+ # honors this rule.
37
+ Style/AccessorMethodName:
38
+ Enabled: false
39
+
40
+ Style/MethodCallWithoutArgsParentheses:
41
+ Enabled: false
42
+
43
+ Style/RescueModifier:
44
+ Enabled: false
45
+
46
+ Style/NumericLiterals:
47
+ Enabled: false
48
+
49
+ Metrics/ClassLength:
50
+ Max: 140
51
+
52
+ Metrics/BlockLength:
53
+ Max: 42
54
+ Exclude:
55
+ - test/**/*
56
+ - spec/**/*
57
+
58
+ Metrics/ParameterLists:
59
+ Enabled: false
60
+
61
+ Metrics/CyclomaticComplexity:
62
+ Max: 15
63
+
64
+ Metrics/PerceivedComplexity:
65
+ Max: 15
66
+
67
+ Lint/UnusedMethodArgument:
68
+ Enabled: false
69
+
70
+ # Disabling advices that would lead to incompatible Ruby 1.9 code
71
+ Style/SymbolArray:
72
+ Enabled: false
73
+
74
+ # Simple conditionals are perfectly fine, and more readable for multiline
75
+ # expressions.
76
+ Style/GuardClause:
77
+ Enabled: false
@@ -0,0 +1,5 @@
1
+ --readme docs/GettingStarted.md
2
+ --main docs/GettingStarted.md
3
+ -
4
+ docs/GettingStarted.md
5
+ LICENSE
@@ -0,0 +1,820 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'ddtrace/version'
4
+
5
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new(Datadog::VERSION::MINIMUM_RUBY_VERSION)
6
+ raise NotImplementedError, "Ruby versions < #{Datadog::VERSION::MINIMUM_RUBY_VERSION} are not supported!"
7
+ elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
8
+ && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
9
+ if RUBY_PLATFORM != 'java'
10
+ appraise 'rails30-postgres' do
11
+ gem 'test-unit'
12
+ gem 'rails', '3.0.20'
13
+ gem 'pg', '0.15.1', platform: :ruby
14
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
15
+ gem 'rack-cache', '1.7.1'
16
+ end
17
+
18
+ appraise 'rails30-postgres-sidekiq' do
19
+ gem 'test-unit'
20
+ gem 'rails', '3.0.20'
21
+ gem 'pg', '0.15.1', platform: :ruby
22
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
23
+ gem 'sidekiq', '4.0.0'
24
+ gem 'rack-cache', '1.7.1'
25
+ end
26
+
27
+ appraise 'rails32-mysql2' do
28
+ gem 'test-unit'
29
+ gem 'rails', '3.2.22.5'
30
+ gem 'mysql2', '0.3.21', platform: :ruby
31
+ gem 'activerecord-mysql-adapter', platform: :ruby
32
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
33
+ gem 'rack-cache', '1.7.1'
34
+ end
35
+
36
+ appraise 'rails32-postgres' do
37
+ gem 'test-unit'
38
+ gem 'rails', '3.2.22.5'
39
+ gem 'pg', '0.15.1', platform: :ruby
40
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
41
+ gem 'rack-cache', '1.7.1'
42
+ end
43
+
44
+ appraise 'rails32-postgres-redis' do
45
+ gem 'test-unit'
46
+ gem 'rails', '3.2.22.5'
47
+ gem 'pg', '0.15.1', platform: :ruby
48
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
49
+ gem 'redis-rails'
50
+ gem 'redis', '< 4.0'
51
+ gem 'rack-cache', '1.7.1'
52
+ end
53
+
54
+ appraise 'rails32-postgres-sidekiq' do
55
+ gem 'test-unit'
56
+ gem 'rails', '3.2.22.5'
57
+ gem 'pg', '0.15.1', platform: :ruby
58
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
59
+ gem 'sidekiq', '4.0.0'
60
+ gem 'rack-cache', '1.7.1'
61
+ end
62
+
63
+ appraise 'contrib-old' do
64
+ gem 'active_model_serializers', '~> 0.9.0'
65
+ gem 'activerecord', '3.2.22.5'
66
+ gem 'activerecord-mysql-adapter', platform: :ruby
67
+ gem 'aws-sdk', '~> 2.0'
68
+ gem 'concurrent-ruby'
69
+ gem 'dalli'
70
+ gem 'delayed_job'
71
+ gem 'delayed_job_active_record'
72
+ gem 'elasticsearch-transport'
73
+ gem 'ethon'
74
+ gem 'excon'
75
+ gem 'hiredis'
76
+ gem 'mongo', '< 2.5'
77
+ gem 'mysql2', '0.3.21', platform: :ruby
78
+ gem 'rack', '1.4.7'
79
+ gem 'rack-cache', '1.7.1'
80
+ gem 'rack-test', '0.7.0'
81
+ gem 'rake', '< 12.3'
82
+ gem 'redis', '< 4.0'
83
+ gem 'rest-client'
84
+ gem 'resque', '< 2.0'
85
+ gem 'sequel', '~> 4.0', '< 4.37'
86
+ gem 'sidekiq', '~> 3.5.4'
87
+ gem 'sinatra', '1.4.5'
88
+ gem 'sqlite3', '~> 1.3.6'
89
+ gem 'sucker_punch'
90
+ gem 'timers', '< 4.2'
91
+ gem 'typhoeus'
92
+ end
93
+ end
94
+ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
95
+ && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
96
+ if RUBY_PLATFORM != 'java'
97
+ appraise 'rails30-postgres' do
98
+ gem 'test-unit'
99
+ gem 'rails', '3.0.20'
100
+ gem 'pg', '0.15.1', platform: :ruby
101
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
102
+ gem 'rack-cache', '1.7.1'
103
+ end
104
+
105
+ appraise 'rails30-postgres-sidekiq' do
106
+ gem 'test-unit'
107
+ gem 'rails', '3.0.20'
108
+ gem 'pg', '0.15.1', platform: :ruby
109
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
110
+ gem 'sidekiq', '4.0.0'
111
+ gem 'rack-cache', '1.7.1'
112
+ end
113
+
114
+ appraise 'rails32-mysql2' do
115
+ gem 'test-unit'
116
+ gem 'rails', '3.2.22.5'
117
+ gem 'mysql2', '0.3.21', platform: :ruby
118
+ gem 'activerecord-mysql-adapter', platform: :ruby
119
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
120
+ gem 'rack-cache', '1.7.1'
121
+ end
122
+
123
+ appraise 'rails32-postgres' do
124
+ gem 'test-unit'
125
+ gem 'rails', '3.2.22.5'
126
+ gem 'pg', '0.15.1', platform: :ruby
127
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
128
+ gem 'rack-cache', '1.7.1'
129
+ end
130
+
131
+ appraise 'rails32-postgres-redis' do
132
+ gem 'test-unit'
133
+ gem 'rails', '3.2.22.5'
134
+ gem 'pg', '0.15.1', platform: :ruby
135
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
136
+ gem 'redis-rails'
137
+ gem 'redis', '< 4.0'
138
+ gem 'rack-cache', '1.7.1'
139
+ end
140
+
141
+ appraise 'rails32-postgres-sidekiq' do
142
+ gem 'test-unit'
143
+ gem 'rails', '3.2.22.5'
144
+ gem 'pg', '0.15.1', platform: :ruby
145
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
146
+ gem 'sidekiq', '4.0.0'
147
+ gem 'rack-cache', '1.7.1'
148
+ end
149
+
150
+ appraise 'rails4-mysql2' do
151
+ gem 'rails', '4.2.7.1'
152
+ gem 'mysql2', '< 0.5', platform: :ruby
153
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
154
+ gem 'sprockets', '< 4'
155
+ end
156
+
157
+ appraise 'rails4-postgres' do
158
+ gem 'rails', '4.2.7.1'
159
+ gem 'pg', '< 1.0', platform: :ruby
160
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
161
+ gem 'sprockets', '< 4'
162
+ end
163
+
164
+ appraise 'rails4-postgres-redis' do
165
+ gem 'rails', '4.2.7.1'
166
+ gem 'pg', '< 1.0', platform: :ruby
167
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
168
+ gem 'redis-rails'
169
+ gem 'redis', '< 4.0'
170
+ gem 'sprockets', '< 4'
171
+ end
172
+
173
+ appraise 'contrib-old' do
174
+ gem 'active_model_serializers', '~> 0.9.0'
175
+ gem 'activerecord', '3.2.22.5'
176
+ gem 'activerecord-mysql-adapter', platform: :ruby
177
+ gem 'aws-sdk', '~> 2.0'
178
+ gem 'concurrent-ruby'
179
+ gem 'dalli'
180
+ gem 'delayed_job'
181
+ gem 'delayed_job_active_record'
182
+ gem 'elasticsearch-transport'
183
+ gem 'ethon'
184
+ gem 'excon'
185
+ gem 'hiredis'
186
+ gem 'mongo', '< 2.5'
187
+ gem 'mysql2', '0.3.21', platform: :ruby
188
+ gem 'rack', '1.4.7'
189
+ gem 'rack-cache', '1.7.1'
190
+ gem 'rack-test', '0.7.0'
191
+ gem 'rake', '< 12.3'
192
+ gem 'redis', '< 4.0'
193
+ gem 'rest-client'
194
+ gem 'resque', '< 2.0'
195
+ gem 'sequel', '~> 4.0', '< 4.37'
196
+ gem 'shoryuken'
197
+ gem 'sidekiq', '~> 3.5.4'
198
+ gem 'sinatra', '1.4.5'
199
+ gem 'sqlite3', '~> 1.3.6'
200
+ gem 'sucker_punch'
201
+ gem 'timers', '< 4.2'
202
+ gem 'typhoeus'
203
+ end
204
+ end
205
+ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
206
+ && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0')
207
+ if RUBY_PLATFORM != 'java'
208
+ appraise 'rails30-postgres' do
209
+ gem 'test-unit'
210
+ gem 'rails', '3.0.20'
211
+ gem 'pg', '0.15.1', platform: :ruby
212
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
213
+ gem 'rack-cache', '1.7.1'
214
+ end
215
+
216
+ appraise 'rails30-postgres-sidekiq' do
217
+ gem 'test-unit'
218
+ gem 'rails', '3.0.20'
219
+ gem 'pg', '0.15.1', platform: :ruby
220
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
221
+ gem 'sidekiq', '4.0.0'
222
+ gem 'rack-cache', '1.7.1'
223
+ end
224
+
225
+ appraise 'rails32-mysql2' do
226
+ gem 'test-unit'
227
+ gem 'rails', '3.2.22.5'
228
+ gem 'mysql2', '0.3.21', platform: :ruby
229
+ gem 'activerecord-mysql-adapter', platform: :ruby
230
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
231
+ gem 'rack-cache', '1.7.1'
232
+ end
233
+
234
+ appraise 'rails32-postgres' do
235
+ gem 'test-unit'
236
+ gem 'rails', '3.2.22.5'
237
+ gem 'pg', '0.15.1', platform: :ruby
238
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
239
+ gem 'rack-cache', '1.7.1'
240
+ end
241
+
242
+ appraise 'rails32-postgres-redis' do
243
+ gem 'test-unit'
244
+ gem 'rails', '3.2.22.5'
245
+ gem 'pg', '0.15.1', platform: :ruby
246
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
247
+ gem 'redis-rails'
248
+ gem 'redis', '< 4.0'
249
+ gem 'rack-cache', '1.7.1'
250
+ end
251
+
252
+ appraise 'rails32-postgres-sidekiq' do
253
+ gem 'test-unit'
254
+ gem 'rails', '3.2.22.5'
255
+ gem 'pg', '0.15.1', platform: :ruby
256
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
257
+ gem 'sidekiq', '4.0.0'
258
+ gem 'rack-cache', '1.7.1'
259
+ end
260
+
261
+ appraise 'rails4-mysql2' do
262
+ gem 'rails', '4.2.7.1'
263
+ gem 'mysql2', '< 0.5', platform: :ruby
264
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
265
+ gem 'sprockets', '< 4'
266
+ end
267
+
268
+ appraise 'rails4-postgres' do
269
+ gem 'rails', '4.2.7.1'
270
+ gem 'pg', '< 1.0', platform: :ruby
271
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
272
+ gem 'sprockets', '< 4'
273
+ end
274
+
275
+ appraise 'rails4-postgres-redis' do
276
+ gem 'rails', '4.2.7.1'
277
+ gem 'pg', '< 1.0', platform: :ruby
278
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
279
+ gem 'redis-rails'
280
+ gem 'redis', '< 4.0'
281
+ gem 'sprockets', '< 4'
282
+ end
283
+
284
+ appraise 'rails4-postgres-sidekiq' do
285
+ gem 'rails', '4.2.7.1'
286
+ gem 'pg', '< 1.0', platform: :ruby
287
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
288
+ gem 'sidekiq'
289
+ gem 'activejob'
290
+ gem 'sprockets', '< 4'
291
+ end
292
+
293
+ appraise 'rails5-mysql2' do
294
+ gem 'rails', '~> 5.2.1'
295
+ gem 'mysql2', '< 0.5', platform: :ruby
296
+ gem 'sprockets', '< 4'
297
+ end
298
+
299
+ appraise 'rails5-postgres' do
300
+ gem 'rails', '~> 5.2.1'
301
+ gem 'pg', '< 1.0', platform: :ruby
302
+ gem 'sprockets', '< 4'
303
+ end
304
+
305
+ appraise 'rails5-postgres-redis' do
306
+ gem 'rails', '~> 5.2.1'
307
+ gem 'pg', '< 1.0', platform: :ruby
308
+ gem 'redis'
309
+ gem 'sprockets', '< 4'
310
+ end
311
+
312
+ appraise 'rails5-postgres-redis-activesupport' do
313
+ gem 'rails', '~> 5.2.1'
314
+ gem 'pg', '< 1.0', platform: :ruby
315
+ gem 'redis-rails'
316
+ gem 'redis'
317
+ gem 'sprockets', '< 4'
318
+ end
319
+
320
+ appraise 'rails5-postgres-sidekiq' do
321
+ gem 'rails', '~> 5.2.1'
322
+ gem 'pg', '< 1.0', platform: :ruby
323
+ gem 'sidekiq'
324
+ gem 'activejob'
325
+ gem 'sprockets', '< 4'
326
+ end
327
+
328
+ appraise 'contrib' do
329
+ gem 'actionpack'
330
+ gem 'actionview'
331
+ gem 'active_model_serializers', '>= 0.10.0'
332
+ gem 'activerecord', '< 5.1.5'
333
+ gem 'aws-sdk'
334
+ gem 'concurrent-ruby'
335
+ gem 'dalli'
336
+ gem 'delayed_job'
337
+ gem 'delayed_job_active_record'
338
+ gem 'elasticsearch-transport'
339
+ gem 'ethon'
340
+ gem 'excon'
341
+ gem 'faraday'
342
+ gem 'grape'
343
+ gem 'graphql', '< 1.9.4'
344
+ gem 'grpc'
345
+ gem 'hiredis'
346
+ gem 'mongo', '>= 2.8.0'
347
+ gem 'mysql2', '< 0.5', platform: :ruby
348
+ gem 'racecar', '>= 0.3.5'
349
+ gem 'rack'
350
+ gem 'rack-test'
351
+ gem 'rake', '>= 12.3'
352
+ gem 'redis', '< 4.0'
353
+ gem 'rest-client'
354
+ gem 'resque', '< 2.0'
355
+ gem 'sequel'
356
+ gem 'shoryuken'
357
+ gem 'sidekiq'
358
+ gem 'sinatra'
359
+ gem 'sqlite3', '~> 1.3.6'
360
+ gem 'sucker_punch'
361
+ gem 'typhoeus'
362
+ end
363
+ end
364
+ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
365
+ && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4.0')
366
+ if RUBY_PLATFORM != 'java'
367
+ appraise 'rails30-postgres' do
368
+ gem 'test-unit'
369
+ gem 'rails', '3.0.20'
370
+ gem 'pg', '0.15.1', platform: :ruby
371
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
372
+ gem 'rack-cache', '1.7.1'
373
+ end
374
+
375
+ appraise 'rails30-postgres-sidekiq' do
376
+ gem 'test-unit'
377
+ gem 'rails', '3.0.20'
378
+ gem 'pg', '0.15.1', platform: :ruby
379
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
380
+ gem 'sidekiq', '4.0.0'
381
+ gem 'rack-cache', '1.7.1'
382
+ end
383
+
384
+ appraise 'rails32-mysql2' do
385
+ gem 'test-unit'
386
+ gem 'rails', '3.2.22.5'
387
+ gem 'mysql2', '0.3.21', platform: :ruby
388
+ gem 'activerecord-mysql-adapter', platform: :ruby
389
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
390
+ gem 'rack-cache', '1.7.1'
391
+ end
392
+
393
+ appraise 'rails32-postgres' do
394
+ gem 'test-unit'
395
+ gem 'rails', '3.2.22.5'
396
+ gem 'pg', '0.15.1', platform: :ruby
397
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
398
+ gem 'rack-cache', '1.7.1'
399
+ end
400
+
401
+ appraise 'rails32-postgres-redis' do
402
+ gem 'test-unit'
403
+ gem 'rails', '3.2.22.5'
404
+ gem 'pg', '0.15.1', platform: :ruby
405
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
406
+ gem 'redis-rails'
407
+ gem 'redis', '< 4.0'
408
+ gem 'rack-cache', '1.7.1'
409
+ end
410
+
411
+ appraise 'rails32-postgres-sidekiq' do
412
+ gem 'test-unit'
413
+ gem 'rails', '3.2.22.5'
414
+ gem 'pg', '0.15.1', platform: :ruby
415
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
416
+ gem 'sidekiq', '4.0.0'
417
+ gem 'rack-cache', '1.7.1'
418
+ end
419
+
420
+ appraise 'rails4-mysql2' do
421
+ gem 'rails', '4.2.7.1'
422
+ gem 'mysql2', '< 0.5', platform: :ruby
423
+ gem 'activerecord-jdbcmysql-adapter', platform: :jruby
424
+ gem 'sprockets', '< 4'
425
+ end
426
+
427
+ appraise 'rails4-postgres' do
428
+ gem 'rails', '4.2.7.1'
429
+ gem 'pg', '< 1.0', platform: :ruby
430
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
431
+ gem 'sprockets', '< 4'
432
+ end
433
+
434
+ appraise 'rails4-postgres-redis' do
435
+ gem 'rails', '4.2.7.1'
436
+ gem 'pg', '< 1.0', platform: :ruby
437
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
438
+ gem 'redis-rails'
439
+ gem 'redis', '< 4.0'
440
+ gem 'sprockets', '< 4'
441
+ end
442
+
443
+ appraise 'rails4-postgres-sidekiq' do
444
+ gem 'rails', '4.2.7.1'
445
+ gem 'pg', '< 1.0', platform: :ruby
446
+ gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
447
+ gem 'sidekiq'
448
+ gem 'activejob'
449
+ gem 'sprockets', '< 4'
450
+ end
451
+
452
+ appraise 'rails5-mysql2' do
453
+ gem 'rails', '~> 5.2.1'
454
+ gem 'mysql2', '< 0.5', platform: :ruby
455
+ gem 'sprockets', '< 4'
456
+ end
457
+
458
+ appraise 'rails5-postgres' do
459
+ gem 'rails', '~> 5.2.1'
460
+ gem 'pg', '< 1.0', platform: :ruby
461
+ gem 'sprockets', '< 4'
462
+ end
463
+
464
+ appraise 'rails5-postgres-redis' do
465
+ gem 'rails', '~> 5.2.1'
466
+ gem 'pg', '< 1.0', platform: :ruby
467
+ gem 'redis'
468
+ gem 'sprockets', '< 4'
469
+ end
470
+
471
+ appraise 'rails5-postgres-redis-activesupport' do
472
+ gem 'rails', '~> 5.2.1'
473
+ gem 'pg', '< 1.0', platform: :ruby
474
+ gem 'redis-rails'
475
+ gem 'redis'
476
+ gem 'sprockets', '< 4'
477
+ end
478
+
479
+ appraise 'rails5-postgres-sidekiq' do
480
+ gem 'rails', '~> 5.2.1'
481
+ gem 'pg', '< 1.0', platform: :ruby
482
+ gem 'sidekiq'
483
+ gem 'activejob'
484
+ gem 'sprockets', '< 4'
485
+ end
486
+
487
+ appraise 'contrib' do
488
+ gem 'actionpack'
489
+ gem 'actionview'
490
+ gem 'active_model_serializers', '>= 0.10.0'
491
+ gem 'activerecord', '< 5.1.5'
492
+ gem 'aws-sdk'
493
+ gem 'concurrent-ruby'
494
+ gem 'dalli'
495
+ gem 'delayed_job'
496
+ gem 'delayed_job_active_record'
497
+ gem 'elasticsearch-transport'
498
+ gem 'ethon'
499
+ gem 'excon'
500
+ gem 'faraday'
501
+ gem 'grape'
502
+ gem 'graphql'
503
+ gem 'grpc'
504
+ gem 'hiredis'
505
+ gem 'mongo', '>= 2.8.0'
506
+ gem 'mysql2', '< 0.5', platform: :ruby
507
+ gem 'racecar', '>= 0.3.5'
508
+ gem 'rack'
509
+ gem 'rack-test'
510
+ gem 'rake', '>= 12.3'
511
+ gem 'redis', '< 4.0'
512
+ gem 'rest-client'
513
+ gem 'resque', '< 2.0'
514
+ gem 'sequel'
515
+ gem 'shoryuken'
516
+ gem 'sidekiq'
517
+ gem 'sinatra'
518
+ gem 'sqlite3', '~> 1.3.6'
519
+ gem 'sucker_punch'
520
+ gem 'typhoeus'
521
+ end
522
+ end
523
+ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
524
+ && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5.0')
525
+ if RUBY_PLATFORM != 'java'
526
+ appraise 'rails5-mysql2' do
527
+ gem 'rails', '~> 5.2.1'
528
+ gem 'mysql2', '< 0.5', platform: :ruby
529
+ gem 'sprockets', '< 4'
530
+ end
531
+
532
+ appraise 'rails5-postgres' do
533
+ gem 'rails', '~> 5.2.1'
534
+ gem 'pg', '< 1.0', platform: :ruby
535
+ gem 'sprockets', '< 4'
536
+ end
537
+
538
+ appraise 'rails5-postgres-redis' do
539
+ gem 'rails', '~> 5.2.1'
540
+ gem 'pg', '< 1.0', platform: :ruby
541
+ gem 'redis-rails'
542
+ gem 'redis'
543
+ gem 'sprockets', '< 4'
544
+ end
545
+
546
+ appraise 'rails5-postgres-redis-activesupport' do
547
+ gem 'rails', '~> 5.2.1'
548
+ gem 'pg', '< 1.0', platform: :ruby
549
+ gem 'redis-rails'
550
+ gem 'redis'
551
+ gem 'sprockets', '< 4'
552
+ end
553
+
554
+ appraise 'rails5-postgres-sidekiq' do
555
+ gem 'rails', '~> 5.2.1'
556
+ gem 'pg', '< 1.0', platform: :ruby
557
+ gem 'sidekiq'
558
+ gem 'activejob'
559
+ gem 'sprockets', '< 4'
560
+ end
561
+
562
+ appraise 'contrib' do
563
+ gem 'actionpack'
564
+ gem 'actionview'
565
+ gem 'active_model_serializers', '>= 0.10.0'
566
+ gem 'activerecord', '< 5.1.5'
567
+ gem 'aws-sdk'
568
+ gem 'concurrent-ruby'
569
+ gem 'dalli'
570
+ gem 'delayed_job'
571
+ gem 'delayed_job_active_record'
572
+ gem 'elasticsearch-transport'
573
+ gem 'ethon'
574
+ gem 'excon'
575
+ gem 'faraday'
576
+ gem 'grape'
577
+ gem 'graphql'
578
+ gem 'grpc'
579
+ gem 'hiredis'
580
+ gem 'mongo', '>= 2.8.0'
581
+ gem 'mysql2', '< 0.5', platform: :ruby
582
+ gem 'racecar', '>= 0.3.5'
583
+ gem 'rack'
584
+ gem 'rack-test'
585
+ gem 'rake', '>= 12.3'
586
+ gem 'redis', '< 4.0'
587
+ gem 'rest-client'
588
+ gem 'resque', '< 2.0'
589
+ gem 'sequel'
590
+ gem 'shoryuken'
591
+ gem 'sidekiq'
592
+ gem 'sinatra'
593
+ gem 'sqlite3', '~> 1.3.6'
594
+ gem 'sucker_punch'
595
+ gem 'typhoeus'
596
+ end
597
+ end
598
+ elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
599
+ && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6.0')
600
+ if RUBY_PLATFORM != 'java'
601
+ appraise 'rails5-mysql2' do
602
+ gem 'rails', '~> 5.2.1'
603
+ gem 'mysql2', '< 0.5', platform: :ruby
604
+ gem 'sprockets', '< 4'
605
+ end
606
+
607
+ appraise 'rails5-postgres' do
608
+ gem 'rails', '~> 5.2.1'
609
+ gem 'pg', '< 1.0', platform: :ruby
610
+ gem 'sprockets', '< 4'
611
+ end
612
+
613
+ appraise 'rails5-postgres-redis' do
614
+ gem 'rails', '~> 5.2.1'
615
+ gem 'pg', '< 1.0', platform: :ruby
616
+ gem 'redis-rails'
617
+ gem 'redis'
618
+ gem 'sprockets', '< 4'
619
+ end
620
+
621
+ appraise 'rails5-postgres-redis-activesupport' do
622
+ gem 'rails', '~> 5.2.1'
623
+ gem 'pg', '< 1.0', platform: :ruby
624
+ gem 'redis-rails'
625
+ gem 'redis'
626
+ gem 'sprockets', '< 4'
627
+ end
628
+
629
+ appraise 'rails5-postgres-sidekiq' do
630
+ gem 'rails', '~> 5.2.1'
631
+ gem 'pg', '< 1.0', platform: :ruby
632
+ gem 'sidekiq'
633
+ gem 'activejob'
634
+ gem 'sprockets', '< 4'
635
+ end
636
+
637
+ appraise 'rails6-mysql2' do
638
+ gem 'rails', '~> 6.0.0'
639
+ gem 'mysql2', '< 0.6', platform: :ruby
640
+ gem 'sprockets', '< 4'
641
+ end
642
+
643
+ appraise 'rails6-postgres' do
644
+ gem 'rails', '~> 6.0.0'
645
+ gem 'pg', '< 1.0', platform: :ruby
646
+ gem 'sprockets', '< 4'
647
+ end
648
+
649
+ appraise 'rails6-postgres-redis' do
650
+ gem 'rails', '~> 6.0.0'
651
+ gem 'pg', '< 1.0', platform: :ruby
652
+ gem 'redis-rails'
653
+ gem 'redis'
654
+ gem 'sprockets', '< 4'
655
+ end
656
+
657
+ appraise 'rails6-postgres-redis-activesupport' do
658
+ gem 'rails', '~> 6.0.0'
659
+ gem 'pg', '< 1.0', platform: :ruby
660
+ gem 'redis-rails'
661
+ gem 'redis'
662
+ gem 'sprockets', '< 4'
663
+ end
664
+
665
+ appraise 'rails6-postgres-sidekiq' do
666
+ gem 'rails', '~> 6.0.0'
667
+ gem 'pg', '< 1.0', platform: :ruby
668
+ gem 'sidekiq'
669
+ gem 'activejob'
670
+ gem 'sprockets', '< 4'
671
+ end
672
+
673
+ appraise 'contrib' do
674
+ gem 'actionpack'
675
+ gem 'actionview'
676
+ gem 'active_model_serializers', '>= 0.10.0'
677
+ gem 'activerecord'
678
+ gem 'aws-sdk'
679
+ gem 'concurrent-ruby'
680
+ gem 'dalli'
681
+ gem 'delayed_job'
682
+ gem 'delayed_job_active_record'
683
+ gem 'elasticsearch-transport'
684
+ gem 'ethon'
685
+ gem 'excon'
686
+ gem 'faraday'
687
+ gem 'grape'
688
+ gem 'graphql'
689
+ gem 'grpc'
690
+ gem 'hiredis'
691
+ gem 'mongo', '>= 2.8.0'
692
+ gem 'mysql2', '< 0.5', platform: :ruby
693
+ gem 'racecar', '>= 0.3.5'
694
+ gem 'rack'
695
+ gem 'rack-test'
696
+ gem 'rake', '>= 12.3'
697
+ gem 'redis', '< 4.0'
698
+ gem 'rest-client'
699
+ gem 'resque', '< 2.0'
700
+ gem 'sequel'
701
+ gem 'shoryuken'
702
+ gem 'sidekiq'
703
+ gem 'sinatra'
704
+ gem 'sqlite3', '~> 1.4.1'
705
+ gem 'sucker_punch'
706
+ gem 'typhoeus'
707
+ end
708
+ end
709
+ elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION)
710
+ if RUBY_PLATFORM != 'java'
711
+ appraise 'rails5-mysql2' do
712
+ gem 'rails', '~> 5.2.1'
713
+ gem 'mysql2', '< 0.5', platform: :ruby
714
+ gem 'sprockets', '< 4'
715
+ end
716
+
717
+ appraise 'rails5-postgres' do
718
+ gem 'rails', '~> 5.2.1'
719
+ gem 'pg', '< 1.0', platform: :ruby
720
+ gem 'sprockets', '< 4'
721
+ end
722
+
723
+ appraise 'rails5-postgres-redis' do
724
+ gem 'rails', '~> 5.2.1'
725
+ gem 'pg', '< 1.0', platform: :ruby
726
+ gem 'redis-rails'
727
+ gem 'redis'
728
+ gem 'sprockets', '< 4'
729
+ end
730
+
731
+ appraise 'rails5-postgres-redis-activesupport' do
732
+ gem 'rails', '~> 5.2.1'
733
+ gem 'pg', '< 1.0', platform: :ruby
734
+ gem 'redis-rails'
735
+ gem 'redis'
736
+ gem 'sprockets', '< 4'
737
+ end
738
+
739
+ appraise 'rails5-postgres-sidekiq' do
740
+ gem 'rails', '~> 5.2.1'
741
+ gem 'pg', '< 1.0', platform: :ruby
742
+ gem 'sidekiq'
743
+ gem 'activejob'
744
+ gem 'sprockets', '< 4'
745
+ end
746
+
747
+ appraise 'rails6-mysql2' do
748
+ gem 'rails', '~> 6.0.0'
749
+ gem 'mysql2', '< 0.6', platform: :ruby
750
+ gem 'sprockets', '< 4'
751
+ end
752
+
753
+ appraise 'rails6-postgres' do
754
+ gem 'rails', '~> 6.0.0'
755
+ gem 'pg', '< 1.0', platform: :ruby
756
+ gem 'sprockets', '< 4'
757
+ end
758
+
759
+ appraise 'rails6-postgres-redis' do
760
+ gem 'rails', '~> 6.0.0'
761
+ gem 'pg', '< 1.0', platform: :ruby
762
+ gem 'redis-rails'
763
+ gem 'redis'
764
+ gem 'sprockets', '< 4'
765
+ end
766
+
767
+ appraise 'rails6-postgres-redis-activesupport' do
768
+ gem 'rails', '~> 6.0.0'
769
+ gem 'pg', '< 1.0', platform: :ruby
770
+ gem 'redis-rails'
771
+ gem 'redis'
772
+ gem 'sprockets', '< 4'
773
+ end
774
+
775
+ appraise 'rails6-postgres-sidekiq' do
776
+ gem 'rails', '~> 6.0.0'
777
+ gem 'pg', '< 1.0', platform: :ruby
778
+ gem 'sidekiq'
779
+ gem 'activejob'
780
+ gem 'sprockets', '< 4'
781
+ end
782
+
783
+ appraise 'contrib' do
784
+ gem 'actionpack'
785
+ gem 'actionview'
786
+ gem 'active_model_serializers', '>= 0.10.0'
787
+ gem 'activerecord'
788
+ gem 'aws-sdk'
789
+ gem 'concurrent-ruby'
790
+ gem 'dalli'
791
+ gem 'delayed_job'
792
+ gem 'delayed_job_active_record'
793
+ gem 'elasticsearch-transport'
794
+ gem 'ethon'
795
+ gem 'excon'
796
+ gem 'faraday'
797
+ gem 'grape'
798
+ gem 'graphql'
799
+ gem 'grpc'
800
+ gem 'hiredis'
801
+ gem 'mongo', '>= 2.8.0'
802
+ gem 'mysql2', '< 0.5', platform: :ruby
803
+ gem 'racecar', '>= 0.3.5'
804
+ gem 'rack'
805
+ gem 'rack-test'
806
+ gem 'rake', '>= 12.3'
807
+ gem 'redis', '< 4.0'
808
+ gem 'rest-client'
809
+ gem 'resque', '< 2.0'
810
+ gem 'sequel'
811
+ gem 'shoryuken'
812
+ gem 'sidekiq'
813
+ gem 'sinatra'
814
+ gem 'sqlite3', '~> 1.4.1'
815
+ gem 'sucker_punch'
816
+ gem 'typhoeus'
817
+ end
818
+ end
819
+ end
820
+