ddtrace 0.34.1 → 1.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +3321 -277
- data/LICENSE-3rdparty.csv +8 -0
- data/README.md +17 -9
- data/bin/ddprofrb +15 -0
- data/bin/ddtracerb +17 -0
- data/ext/datadog_profiling_loader/datadog_profiling_loader.c +134 -0
- data/ext/datadog_profiling_loader/extconf.rb +72 -0
- data/ext/datadog_profiling_native_extension/NativeExtensionDesign.md +156 -0
- data/ext/datadog_profiling_native_extension/clock_id.h +22 -0
- data/ext/datadog_profiling_native_extension/clock_id_from_pthread.c +56 -0
- data/ext/datadog_profiling_native_extension/clock_id_noop.c +22 -0
- data/ext/datadog_profiling_native_extension/collectors_cpu_and_wall_time_worker.c +1161 -0
- data/ext/datadog_profiling_native_extension/collectors_discrete_dynamic_sampler.c +422 -0
- data/ext/datadog_profiling_native_extension/collectors_discrete_dynamic_sampler.h +101 -0
- data/ext/datadog_profiling_native_extension/collectors_dynamic_sampling_rate.c +150 -0
- data/ext/datadog_profiling_native_extension/collectors_dynamic_sampling_rate.h +18 -0
- data/ext/datadog_profiling_native_extension/collectors_gc_profiling_helper.c +156 -0
- data/ext/datadog_profiling_native_extension/collectors_gc_profiling_helper.h +5 -0
- data/ext/datadog_profiling_native_extension/collectors_idle_sampling_helper.c +244 -0
- data/ext/datadog_profiling_native_extension/collectors_idle_sampling_helper.h +3 -0
- data/ext/datadog_profiling_native_extension/collectors_stack.c +372 -0
- data/ext/datadog_profiling_native_extension/collectors_stack.h +27 -0
- data/ext/datadog_profiling_native_extension/collectors_thread_context.c +1402 -0
- data/ext/datadog_profiling_native_extension/collectors_thread_context.h +15 -0
- data/ext/datadog_profiling_native_extension/extconf.rb +302 -0
- data/ext/datadog_profiling_native_extension/heap_recorder.c +1047 -0
- data/ext/datadog_profiling_native_extension/heap_recorder.h +166 -0
- data/ext/datadog_profiling_native_extension/helpers.h +23 -0
- data/ext/datadog_profiling_native_extension/http_transport.c +375 -0
- data/ext/datadog_profiling_native_extension/libdatadog_helpers.c +62 -0
- data/ext/datadog_profiling_native_extension/libdatadog_helpers.h +42 -0
- data/ext/datadog_profiling_native_extension/native_extension_helpers.rb +319 -0
- data/ext/datadog_profiling_native_extension/private_vm_api_access.c +892 -0
- data/ext/datadog_profiling_native_extension/private_vm_api_access.h +61 -0
- data/ext/datadog_profiling_native_extension/profiling.c +267 -0
- data/ext/datadog_profiling_native_extension/ruby_helpers.c +267 -0
- data/ext/datadog_profiling_native_extension/ruby_helpers.h +122 -0
- data/ext/datadog_profiling_native_extension/setup_signal_handler.c +115 -0
- data/ext/datadog_profiling_native_extension/setup_signal_handler.h +11 -0
- data/ext/datadog_profiling_native_extension/stack_recorder.c +1040 -0
- data/ext/datadog_profiling_native_extension/stack_recorder.h +27 -0
- data/ext/datadog_profiling_native_extension/time_helpers.c +53 -0
- data/ext/datadog_profiling_native_extension/time_helpers.h +26 -0
- data/lib/datadog/appsec/assets/blocked.html +99 -0
- data/lib/datadog/appsec/assets/blocked.json +1 -0
- data/lib/datadog/appsec/assets/blocked.text +5 -0
- data/lib/datadog/appsec/assets/waf_rules/README.md +7 -0
- data/lib/datadog/appsec/assets/waf_rules/processors.json +92 -0
- data/lib/datadog/appsec/assets/waf_rules/recommended.json +7703 -0
- data/lib/datadog/appsec/assets/waf_rules/scanners.json +114 -0
- data/lib/datadog/appsec/assets/waf_rules/strict.json +1635 -0
- data/lib/datadog/appsec/assets.rb +44 -0
- data/lib/datadog/appsec/autoload.rb +11 -0
- data/lib/datadog/appsec/component.rb +94 -0
- data/lib/datadog/appsec/configuration/settings.rb +202 -0
- data/lib/datadog/appsec/configuration.rb +11 -0
- data/lib/datadog/appsec/contrib/auto_instrument.rb +25 -0
- data/lib/datadog/appsec/contrib/devise/event.rb +57 -0
- data/lib/datadog/appsec/contrib/devise/ext.rb +13 -0
- data/lib/datadog/appsec/contrib/devise/integration.rb +42 -0
- data/lib/datadog/appsec/contrib/devise/patcher/authenticatable_patch.rb +76 -0
- data/lib/datadog/appsec/contrib/devise/patcher/registration_controller_patch.rb +54 -0
- data/lib/datadog/appsec/contrib/devise/patcher.rb +45 -0
- data/lib/datadog/appsec/contrib/devise/resource.rb +35 -0
- data/lib/datadog/appsec/contrib/devise/tracking.rb +57 -0
- data/lib/datadog/appsec/contrib/integration.rb +37 -0
- data/lib/datadog/appsec/contrib/patcher.rb +12 -0
- data/lib/datadog/appsec/contrib/rack/ext.rb +13 -0
- data/lib/datadog/appsec/contrib/rack/gateway/request.rb +104 -0
- data/lib/datadog/appsec/contrib/rack/gateway/response.rb +30 -0
- data/lib/datadog/appsec/contrib/rack/gateway/watcher.rb +160 -0
- data/lib/datadog/appsec/contrib/rack/integration.rb +42 -0
- data/lib/datadog/appsec/contrib/rack/patcher.rb +34 -0
- data/lib/datadog/appsec/contrib/rack/reactive/request.rb +81 -0
- data/lib/datadog/appsec/contrib/rack/reactive/request_body.rb +60 -0
- data/lib/datadog/appsec/contrib/rack/reactive/response.rb +66 -0
- data/lib/datadog/appsec/contrib/rack/request_body_middleware.rb +44 -0
- data/lib/datadog/appsec/contrib/rack/request_middleware.rb +224 -0
- data/lib/datadog/appsec/contrib/rails/ext.rb +13 -0
- data/lib/datadog/appsec/contrib/rails/framework.rb +16 -0
- data/lib/datadog/appsec/contrib/rails/gateway/request.rb +67 -0
- data/lib/datadog/appsec/contrib/rails/gateway/watcher.rb +69 -0
- data/lib/datadog/appsec/contrib/rails/integration.rb +41 -0
- data/lib/datadog/appsec/contrib/rails/patcher.rb +165 -0
- data/lib/datadog/appsec/contrib/rails/reactive/action.rb +66 -0
- data/lib/datadog/appsec/contrib/rails/request.rb +36 -0
- data/lib/datadog/appsec/contrib/rails/request_middleware.rb +20 -0
- data/lib/datadog/appsec/contrib/sinatra/ext.rb +14 -0
- data/lib/datadog/appsec/contrib/sinatra/framework.rb +20 -0
- data/lib/datadog/appsec/contrib/sinatra/gateway/request.rb +17 -0
- data/lib/datadog/appsec/contrib/sinatra/gateway/route_params.rb +23 -0
- data/lib/datadog/appsec/contrib/sinatra/gateway/watcher.rb +115 -0
- data/lib/datadog/appsec/contrib/sinatra/integration.rb +41 -0
- data/lib/datadog/appsec/contrib/sinatra/patcher.rb +166 -0
- data/lib/datadog/appsec/contrib/sinatra/reactive/routed.rb +61 -0
- data/lib/datadog/appsec/contrib/sinatra/request_middleware.rb +20 -0
- data/lib/datadog/appsec/event.rb +169 -0
- data/lib/datadog/appsec/ext.rb +10 -0
- data/lib/datadog/appsec/extensions.rb +15 -0
- data/lib/datadog/appsec/instrumentation/gateway/argument.rb +22 -0
- data/lib/datadog/appsec/instrumentation/gateway.rb +64 -0
- data/lib/datadog/appsec/instrumentation.rb +9 -0
- data/lib/datadog/appsec/monitor/gateway/watcher.rb +67 -0
- data/lib/datadog/appsec/monitor/reactive/set_user.rb +58 -0
- data/lib/datadog/appsec/monitor.rb +11 -0
- data/lib/datadog/appsec/processor/actions.rb +49 -0
- data/lib/datadog/appsec/processor/rule_loader.rb +123 -0
- data/lib/datadog/appsec/processor/rule_merger.rb +152 -0
- data/lib/datadog/appsec/processor.rb +171 -0
- data/lib/datadog/appsec/rate_limiter.rb +58 -0
- data/lib/datadog/appsec/reactive/address_hash.rb +22 -0
- data/lib/datadog/appsec/reactive/engine.rb +47 -0
- data/lib/datadog/appsec/reactive/operation.rb +68 -0
- data/lib/datadog/appsec/reactive/subscriber.rb +19 -0
- data/lib/datadog/appsec/remote.rb +129 -0
- data/lib/datadog/appsec/response.rb +151 -0
- data/lib/datadog/appsec/sample_rate.rb +21 -0
- data/lib/datadog/appsec/scope.rb +61 -0
- data/lib/datadog/appsec/utils/http/media_range.rb +199 -0
- data/lib/datadog/appsec/utils/http/media_type.rb +85 -0
- data/lib/datadog/appsec/utils/http.rb +11 -0
- data/lib/datadog/appsec/utils.rb +9 -0
- data/lib/datadog/appsec.rb +60 -0
- data/lib/datadog/auto_instrument.rb +3 -0
- data/lib/datadog/core/backport.rb +51 -0
- data/lib/datadog/core/buffer/cruby.rb +55 -0
- data/lib/datadog/core/buffer/random.rb +134 -0
- data/lib/datadog/core/buffer/thread_safe.rb +58 -0
- data/lib/datadog/core/chunker.rb +35 -0
- data/lib/datadog/core/configuration/agent_settings_resolver.rb +405 -0
- data/lib/datadog/core/configuration/base.rb +89 -0
- data/lib/datadog/core/configuration/components.rb +174 -0
- data/lib/datadog/core/configuration/ext.rb +47 -0
- data/lib/datadog/core/configuration/option.rb +319 -0
- data/lib/datadog/core/configuration/option_definition.rb +176 -0
- data/lib/datadog/core/configuration/options.rb +128 -0
- data/lib/datadog/core/configuration/settings.rb +848 -0
- data/lib/datadog/core/configuration.rb +309 -0
- data/lib/datadog/core/diagnostics/environment_logger.rb +183 -0
- data/lib/datadog/core/diagnostics/health.rb +19 -0
- data/lib/datadog/core/encoding.rb +72 -0
- data/lib/datadog/core/environment/cgroup.rb +51 -0
- data/lib/datadog/core/environment/class_count.rb +21 -0
- data/lib/datadog/core/environment/container.rb +89 -0
- data/lib/datadog/core/environment/execution.rb +103 -0
- data/lib/datadog/core/environment/ext.rb +46 -0
- data/lib/datadog/core/environment/gc.rb +20 -0
- data/lib/datadog/core/environment/git.rb +25 -0
- data/lib/datadog/core/environment/identity.rb +84 -0
- data/lib/datadog/core/environment/platform.rb +44 -0
- data/lib/datadog/core/environment/socket.rb +24 -0
- data/lib/datadog/core/environment/thread_count.rb +20 -0
- data/lib/datadog/core/environment/variable_helpers.rb +53 -0
- data/lib/datadog/core/environment/vm_cache.rb +64 -0
- data/lib/datadog/core/environment/yjit.rb +58 -0
- data/lib/datadog/core/error.rb +100 -0
- data/lib/datadog/core/extensions.rb +16 -0
- data/lib/datadog/core/git/ext.rb +16 -0
- data/lib/datadog/core/header_collection.rb +43 -0
- data/lib/datadog/core/logger.rb +44 -0
- data/lib/datadog/core/logging/ext.rb +13 -0
- data/lib/datadog/core/metrics/client.rb +197 -0
- data/lib/datadog/core/metrics/ext.rb +18 -0
- data/lib/datadog/core/metrics/helpers.rb +25 -0
- data/lib/datadog/core/metrics/logging.rb +42 -0
- data/lib/datadog/core/metrics/metric.rb +14 -0
- data/lib/datadog/core/metrics/options.rb +48 -0
- data/lib/datadog/core/pin.rb +73 -0
- data/lib/datadog/core/remote/client/capabilities.rb +62 -0
- data/lib/datadog/core/remote/client.rb +232 -0
- data/lib/datadog/core/remote/component.rb +162 -0
- data/lib/datadog/core/remote/configuration/content.rb +111 -0
- data/lib/datadog/core/remote/configuration/digest.rb +62 -0
- data/lib/datadog/core/remote/configuration/path.rb +90 -0
- data/lib/datadog/core/remote/configuration/repository.rb +294 -0
- data/lib/datadog/core/remote/configuration/target.rb +74 -0
- data/lib/datadog/core/remote/configuration.rb +18 -0
- data/lib/datadog/core/remote/dispatcher.rb +59 -0
- data/lib/datadog/core/remote/ext.rb +13 -0
- data/lib/datadog/core/remote/negotiation.rb +70 -0
- data/lib/datadog/core/remote/tie/tracing.rb +39 -0
- data/lib/datadog/core/remote/tie.rb +27 -0
- data/lib/datadog/core/remote/transport/config.rb +60 -0
- data/lib/datadog/core/remote/transport/http/api/instance.rb +39 -0
- data/lib/datadog/core/remote/transport/http/api/spec.rb +21 -0
- data/lib/datadog/core/remote/transport/http/api.rb +58 -0
- data/lib/datadog/core/remote/transport/http/builder.rb +219 -0
- data/lib/datadog/core/remote/transport/http/client.rb +48 -0
- data/lib/datadog/core/remote/transport/http/config.rb +280 -0
- data/lib/datadog/core/remote/transport/http/negotiation.rb +146 -0
- data/lib/datadog/core/remote/transport/http.rb +179 -0
- data/lib/datadog/core/remote/transport/negotiation.rb +62 -0
- data/lib/datadog/core/remote/worker.rb +102 -0
- data/lib/datadog/core/remote.rb +24 -0
- data/lib/datadog/core/runtime/ext.rb +38 -0
- data/lib/datadog/core/runtime/metrics.rb +183 -0
- data/lib/datadog/core/telemetry/client.rb +95 -0
- data/lib/datadog/core/telemetry/emitter.rb +44 -0
- data/lib/datadog/core/telemetry/event.rb +273 -0
- data/lib/datadog/core/telemetry/ext.rb +16 -0
- data/lib/datadog/core/telemetry/heartbeat.rb +33 -0
- data/lib/datadog/core/telemetry/http/adapters/net.rb +111 -0
- data/lib/datadog/core/telemetry/http/env.rb +20 -0
- data/lib/datadog/core/telemetry/http/ext.rb +25 -0
- data/lib/datadog/core/telemetry/http/response.rb +68 -0
- data/lib/datadog/core/telemetry/http/transport.rb +61 -0
- data/lib/datadog/core/telemetry/request.rb +59 -0
- data/lib/datadog/core/transport/ext.rb +49 -0
- data/lib/datadog/core/transport/http/adapters/net.rb +168 -0
- data/lib/datadog/core/transport/http/adapters/registry.rb +29 -0
- data/lib/datadog/core/transport/http/adapters/test.rb +89 -0
- data/lib/datadog/core/transport/http/adapters/unix_socket.rb +83 -0
- data/lib/datadog/core/transport/http/api/endpoint.rb +31 -0
- data/lib/datadog/core/transport/http/api/fallbacks.rb +26 -0
- data/lib/datadog/core/transport/http/api/map.rb +18 -0
- data/lib/datadog/core/transport/http/env.rb +62 -0
- data/lib/datadog/core/transport/http/response.rb +60 -0
- data/lib/datadog/core/transport/parcel.rb +22 -0
- data/lib/datadog/core/transport/request.rb +17 -0
- data/lib/datadog/core/transport/response.rb +64 -0
- data/lib/datadog/core/utils/compression.rb +36 -0
- data/lib/datadog/core/utils/duration.rb +52 -0
- data/lib/datadog/core/utils/forking.rb +61 -0
- data/lib/datadog/core/utils/hash.rb +79 -0
- data/lib/datadog/core/utils/network.rb +140 -0
- data/lib/datadog/core/utils/only_once.rb +42 -0
- data/lib/datadog/core/utils/safe_dup.rb +50 -0
- data/lib/datadog/core/utils/sequence.rb +26 -0
- data/lib/datadog/core/utils/time.rb +52 -0
- data/lib/datadog/core/utils/url.rb +25 -0
- data/lib/datadog/core/utils.rb +92 -0
- data/lib/datadog/core/vendor/ipaddr.rb +78 -0
- data/lib/datadog/core/vendor/multipart-post/LICENSE +11 -0
- data/lib/datadog/core/vendor/multipart-post/multipart/post/composite_read_io.rb +118 -0
- data/lib/datadog/core/vendor/multipart-post/multipart/post/multipartable.rb +59 -0
- data/lib/datadog/core/vendor/multipart-post/multipart/post/parts.rb +137 -0
- data/lib/datadog/core/vendor/multipart-post/multipart/post/version.rb +11 -0
- data/lib/datadog/core/vendor/multipart-post/multipart/post.rb +10 -0
- data/lib/datadog/core/vendor/multipart-post/multipart.rb +14 -0
- data/lib/datadog/core/vendor/multipart-post/net/http/post/multipart.rb +34 -0
- data/lib/datadog/core/worker.rb +24 -0
- data/lib/datadog/core/workers/async.rb +183 -0
- data/lib/datadog/core/workers/interval_loop.rb +123 -0
- data/lib/datadog/core/workers/polling.rb +57 -0
- data/lib/datadog/core/workers/queue.rb +44 -0
- data/lib/datadog/core/workers/runtime_metrics.rb +62 -0
- data/lib/datadog/core.rb +45 -0
- data/lib/datadog/kit/appsec/events.rb +169 -0
- data/lib/datadog/kit/enable_core_dumps.rb +49 -0
- data/lib/datadog/kit/identity.rb +104 -0
- data/lib/datadog/kit.rb +11 -0
- data/lib/datadog/opentelemetry/api/context.rb +193 -0
- data/lib/datadog/opentelemetry/api/trace/span.rb +14 -0
- data/lib/datadog/opentelemetry/sdk/configurator.rb +37 -0
- data/lib/datadog/opentelemetry/sdk/id_generator.rb +26 -0
- data/lib/datadog/opentelemetry/sdk/propagator.rb +92 -0
- data/lib/datadog/opentelemetry/sdk/span_processor.rb +134 -0
- data/lib/datadog/opentelemetry/sdk/trace/span.rb +167 -0
- data/lib/datadog/opentelemetry/trace.rb +58 -0
- data/lib/datadog/opentelemetry.rb +51 -0
- data/lib/datadog/opentracer/binary_propagator.rb +26 -0
- data/lib/datadog/opentracer/carrier.rb +9 -0
- data/lib/datadog/opentracer/distributed_headers.rb +54 -0
- data/lib/datadog/opentracer/global_tracer.rb +17 -0
- data/lib/datadog/opentracer/propagator.rb +26 -0
- data/lib/datadog/opentracer/rack_propagator.rb +71 -0
- data/lib/datadog/opentracer/scope.rb +18 -0
- data/lib/datadog/opentracer/scope_manager.rb +9 -0
- data/lib/datadog/opentracer/span.rb +99 -0
- data/lib/datadog/opentracer/span_context.rb +19 -0
- data/lib/datadog/opentracer/span_context_factory.rb +27 -0
- data/lib/datadog/opentracer/text_map_propagator.rb +87 -0
- data/lib/datadog/opentracer/thread_local_scope.rb +34 -0
- data/lib/datadog/opentracer/thread_local_scope_manager.rb +64 -0
- data/lib/datadog/opentracer/tracer.rb +212 -0
- data/lib/datadog/opentracer.rb +33 -0
- data/lib/datadog/profiling/collectors/code_provenance.rb +119 -0
- data/lib/datadog/profiling/collectors/cpu_and_wall_time_worker.rb +137 -0
- data/lib/datadog/profiling/collectors/dynamic_sampling_rate.rb +14 -0
- data/lib/datadog/profiling/collectors/idle_sampling_helper.rb +68 -0
- data/lib/datadog/profiling/collectors/info.rb +101 -0
- data/lib/datadog/profiling/collectors/stack.rb +13 -0
- data/lib/datadog/profiling/collectors/thread_context.rb +61 -0
- data/lib/datadog/profiling/component.rb +426 -0
- data/lib/datadog/profiling/exporter.rb +104 -0
- data/lib/datadog/profiling/ext/forking.rb +96 -0
- data/lib/datadog/profiling/ext.rb +35 -0
- data/lib/datadog/profiling/flush.rb +43 -0
- data/lib/datadog/profiling/http_transport.rb +147 -0
- data/lib/datadog/profiling/load_native_extension.rb +39 -0
- data/lib/datadog/profiling/native_extension.rb +20 -0
- data/lib/datadog/profiling/preload.rb +5 -0
- data/lib/datadog/profiling/profiler.rb +62 -0
- data/lib/datadog/profiling/scheduler.rb +135 -0
- data/lib/datadog/profiling/stack_recorder.rb +71 -0
- data/lib/datadog/profiling/tag_builder.rb +58 -0
- data/lib/datadog/profiling/tasks/exec.rb +48 -0
- data/lib/datadog/profiling/tasks/help.rb +16 -0
- data/lib/datadog/profiling/tasks/setup.rb +58 -0
- data/lib/datadog/profiling.rb +161 -0
- data/lib/datadog/tracing/analytics.rb +25 -0
- data/lib/datadog/tracing/buffer.rb +127 -0
- data/lib/datadog/tracing/client_ip.rb +61 -0
- data/lib/datadog/tracing/component.rb +235 -0
- data/lib/datadog/tracing/configuration/agent_settings_resolver.rb +13 -0
- data/lib/datadog/tracing/configuration/dynamic/option.rb +71 -0
- data/lib/datadog/tracing/configuration/dynamic.rb +64 -0
- data/lib/datadog/tracing/configuration/ext.rb +108 -0
- data/lib/datadog/tracing/configuration/http.rb +74 -0
- data/lib/datadog/tracing/configuration/settings.rb +502 -0
- data/lib/datadog/tracing/context.rb +68 -0
- data/lib/datadog/tracing/context_provider.rb +80 -0
- data/lib/datadog/tracing/contrib/action_cable/configuration/settings.rb +39 -0
- data/lib/datadog/tracing/contrib/action_cable/event.rb +71 -0
- data/lib/datadog/tracing/contrib/action_cable/events/broadcast.rb +56 -0
- data/lib/datadog/tracing/contrib/action_cable/events/perform_action.rb +61 -0
- data/lib/datadog/tracing/contrib/action_cable/events/transmit.rb +57 -0
- data/lib/datadog/tracing/contrib/action_cable/events.rb +37 -0
- data/lib/datadog/tracing/contrib/action_cable/ext.rb +33 -0
- data/lib/datadog/tracing/contrib/action_cable/instrumentation.rb +88 -0
- data/lib/datadog/tracing/contrib/action_cable/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/action_cable/patcher.rb +31 -0
- data/lib/datadog/tracing/contrib/action_mailer/configuration/settings.rb +40 -0
- data/lib/datadog/tracing/contrib/action_mailer/event.rb +52 -0
- data/lib/datadog/tracing/contrib/action_mailer/events/deliver.rb +58 -0
- data/lib/datadog/tracing/contrib/action_mailer/events/process.rb +45 -0
- data/lib/datadog/tracing/contrib/action_mailer/events.rb +34 -0
- data/lib/datadog/tracing/contrib/action_mailer/ext.rb +34 -0
- data/lib/datadog/tracing/contrib/action_mailer/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/action_mailer/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/action_pack/action_controller/instrumentation.rb +136 -0
- data/lib/datadog/tracing/contrib/action_pack/action_controller/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/action_pack/configuration/settings.rb +50 -0
- data/lib/datadog/tracing/contrib/action_pack/ext.rb +23 -0
- data/lib/datadog/tracing/contrib/action_pack/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/action_pack/patcher.rb +27 -0
- data/lib/datadog/tracing/contrib/action_pack/utils.rb +38 -0
- data/lib/datadog/tracing/contrib/action_view/configuration/settings.rb +38 -0
- data/lib/datadog/tracing/contrib/action_view/event.rb +35 -0
- data/lib/datadog/tracing/contrib/action_view/events/render_partial.rb +52 -0
- data/lib/datadog/tracing/contrib/action_view/events/render_template.rb +55 -0
- data/lib/datadog/tracing/contrib/action_view/events.rb +34 -0
- data/lib/datadog/tracing/contrib/action_view/ext.rb +25 -0
- data/lib/datadog/tracing/contrib/action_view/instrumentation/partial_renderer.rb +76 -0
- data/lib/datadog/tracing/contrib/action_view/instrumentation/template_renderer.rb +89 -0
- data/lib/datadog/tracing/contrib/action_view/integration.rb +55 -0
- data/lib/datadog/tracing/contrib/action_view/patcher.rb +45 -0
- data/lib/datadog/tracing/contrib/action_view/utils.rb +34 -0
- data/lib/datadog/tracing/contrib/active_job/configuration/settings.rb +44 -0
- data/lib/datadog/tracing/contrib/active_job/event.rb +58 -0
- data/lib/datadog/tracing/contrib/active_job/events/discard.rb +48 -0
- data/lib/datadog/tracing/contrib/active_job/events/enqueue.rb +47 -0
- data/lib/datadog/tracing/contrib/active_job/events/enqueue_at.rb +47 -0
- data/lib/datadog/tracing/contrib/active_job/events/enqueue_retry.rb +49 -0
- data/lib/datadog/tracing/contrib/active_job/events/perform.rb +47 -0
- data/lib/datadog/tracing/contrib/active_job/events/retry_stopped.rb +48 -0
- data/lib/datadog/tracing/contrib/active_job/events.rb +42 -0
- data/lib/datadog/tracing/contrib/active_job/ext.rb +40 -0
- data/lib/datadog/tracing/contrib/active_job/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/active_job/log_injection.rb +24 -0
- data/lib/datadog/tracing/contrib/active_job/patcher.rb +36 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/configuration/settings.rb +37 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/event.rb +68 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/events/render.rb +43 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/events/serialize.rb +45 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/events.rb +34 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/ext.rb +25 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/integration.rb +43 -0
- data/lib/datadog/tracing/contrib/active_model_serializers/patcher.rb +32 -0
- data/lib/datadog/tracing/contrib/active_record/configuration/makara_resolver.rb +34 -0
- data/lib/datadog/tracing/contrib/active_record/configuration/resolver.rb +150 -0
- data/lib/datadog/tracing/contrib/active_record/configuration/settings.rb +47 -0
- data/lib/datadog/tracing/contrib/active_record/event.rb +30 -0
- data/lib/datadog/tracing/contrib/active_record/events/instantiation.rb +56 -0
- data/lib/datadog/tracing/contrib/active_record/events/sql.rb +75 -0
- data/lib/datadog/tracing/contrib/active_record/events.rb +34 -0
- data/lib/datadog/tracing/contrib/active_record/ext.rb +30 -0
- data/lib/datadog/tracing/contrib/active_record/integration.rb +54 -0
- data/lib/datadog/tracing/contrib/active_record/patcher.rb +27 -0
- data/lib/datadog/tracing/contrib/active_record/utils.rb +126 -0
- data/lib/datadog/tracing/contrib/active_record/vendor/MIT-LICENSE +20 -0
- data/lib/datadog/tracing/contrib/active_record/vendor/connection_specification.rb +305 -0
- data/lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb +186 -0
- data/lib/datadog/tracing/contrib/active_support/cache/patcher.rb +76 -0
- data/lib/datadog/tracing/contrib/active_support/cache/redis.rb +47 -0
- data/lib/datadog/tracing/contrib/active_support/configuration/settings.rb +46 -0
- data/lib/datadog/tracing/contrib/active_support/ext.rb +32 -0
- data/lib/datadog/tracing/contrib/active_support/integration.rb +49 -0
- data/lib/datadog/tracing/contrib/active_support/notifications/event.rb +71 -0
- data/lib/datadog/tracing/contrib/active_support/notifications/subscriber.rb +71 -0
- data/lib/datadog/tracing/contrib/active_support/notifications/subscription.rb +162 -0
- data/lib/datadog/tracing/contrib/active_support/patcher.rb +27 -0
- data/lib/datadog/tracing/contrib/analytics.rb +28 -0
- data/lib/datadog/tracing/contrib/auto_instrument.rb +53 -0
- data/lib/datadog/tracing/contrib/aws/configuration/settings.rb +52 -0
- data/lib/datadog/tracing/contrib/aws/ext.rb +50 -0
- data/lib/datadog/tracing/contrib/aws/instrumentation.rb +119 -0
- data/lib/datadog/tracing/contrib/aws/integration.rb +45 -0
- data/lib/datadog/tracing/contrib/aws/parsed_context.rb +62 -0
- data/lib/datadog/tracing/contrib/aws/patcher.rb +57 -0
- data/lib/datadog/tracing/contrib/aws/service/base.rb +16 -0
- data/lib/datadog/tracing/contrib/aws/service/dynamodb.rb +22 -0
- data/lib/datadog/tracing/contrib/aws/service/eventbridge.rb +22 -0
- data/lib/datadog/tracing/contrib/aws/service/kinesis.rb +32 -0
- data/lib/datadog/tracing/contrib/aws/service/s3.rb +22 -0
- data/lib/datadog/tracing/contrib/aws/service/sns.rb +30 -0
- data/lib/datadog/tracing/contrib/aws/service/sqs.rb +27 -0
- data/lib/datadog/tracing/contrib/aws/service/states.rb +40 -0
- data/lib/datadog/tracing/contrib/aws/services.rb +137 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/async_patch.rb +20 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/configuration/settings.rb +24 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/context_composite_executor_service.rb +53 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/ext.rb +16 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/future_patch.rb +20 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb +49 -0
- data/lib/datadog/tracing/contrib/concurrent_ruby/promises_future_patch.rb +22 -0
- data/lib/datadog/tracing/contrib/configurable.rb +102 -0
- data/lib/datadog/tracing/contrib/configuration/resolver.rb +85 -0
- data/lib/datadog/tracing/contrib/configuration/resolvers/pattern_resolver.rb +43 -0
- data/lib/datadog/tracing/contrib/configuration/settings.rb +39 -0
- data/lib/datadog/tracing/contrib/dalli/configuration/settings.rb +57 -0
- data/lib/datadog/tracing/contrib/dalli/ext.rb +40 -0
- data/lib/datadog/tracing/contrib/dalli/instrumentation.rb +73 -0
- data/lib/datadog/tracing/contrib/dalli/integration.rb +50 -0
- data/lib/datadog/tracing/contrib/dalli/patcher.rb +28 -0
- data/lib/datadog/tracing/contrib/dalli/quantize.rb +24 -0
- data/lib/datadog/tracing/contrib/delayed_job/configuration/settings.rb +45 -0
- data/lib/datadog/tracing/contrib/delayed_job/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/delayed_job/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/delayed_job/patcher.rb +37 -0
- data/lib/datadog/tracing/contrib/delayed_job/plugin.rb +108 -0
- data/lib/datadog/tracing/contrib/delayed_job/server_internal_tracer/worker.rb +34 -0
- data/lib/datadog/tracing/contrib/elasticsearch/configuration/settings.rb +53 -0
- data/lib/datadog/tracing/contrib/elasticsearch/ext.rb +34 -0
- data/lib/datadog/tracing/contrib/elasticsearch/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/elasticsearch/patcher.rb +160 -0
- data/lib/datadog/tracing/contrib/elasticsearch/quantize.rb +85 -0
- data/lib/datadog/tracing/contrib/ethon/configuration/settings.rb +55 -0
- data/lib/datadog/tracing/contrib/ethon/easy_patch.rb +221 -0
- data/lib/datadog/tracing/contrib/ethon/ext.rb +32 -0
- data/lib/datadog/tracing/contrib/ethon/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/ethon/multi_patch.rb +102 -0
- data/lib/datadog/tracing/contrib/ethon/patcher.rb +30 -0
- data/lib/datadog/tracing/contrib/excon/configuration/settings.rb +57 -0
- data/lib/datadog/tracing/contrib/excon/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/excon/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/excon/middleware.rb +192 -0
- data/lib/datadog/tracing/contrib/excon/patcher.rb +31 -0
- data/lib/datadog/tracing/contrib/ext.rb +55 -0
- data/lib/datadog/tracing/contrib/extensions.rb +233 -0
- data/lib/datadog/tracing/contrib/faraday/configuration/settings.rb +68 -0
- data/lib/datadog/tracing/contrib/faraday/connection.rb +22 -0
- data/lib/datadog/tracing/contrib/faraday/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/faraday/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/faraday/middleware.rb +110 -0
- data/lib/datadog/tracing/contrib/faraday/patcher.rb +54 -0
- data/lib/datadog/tracing/contrib/faraday/rack_builder.rb +22 -0
- data/lib/datadog/tracing/contrib/grape/configuration/settings.rb +45 -0
- data/lib/datadog/tracing/contrib/grape/endpoint.rb +248 -0
- data/lib/datadog/tracing/contrib/grape/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/grape/instrumentation.rb +35 -0
- data/lib/datadog/tracing/contrib/grape/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/grape/patcher.rb +33 -0
- data/lib/datadog/tracing/contrib/graphql/configuration/settings.rb +39 -0
- data/lib/datadog/tracing/contrib/graphql/ext.rb +20 -0
- data/lib/datadog/tracing/contrib/graphql/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/graphql/patcher.rb +88 -0
- data/lib/datadog/tracing/contrib/grpc/configuration/settings.rb +79 -0
- data/lib/datadog/tracing/contrib/grpc/datadog_interceptor/client.rb +119 -0
- data/lib/datadog/tracing/contrib/grpc/datadog_interceptor/server.rb +107 -0
- data/lib/datadog/tracing/contrib/grpc/datadog_interceptor.rb +101 -0
- data/lib/datadog/tracing/contrib/grpc/distributed/fetcher.rb +26 -0
- data/lib/datadog/tracing/contrib/grpc/distributed/propagation.rb +42 -0
- data/lib/datadog/tracing/contrib/grpc/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/grpc/formatting.rb +127 -0
- data/lib/datadog/tracing/contrib/grpc/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/grpc/intercept_with_datadog.rb +53 -0
- data/lib/datadog/tracing/contrib/grpc/patcher.rb +34 -0
- data/lib/datadog/tracing/contrib/hanami/action_tracer.rb +47 -0
- data/lib/datadog/tracing/contrib/hanami/configuration/settings.rb +23 -0
- data/lib/datadog/tracing/contrib/hanami/ext.rb +24 -0
- data/lib/datadog/tracing/contrib/hanami/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/hanami/patcher.rb +33 -0
- data/lib/datadog/tracing/contrib/hanami/plugin.rb +23 -0
- data/lib/datadog/tracing/contrib/hanami/renderer_policy_tracing.rb +41 -0
- data/lib/datadog/tracing/contrib/hanami/router_tracing.rb +44 -0
- data/lib/datadog/tracing/contrib/http/circuit_breaker.rb +40 -0
- data/lib/datadog/tracing/contrib/http/configuration/settings.rb +75 -0
- data/lib/datadog/tracing/contrib/http/distributed/fetcher.rb +38 -0
- data/lib/datadog/tracing/contrib/http/distributed/propagation.rb +37 -0
- data/lib/datadog/tracing/contrib/http/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/http/instrumentation.rb +158 -0
- data/lib/datadog/tracing/contrib/http/integration.rb +49 -0
- data/lib/datadog/tracing/contrib/http/patcher.rb +30 -0
- data/lib/datadog/tracing/contrib/http_annotation_helper.rb +17 -0
- data/lib/datadog/tracing/contrib/httpclient/configuration/settings.rb +75 -0
- data/lib/datadog/tracing/contrib/httpclient/ext.rb +30 -0
- data/lib/datadog/tracing/contrib/httpclient/instrumentation.rb +135 -0
- data/lib/datadog/tracing/contrib/httpclient/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/httpclient/patcher.rb +40 -0
- data/lib/datadog/tracing/contrib/httprb/configuration/settings.rb +75 -0
- data/lib/datadog/tracing/contrib/httprb/ext.rb +29 -0
- data/lib/datadog/tracing/contrib/httprb/instrumentation.rb +145 -0
- data/lib/datadog/tracing/contrib/httprb/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/httprb/patcher.rb +40 -0
- data/lib/datadog/tracing/contrib/integration.rb +78 -0
- data/lib/datadog/tracing/contrib/kafka/configuration/settings.rb +39 -0
- data/lib/datadog/tracing/contrib/kafka/consumer_event.rb +19 -0
- data/lib/datadog/tracing/contrib/kafka/consumer_group_event.rb +18 -0
- data/lib/datadog/tracing/contrib/kafka/event.rb +53 -0
- data/lib/datadog/tracing/contrib/kafka/events/connection/request.rb +40 -0
- data/lib/datadog/tracing/contrib/kafka/events/consumer/process_batch.rb +47 -0
- data/lib/datadog/tracing/contrib/kafka/events/consumer/process_message.rb +45 -0
- data/lib/datadog/tracing/contrib/kafka/events/consumer_group/heartbeat.rb +45 -0
- data/lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb +35 -0
- data/lib/datadog/tracing/contrib/kafka/events/consumer_group/leave_group.rb +35 -0
- data/lib/datadog/tracing/contrib/kafka/events/consumer_group/sync_group.rb +35 -0
- data/lib/datadog/tracing/contrib/kafka/events/produce_operation/send_messages.rb +39 -0
- data/lib/datadog/tracing/contrib/kafka/events/producer/deliver_messages.rb +42 -0
- data/lib/datadog/tracing/contrib/kafka/events.rb +48 -0
- data/lib/datadog/tracing/contrib/kafka/ext.rb +55 -0
- data/lib/datadog/tracing/contrib/kafka/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/kafka/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/lograge/configuration/settings.rb +24 -0
- data/lib/datadog/tracing/contrib/lograge/ext.rb +15 -0
- data/lib/datadog/tracing/contrib/lograge/instrumentation.rb +31 -0
- data/lib/datadog/tracing/contrib/lograge/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/lograge/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/mongodb/configuration/settings.rb +55 -0
- data/lib/datadog/tracing/contrib/mongodb/ext.rb +38 -0
- data/lib/datadog/tracing/contrib/mongodb/instrumentation.rb +47 -0
- data/lib/datadog/tracing/contrib/mongodb/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/mongodb/parsers.rb +47 -0
- data/lib/datadog/tracing/contrib/mongodb/patcher.rb +34 -0
- data/lib/datadog/tracing/contrib/mongodb/subscribers.rb +139 -0
- data/lib/datadog/tracing/contrib/mysql2/configuration/settings.rb +63 -0
- data/lib/datadog/tracing/contrib/mysql2/ext.rb +28 -0
- data/lib/datadog/tracing/contrib/mysql2/instrumentation.rb +95 -0
- data/lib/datadog/tracing/contrib/mysql2/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/mysql2/patcher.rb +31 -0
- data/lib/datadog/tracing/contrib/opensearch/configuration/settings.rb +53 -0
- data/lib/datadog/tracing/contrib/opensearch/ext.rb +38 -0
- data/lib/datadog/tracing/contrib/opensearch/integration.rb +44 -0
- data/lib/datadog/tracing/contrib/opensearch/patcher.rb +135 -0
- data/lib/datadog/tracing/contrib/opensearch/quantize.rb +81 -0
- data/lib/datadog/tracing/contrib/patchable.rb +109 -0
- data/lib/datadog/tracing/contrib/patcher.rb +83 -0
- data/lib/datadog/tracing/contrib/pg/configuration/settings.rb +64 -0
- data/lib/datadog/tracing/contrib/pg/ext.rb +35 -0
- data/lib/datadog/tracing/contrib/pg/instrumentation.rb +211 -0
- data/lib/datadog/tracing/contrib/pg/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/pg/patcher.rb +31 -0
- data/lib/datadog/tracing/contrib/presto/configuration/settings.rb +51 -0
- data/lib/datadog/tracing/contrib/presto/ext.rb +38 -0
- data/lib/datadog/tracing/contrib/presto/instrumentation.rb +136 -0
- data/lib/datadog/tracing/contrib/presto/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/presto/patcher.rb +35 -0
- data/lib/datadog/tracing/contrib/propagation/sql_comment/comment.rb +41 -0
- data/lib/datadog/tracing/contrib/propagation/sql_comment/ext.rb +33 -0
- data/lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb +28 -0
- data/lib/datadog/tracing/contrib/propagation/sql_comment.rb +53 -0
- data/lib/datadog/tracing/contrib/qless/configuration/settings.rb +45 -0
- data/lib/datadog/tracing/contrib/qless/ext.rb +27 -0
- data/lib/datadog/tracing/contrib/qless/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/qless/patcher.rb +36 -0
- data/lib/datadog/tracing/contrib/qless/qless_job.rb +75 -0
- data/lib/datadog/tracing/contrib/qless/tracer_cleaner.rb +30 -0
- data/lib/datadog/tracing/contrib/que/configuration/settings.rb +57 -0
- data/lib/datadog/tracing/contrib/que/ext.rb +33 -0
- data/lib/datadog/tracing/contrib/que/integration.rb +44 -0
- data/lib/datadog/tracing/contrib/que/patcher.rb +26 -0
- data/lib/datadog/tracing/contrib/que/tracer.rb +63 -0
- data/lib/datadog/tracing/contrib/racecar/configuration/settings.rb +46 -0
- data/lib/datadog/tracing/contrib/racecar/event.rb +81 -0
- data/lib/datadog/tracing/contrib/racecar/events/batch.rb +36 -0
- data/lib/datadog/tracing/contrib/racecar/events/consume.rb +33 -0
- data/lib/datadog/tracing/contrib/racecar/events/message.rb +36 -0
- data/lib/datadog/tracing/contrib/racecar/events.rb +36 -0
- data/lib/datadog/tracing/contrib/racecar/ext.rb +33 -0
- data/lib/datadog/tracing/contrib/racecar/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/racecar/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/rack/configuration/settings.rb +54 -0
- data/lib/datadog/tracing/contrib/rack/ext.rb +31 -0
- data/lib/datadog/tracing/contrib/rack/header_collection.rb +38 -0
- data/lib/datadog/tracing/contrib/rack/header_tagging.rb +63 -0
- data/lib/datadog/tracing/contrib/rack/integration.rb +48 -0
- data/lib/datadog/tracing/contrib/rack/middlewares.rb +315 -0
- data/lib/datadog/tracing/contrib/rack/patcher.rb +117 -0
- data/lib/datadog/tracing/contrib/rack/request_queue.rb +46 -0
- data/lib/datadog/tracing/contrib/rails/auto_instrument_railtie.rb +8 -0
- data/lib/datadog/tracing/contrib/rails/configuration/settings.rb +84 -0
- data/lib/datadog/tracing/contrib/rails/ext.rb +20 -0
- data/lib/datadog/tracing/contrib/rails/framework.rb +148 -0
- data/lib/datadog/tracing/contrib/rails/integration.rb +47 -0
- data/lib/datadog/tracing/contrib/rails/log_injection.rb +27 -0
- data/lib/datadog/tracing/contrib/rails/middlewares.rb +46 -0
- data/lib/datadog/tracing/contrib/rails/patcher.rb +87 -0
- data/lib/datadog/tracing/contrib/rails/railtie.rb +17 -0
- data/lib/datadog/tracing/contrib/rails/utils.rb +28 -0
- data/lib/datadog/tracing/contrib/rake/configuration/settings.rb +55 -0
- data/lib/datadog/tracing/contrib/rake/ext.rb +27 -0
- data/lib/datadog/tracing/contrib/rake/instrumentation.rb +101 -0
- data/lib/datadog/tracing/contrib/rake/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/rake/patcher.rb +33 -0
- data/lib/datadog/tracing/contrib/redis/configuration/resolver.rb +47 -0
- data/lib/datadog/tracing/contrib/redis/configuration/settings.rb +57 -0
- data/lib/datadog/tracing/contrib/redis/ext.rb +35 -0
- data/lib/datadog/tracing/contrib/redis/instrumentation.rb +51 -0
- data/lib/datadog/tracing/contrib/redis/integration.rb +78 -0
- data/lib/datadog/tracing/contrib/redis/patcher.rb +90 -0
- data/lib/datadog/tracing/contrib/redis/quantize.rb +80 -0
- data/lib/datadog/tracing/contrib/redis/tags.rb +68 -0
- data/lib/datadog/tracing/contrib/redis/trace_middleware.rb +83 -0
- data/lib/datadog/tracing/contrib/redis/vendor/LICENSE +20 -0
- data/lib/datadog/tracing/contrib/redis/vendor/resolver.rb +160 -0
- data/lib/datadog/tracing/contrib/registerable.rb +50 -0
- data/lib/datadog/tracing/contrib/registry.rb +52 -0
- data/lib/datadog/tracing/contrib/resque/configuration/settings.rb +44 -0
- data/lib/datadog/tracing/contrib/resque/ext.rb +22 -0
- data/lib/datadog/tracing/contrib/resque/integration.rb +46 -0
- data/lib/datadog/tracing/contrib/resque/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/resque/resque_job.rb +106 -0
- data/lib/datadog/tracing/contrib/rest_client/configuration/settings.rb +55 -0
- data/lib/datadog/tracing/contrib/rest_client/ext.rb +28 -0
- data/lib/datadog/tracing/contrib/rest_client/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/rest_client/patcher.rb +28 -0
- data/lib/datadog/tracing/contrib/rest_client/request_patch.rb +129 -0
- data/lib/datadog/tracing/contrib/roda/configuration/settings.rb +38 -0
- data/lib/datadog/tracing/contrib/roda/ext.rb +19 -0
- data/lib/datadog/tracing/contrib/roda/instrumentation.rb +76 -0
- data/lib/datadog/tracing/contrib/roda/integration.rb +45 -0
- data/lib/datadog/tracing/contrib/roda/patcher.rb +30 -0
- data/lib/datadog/tracing/contrib/semantic_logger/configuration/settings.rb +24 -0
- data/lib/datadog/tracing/contrib/semantic_logger/ext.rb +15 -0
- data/lib/datadog/tracing/contrib/semantic_logger/instrumentation.rb +35 -0
- data/lib/datadog/tracing/contrib/semantic_logger/integration.rb +50 -0
- data/lib/datadog/tracing/contrib/semantic_logger/patcher.rb +29 -0
- data/lib/datadog/tracing/contrib/sequel/configuration/settings.rb +37 -0
- data/lib/datadog/tracing/contrib/sequel/database.rb +60 -0
- data/lib/datadog/tracing/contrib/sequel/dataset.rb +67 -0
- data/lib/datadog/tracing/contrib/sequel/ext.rb +23 -0
- data/lib/datadog/tracing/contrib/sequel/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/sequel/patcher.rb +37 -0
- data/lib/datadog/tracing/contrib/sequel/utils.rb +88 -0
- data/lib/datadog/tracing/contrib/shoryuken/configuration/settings.rb +45 -0
- data/lib/datadog/tracing/contrib/shoryuken/ext.rb +27 -0
- data/lib/datadog/tracing/contrib/shoryuken/integration.rb +42 -0
- data/lib/datadog/tracing/contrib/shoryuken/patcher.rb +28 -0
- data/lib/datadog/tracing/contrib/shoryuken/tracer.rb +65 -0
- data/lib/datadog/tracing/contrib/sidekiq/client_tracer.rb +66 -0
- data/lib/datadog/tracing/contrib/sidekiq/configuration/settings.rb +53 -0
- data/lib/datadog/tracing/contrib/sidekiq/distributed/propagation.rb +38 -0
- data/lib/datadog/tracing/contrib/sidekiq/ext.rb +45 -0
- data/lib/datadog/tracing/contrib/sidekiq/integration.rb +59 -0
- data/lib/datadog/tracing/contrib/sidekiq/patcher.rb +90 -0
- data/lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/heartbeat.rb +61 -0
- data/lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/job_fetch.rb +36 -0
- data/lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/redis_info.rb +34 -0
- data/lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/scheduled_poller.rb +57 -0
- data/lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/stop.rb +34 -0
- data/lib/datadog/tracing/contrib/sidekiq/server_tracer.rb +118 -0
- data/lib/datadog/tracing/contrib/sidekiq/utils.rb +44 -0
- data/lib/datadog/tracing/contrib/sinatra/configuration/settings.rb +44 -0
- data/lib/datadog/tracing/contrib/sinatra/env.rb +36 -0
- data/lib/datadog/tracing/contrib/sinatra/ext.rb +37 -0
- data/lib/datadog/tracing/contrib/sinatra/framework.rb +114 -0
- data/lib/datadog/tracing/contrib/sinatra/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/sinatra/patcher.rb +75 -0
- data/lib/datadog/tracing/contrib/sinatra/tracer.rb +84 -0
- data/lib/datadog/tracing/contrib/sinatra/tracer_middleware.rb +116 -0
- data/lib/datadog/tracing/contrib/sneakers/configuration/settings.rb +43 -0
- data/lib/datadog/tracing/contrib/sneakers/ext.rb +27 -0
- data/lib/datadog/tracing/contrib/sneakers/integration.rb +44 -0
- data/lib/datadog/tracing/contrib/sneakers/patcher.rb +27 -0
- data/lib/datadog/tracing/contrib/sneakers/tracer.rb +60 -0
- data/lib/datadog/tracing/contrib/span_attribute_schema.rb +92 -0
- data/lib/datadog/tracing/contrib/status_code_matcher.rb +72 -0
- data/lib/datadog/tracing/contrib/stripe/configuration/settings.rb +37 -0
- data/lib/datadog/tracing/contrib/stripe/ext.rb +27 -0
- data/lib/datadog/tracing/contrib/stripe/integration.rb +43 -0
- data/lib/datadog/tracing/contrib/stripe/patcher.rb +28 -0
- data/lib/datadog/tracing/contrib/stripe/request.rb +67 -0
- data/lib/datadog/tracing/contrib/sucker_punch/configuration/settings.rb +39 -0
- data/lib/datadog/tracing/contrib/sucker_punch/exception_handler.rb +28 -0
- data/lib/datadog/tracing/contrib/sucker_punch/ext.rb +28 -0
- data/lib/datadog/tracing/contrib/sucker_punch/instrumentation.rb +102 -0
- data/lib/datadog/tracing/contrib/sucker_punch/integration.rb +41 -0
- data/lib/datadog/tracing/contrib/sucker_punch/patcher.rb +35 -0
- data/lib/datadog/tracing/contrib/trilogy/configuration/settings.rb +58 -0
- data/lib/datadog/tracing/contrib/trilogy/ext.rb +27 -0
- data/lib/datadog/tracing/contrib/trilogy/instrumentation.rb +94 -0
- data/lib/datadog/tracing/contrib/trilogy/integration.rb +43 -0
- data/lib/datadog/tracing/contrib/trilogy/patcher.rb +31 -0
- data/lib/datadog/tracing/contrib/utils/database.rb +31 -0
- data/lib/datadog/tracing/contrib/utils/quantization/hash.rb +109 -0
- data/lib/datadog/tracing/contrib/utils/quantization/http.rb +177 -0
- data/lib/datadog/tracing/contrib.rb +82 -0
- data/lib/datadog/tracing/correlation.rb +128 -0
- data/lib/datadog/tracing/diagnostics/environment_logger.rb +165 -0
- data/lib/datadog/tracing/diagnostics/ext.rb +36 -0
- data/lib/datadog/tracing/diagnostics/health.rb +40 -0
- data/lib/datadog/tracing/distributed/b3_multi.rb +72 -0
- data/lib/datadog/tracing/distributed/b3_single.rb +68 -0
- data/lib/datadog/tracing/distributed/datadog.rb +199 -0
- data/lib/datadog/tracing/distributed/datadog_tags_codec.rb +84 -0
- data/lib/datadog/tracing/distributed/fetcher.rb +21 -0
- data/lib/datadog/tracing/distributed/headers/ext.rb +34 -0
- data/lib/datadog/tracing/distributed/helpers.rb +65 -0
- data/lib/datadog/tracing/distributed/none.rb +18 -0
- data/lib/datadog/tracing/distributed/propagation.rb +127 -0
- data/lib/datadog/tracing/distributed/trace_context.rb +415 -0
- data/lib/datadog/tracing/event.rb +74 -0
- data/lib/datadog/tracing/flush.rb +96 -0
- data/lib/datadog/tracing/metadata/analytics.rb +26 -0
- data/lib/datadog/tracing/metadata/errors.rb +24 -0
- data/lib/datadog/tracing/metadata/ext.rb +191 -0
- data/lib/datadog/tracing/metadata/tagging.rb +129 -0
- data/lib/datadog/tracing/metadata.rb +20 -0
- data/lib/datadog/tracing/pipeline/span_filter.rb +46 -0
- data/lib/datadog/tracing/pipeline/span_processor.rb +39 -0
- data/lib/datadog/tracing/pipeline.rb +61 -0
- data/lib/datadog/tracing/propagation/http.rb +14 -0
- data/lib/datadog/tracing/remote.rb +78 -0
- data/lib/datadog/tracing/runtime/metrics.rb +17 -0
- data/lib/datadog/tracing/sampling/all_sampler.rb +25 -0
- data/lib/datadog/tracing/sampling/ext.rb +56 -0
- data/lib/datadog/tracing/sampling/matcher.rb +88 -0
- data/lib/datadog/tracing/sampling/priority_sampler.rb +165 -0
- data/lib/datadog/tracing/sampling/rate_by_key_sampler.rb +94 -0
- data/lib/datadog/tracing/sampling/rate_by_service_sampler.rb +62 -0
- data/lib/datadog/tracing/sampling/rate_limiter.rb +186 -0
- data/lib/datadog/tracing/sampling/rate_sampler.rb +68 -0
- data/lib/datadog/tracing/sampling/rule.rb +77 -0
- data/lib/datadog/tracing/sampling/rule_sampler.rb +159 -0
- data/lib/datadog/tracing/sampling/sampler.rb +42 -0
- data/lib/datadog/tracing/sampling/span/ext.rb +25 -0
- data/lib/datadog/tracing/sampling/span/matcher.rb +89 -0
- data/lib/datadog/tracing/sampling/span/rule.rb +82 -0
- data/lib/datadog/tracing/sampling/span/rule_parser.rb +104 -0
- data/lib/datadog/tracing/sampling/span/sampler.rb +77 -0
- data/lib/datadog/tracing/span.rb +214 -0
- data/lib/datadog/tracing/span_operation.rb +505 -0
- data/lib/datadog/tracing/sync_writer.rb +67 -0
- data/lib/datadog/tracing/trace_digest.rb +177 -0
- data/lib/datadog/tracing/trace_operation.rb +485 -0
- data/lib/datadog/tracing/trace_segment.rb +220 -0
- data/lib/datadog/tracing/tracer.rb +541 -0
- data/lib/datadog/tracing/transport/http/api/instance.rb +37 -0
- data/lib/datadog/tracing/transport/http/api/spec.rb +19 -0
- data/lib/datadog/tracing/transport/http/api.rb +43 -0
- data/lib/datadog/tracing/transport/http/builder.rb +162 -0
- data/lib/datadog/tracing/transport/http/client.rb +57 -0
- data/lib/datadog/tracing/transport/http/statistics.rb +47 -0
- data/lib/datadog/tracing/transport/http/traces.rb +152 -0
- data/lib/datadog/tracing/transport/http.rb +125 -0
- data/lib/datadog/tracing/transport/io/client.rb +89 -0
- data/lib/datadog/tracing/transport/io/response.rb +27 -0
- data/lib/datadog/tracing/transport/io/traces.rb +101 -0
- data/lib/datadog/tracing/transport/io.rb +30 -0
- data/lib/datadog/tracing/transport/serializable_trace.rb +126 -0
- data/lib/datadog/tracing/transport/statistics.rb +77 -0
- data/lib/datadog/tracing/transport/trace_formatter.rb +240 -0
- data/lib/datadog/tracing/transport/traces.rb +224 -0
- data/lib/datadog/tracing/utils.rb +83 -0
- data/lib/datadog/tracing/workers/trace_writer.rb +194 -0
- data/lib/datadog/tracing/workers.rb +123 -0
- data/lib/datadog/tracing/writer.rb +186 -0
- data/lib/datadog/tracing.rb +148 -0
- data/lib/ddtrace/auto_instrument.rb +16 -0
- data/lib/ddtrace/auto_instrument_base.rb +8 -0
- data/lib/ddtrace/profiling/preload.rb +2 -0
- data/lib/ddtrace/transport/ext.rb +47 -0
- data/lib/ddtrace/version.rb +19 -5
- data/lib/ddtrace.rb +9 -72
- metadata +808 -632
- data/.circleci/config.yml +0 -441
- data/.circleci/images/primary/Dockerfile-2.0.0 +0 -73
- data/.circleci/images/primary/Dockerfile-2.1.10 +0 -73
- data/.circleci/images/primary/Dockerfile-2.2.10 +0 -73
- data/.circleci/images/primary/Dockerfile-2.3.8 +0 -75
- data/.circleci/images/primary/Dockerfile-2.4.6 +0 -73
- data/.circleci/images/primary/Dockerfile-2.5.6 +0 -73
- data/.circleci/images/primary/Dockerfile-2.6.4 +0 -73
- data/.circleci/images/primary/Dockerfile-2.7.0 +0 -73
- data/.dockerignore +0 -1
- data/.env +0 -26
- data/.github/CODEOWNERS +0 -1
- data/.gitignore +0 -59
- data/.rspec +0 -1
- data/.rubocop.yml +0 -81
- data/.yardopts +0 -5
- data/Appraisals +0 -944
- data/CONTRIBUTING.md +0 -85
- data/Gemfile +0 -7
- data/Rakefile +0 -722
- data/benchmarks/postgres_database.yml +0 -9
- data/benchmarks/sidekiq_test.rb +0 -154
- data/ddtrace.gemspec +0 -64
- data/docker-compose.yml +0 -335
- data/docs/DevelopmentGuide.md +0 -195
- data/docs/GettingStarted.md +0 -2142
- data/lib/ddtrace/analytics.rb +0 -36
- data/lib/ddtrace/augmentation/method_wrapper.rb +0 -20
- data/lib/ddtrace/augmentation/method_wrapping.rb +0 -38
- data/lib/ddtrace/augmentation/shim.rb +0 -102
- data/lib/ddtrace/augmentation.rb +0 -13
- data/lib/ddtrace/buffer.rb +0 -119
- data/lib/ddtrace/configuration/base.rb +0 -84
- data/lib/ddtrace/configuration/dependency_resolver.rb +0 -24
- data/lib/ddtrace/configuration/option.rb +0 -64
- data/lib/ddtrace/configuration/option_definition.rb +0 -123
- data/lib/ddtrace/configuration/option_definition_set.rb +0 -18
- data/lib/ddtrace/configuration/option_set.rb +0 -6
- data/lib/ddtrace/configuration/options.rb +0 -112
- data/lib/ddtrace/configuration/pin_setup.rb +0 -30
- data/lib/ddtrace/configuration/settings.rb +0 -187
- data/lib/ddtrace/configuration.rb +0 -30
- data/lib/ddtrace/context.rb +0 -305
- data/lib/ddtrace/context_flush.rb +0 -69
- data/lib/ddtrace/context_provider.rb +0 -50
- data/lib/ddtrace/contrib/action_cable/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/action_cable/event.rb +0 -65
- data/lib/ddtrace/contrib/action_cable/events/broadcast.rb +0 -49
- data/lib/ddtrace/contrib/action_cable/events/perform_action.rb +0 -55
- data/lib/ddtrace/contrib/action_cable/events/transmit.rb +0 -50
- data/lib/ddtrace/contrib/action_cable/events.rb +0 -33
- data/lib/ddtrace/contrib/action_cable/ext.rb +0 -23
- data/lib/ddtrace/contrib/action_cable/instrumentation.rb +0 -31
- data/lib/ddtrace/contrib/action_cable/integration.rb +0 -38
- data/lib/ddtrace/contrib/action_cable/patcher.rb +0 -27
- data/lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb +0 -148
- data/lib/ddtrace/contrib/action_pack/action_controller/patcher.rb +0 -25
- data/lib/ddtrace/contrib/action_pack/configuration/settings.rb +0 -27
- data/lib/ddtrace/contrib/action_pack/ext.rb +0 -16
- data/lib/ddtrace/contrib/action_pack/integration.rb +0 -38
- data/lib/ddtrace/contrib/action_pack/patcher.rb +0 -23
- data/lib/ddtrace/contrib/action_pack/utils.rb +0 -36
- data/lib/ddtrace/contrib/action_view/configuration/settings.rb +0 -26
- data/lib/ddtrace/contrib/action_view/event.rb +0 -39
- data/lib/ddtrace/contrib/action_view/events/render_partial.rb +0 -45
- data/lib/ddtrace/contrib/action_view/events/render_template.rb +0 -48
- data/lib/ddtrace/contrib/action_view/events.rb +0 -30
- data/lib/ddtrace/contrib/action_view/ext.rb +0 -17
- data/lib/ddtrace/contrib/action_view/instrumentation/partial_renderer.rb +0 -74
- data/lib/ddtrace/contrib/action_view/instrumentation/template_renderer.rb +0 -167
- data/lib/ddtrace/contrib/action_view/integration.rb +0 -45
- data/lib/ddtrace/contrib/action_view/patcher.rb +0 -47
- data/lib/ddtrace/contrib/action_view/utils.rb +0 -32
- data/lib/ddtrace/contrib/active_model_serializers/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/active_model_serializers/event.rb +0 -68
- data/lib/ddtrace/contrib/active_model_serializers/events/render.rb +0 -32
- data/lib/ddtrace/contrib/active_model_serializers/events/serialize.rb +0 -35
- data/lib/ddtrace/contrib/active_model_serializers/events.rb +0 -30
- data/lib/ddtrace/contrib/active_model_serializers/ext.rb +0 -17
- data/lib/ddtrace/contrib/active_model_serializers/integration.rb +0 -40
- data/lib/ddtrace/contrib/active_model_serializers/patcher.rb +0 -29
- data/lib/ddtrace/contrib/active_record/configuration/resolver.rb +0 -45
- data/lib/ddtrace/contrib/active_record/configuration/settings.rb +0 -30
- data/lib/ddtrace/contrib/active_record/event.rb +0 -30
- data/lib/ddtrace/contrib/active_record/events/instantiation.rb +0 -60
- data/lib/ddtrace/contrib/active_record/events/sql.rb +0 -64
- data/lib/ddtrace/contrib/active_record/events.rb +0 -30
- data/lib/ddtrace/contrib/active_record/ext.rb +0 -21
- data/lib/ddtrace/contrib/active_record/integration.rb +0 -46
- data/lib/ddtrace/contrib/active_record/patcher.rb +0 -23
- data/lib/ddtrace/contrib/active_record/utils.rb +0 -76
- data/lib/ddtrace/contrib/active_support/cache/instrumentation.rb +0 -157
- data/lib/ddtrace/contrib/active_support/cache/patcher.rb +0 -48
- data/lib/ddtrace/contrib/active_support/cache/redis.rb +0 -47
- data/lib/ddtrace/contrib/active_support/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/active_support/ext.rb +0 -21
- data/lib/ddtrace/contrib/active_support/integration.rb +0 -40
- data/lib/ddtrace/contrib/active_support/notifications/event.rb +0 -62
- data/lib/ddtrace/contrib/active_support/notifications/subscriber.rb +0 -66
- data/lib/ddtrace/contrib/active_support/notifications/subscription.rb +0 -159
- data/lib/ddtrace/contrib/active_support/patcher.rb +0 -23
- data/lib/ddtrace/contrib/analytics.rb +0 -24
- data/lib/ddtrace/contrib/aws/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/aws/ext.rb +0 -20
- data/lib/ddtrace/contrib/aws/instrumentation.rb +0 -56
- data/lib/ddtrace/contrib/aws/integration.rb +0 -42
- data/lib/ddtrace/contrib/aws/parsed_context.rb +0 -56
- data/lib/ddtrace/contrib/aws/patcher.rb +0 -49
- data/lib/ddtrace/contrib/aws/services.rb +0 -115
- data/lib/ddtrace/contrib/concurrent_ruby/configuration/settings.rb +0 -15
- data/lib/ddtrace/contrib/concurrent_ruby/context_composite_executor_service.rb +0 -35
- data/lib/ddtrace/contrib/concurrent_ruby/ext.rb +0 -11
- data/lib/ddtrace/contrib/concurrent_ruby/future_patch.rb +0 -23
- data/lib/ddtrace/contrib/concurrent_ruby/integration.rb +0 -38
- data/lib/ddtrace/contrib/concurrent_ruby/patcher.rb +0 -28
- data/lib/ddtrace/contrib/configurable.rb +0 -76
- data/lib/ddtrace/contrib/configuration/resolver.rb +0 -16
- data/lib/ddtrace/contrib/configuration/resolvers/pattern_resolver.rb +0 -39
- data/lib/ddtrace/contrib/configuration/settings.rb +0 -35
- data/lib/ddtrace/contrib/dalli/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/dalli/ext.rb +0 -17
- data/lib/ddtrace/contrib/dalli/instrumentation.rb +0 -50
- data/lib/ddtrace/contrib/dalli/integration.rb +0 -38
- data/lib/ddtrace/contrib/dalli/patcher.rb +0 -67
- data/lib/ddtrace/contrib/dalli/quantize.rb +0 -22
- data/lib/ddtrace/contrib/delayed_job/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/delayed_job/ext.rb +0 -18
- data/lib/ddtrace/contrib/delayed_job/integration.rb +0 -38
- data/lib/ddtrace/contrib/delayed_job/patcher.rb +0 -28
- data/lib/ddtrace/contrib/delayed_job/plugin.rb +0 -61
- data/lib/ddtrace/contrib/elasticsearch/configuration/settings.rb +0 -26
- data/lib/ddtrace/contrib/elasticsearch/ext.rb +0 -19
- data/lib/ddtrace/contrib/elasticsearch/integration.rb +0 -39
- data/lib/ddtrace/contrib/elasticsearch/patcher.rb +0 -118
- data/lib/ddtrace/contrib/elasticsearch/quantize.rb +0 -80
- data/lib/ddtrace/contrib/ethon/configuration/settings.rb +0 -27
- data/lib/ddtrace/contrib/ethon/easy_patch.rb +0 -148
- data/lib/ddtrace/contrib/ethon/ext.rb +0 -15
- data/lib/ddtrace/contrib/ethon/integration.rb +0 -43
- data/lib/ddtrace/contrib/ethon/multi_patch.rb +0 -80
- data/lib/ddtrace/contrib/ethon/patcher.rb +0 -25
- data/lib/ddtrace/contrib/excon/configuration/settings.rb +0 -28
- data/lib/ddtrace/contrib/excon/ext.rb +0 -14
- data/lib/ddtrace/contrib/excon/integration.rb +0 -43
- data/lib/ddtrace/contrib/excon/middleware.rb +0 -157
- data/lib/ddtrace/contrib/excon/patcher.rb +0 -27
- data/lib/ddtrace/contrib/extensions.rb +0 -59
- data/lib/ddtrace/contrib/faraday/configuration/settings.rb +0 -33
- data/lib/ddtrace/contrib/faraday/connection.rb +0 -18
- data/lib/ddtrace/contrib/faraday/ext.rb +0 -14
- data/lib/ddtrace/contrib/faraday/integration.rb +0 -43
- data/lib/ddtrace/contrib/faraday/middleware.rb +0 -81
- data/lib/ddtrace/contrib/faraday/patcher.rb +0 -81
- data/lib/ddtrace/contrib/faraday/rack_builder.rb +0 -18
- data/lib/ddtrace/contrib/grape/configuration/settings.rb +0 -27
- data/lib/ddtrace/contrib/grape/endpoint.rb +0 -208
- data/lib/ddtrace/contrib/grape/ext.rb +0 -19
- data/lib/ddtrace/contrib/grape/instrumentation.rb +0 -33
- data/lib/ddtrace/contrib/grape/integration.rb +0 -39
- data/lib/ddtrace/contrib/grape/patcher.rb +0 -73
- data/lib/ddtrace/contrib/graphql/configuration/settings.rb +0 -27
- data/lib/ddtrace/contrib/graphql/ext.rb +0 -13
- data/lib/ddtrace/contrib/graphql/integration.rb +0 -39
- data/lib/ddtrace/contrib/graphql/patcher.rb +0 -57
- data/lib/ddtrace/contrib/grpc/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/grpc/datadog_interceptor/client.rb +0 -56
- data/lib/ddtrace/contrib/grpc/datadog_interceptor/server.rb +0 -76
- data/lib/ddtrace/contrib/grpc/datadog_interceptor.rb +0 -74
- data/lib/ddtrace/contrib/grpc/ext.rb +0 -15
- data/lib/ddtrace/contrib/grpc/integration.rb +0 -38
- data/lib/ddtrace/contrib/grpc/intercept_with_datadog.rb +0 -49
- data/lib/ddtrace/contrib/grpc/patcher.rb +0 -72
- data/lib/ddtrace/contrib/http/circuit_breaker.rb +0 -63
- data/lib/ddtrace/contrib/http/configuration/settings.rb +0 -27
- data/lib/ddtrace/contrib/http/ext.rb +0 -14
- data/lib/ddtrace/contrib/http/instrumentation.rb +0 -170
- data/lib/ddtrace/contrib/http/integration.rb +0 -45
- data/lib/ddtrace/contrib/http/patcher.rb +0 -26
- data/lib/ddtrace/contrib/http_annotation_helper.rb +0 -10
- data/lib/ddtrace/contrib/integration.rb +0 -16
- data/lib/ddtrace/contrib/mongodb/configuration/settings.rb +0 -28
- data/lib/ddtrace/contrib/mongodb/ext.rb +0 -20
- data/lib/ddtrace/contrib/mongodb/instrumentation.rb +0 -68
- data/lib/ddtrace/contrib/mongodb/integration.rb +0 -38
- data/lib/ddtrace/contrib/mongodb/parsers.rb +0 -68
- data/lib/ddtrace/contrib/mongodb/patcher.rb +0 -31
- data/lib/ddtrace/contrib/mongodb/subscribers.rb +0 -108
- data/lib/ddtrace/contrib/mysql2/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/mysql2/ext.rb +0 -15
- data/lib/ddtrace/contrib/mysql2/instrumentation.rb +0 -60
- data/lib/ddtrace/contrib/mysql2/integration.rb +0 -38
- data/lib/ddtrace/contrib/mysql2/patcher.rb +0 -27
- data/lib/ddtrace/contrib/patchable.rb +0 -59
- data/lib/ddtrace/contrib/patcher.rb +0 -56
- data/lib/ddtrace/contrib/presto/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/presto/ext.rb +0 -25
- data/lib/ddtrace/contrib/presto/instrumentation.rb +0 -107
- data/lib/ddtrace/contrib/presto/integration.rb +0 -38
- data/lib/ddtrace/contrib/presto/patcher.rb +0 -30
- data/lib/ddtrace/contrib/racecar/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/racecar/event.rb +0 -71
- data/lib/ddtrace/contrib/racecar/events/batch.rb +0 -27
- data/lib/ddtrace/contrib/racecar/events/message.rb +0 -27
- data/lib/ddtrace/contrib/racecar/events.rb +0 -30
- data/lib/ddtrace/contrib/racecar/ext.rb +0 -21
- data/lib/ddtrace/contrib/racecar/integration.rb +0 -39
- data/lib/ddtrace/contrib/racecar/patcher.rb +0 -26
- data/lib/ddtrace/contrib/rack/configuration/settings.rb +0 -41
- data/lib/ddtrace/contrib/rack/ext.rb +0 -18
- data/lib/ddtrace/contrib/rack/integration.rb +0 -38
- data/lib/ddtrace/contrib/rack/middlewares.rb +0 -287
- data/lib/ddtrace/contrib/rack/patcher.rb +0 -107
- data/lib/ddtrace/contrib/rack/request_queue.rb +0 -39
- data/lib/ddtrace/contrib/rails/configuration/settings.rb +0 -81
- data/lib/ddtrace/contrib/rails/ext.rb +0 -13
- data/lib/ddtrace/contrib/rails/framework.rb +0 -125
- data/lib/ddtrace/contrib/rails/integration.rb +0 -44
- data/lib/ddtrace/contrib/rails/middlewares.rb +0 -38
- data/lib/ddtrace/contrib/rails/patcher.rb +0 -74
- data/lib/ddtrace/contrib/rails/railtie.rb +0 -17
- data/lib/ddtrace/contrib/rails/utils.rb +0 -20
- data/lib/ddtrace/contrib/rake/configuration/settings.rb +0 -27
- data/lib/ddtrace/contrib/rake/ext.rb +0 -18
- data/lib/ddtrace/contrib/rake/instrumentation.rb +0 -88
- data/lib/ddtrace/contrib/rake/integration.rb +0 -38
- data/lib/ddtrace/contrib/rake/patcher.rb +0 -30
- data/lib/ddtrace/contrib/redis/configuration/resolver.rb +0 -36
- data/lib/ddtrace/contrib/redis/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/redis/ext.rb +0 -18
- data/lib/ddtrace/contrib/redis/integration.rb +0 -42
- data/lib/ddtrace/contrib/redis/patcher.rb +0 -97
- data/lib/ddtrace/contrib/redis/quantize.rb +0 -47
- data/lib/ddtrace/contrib/redis/tags.rb +0 -38
- data/lib/ddtrace/contrib/redis/vendor/resolver.rb +0 -159
- data/lib/ddtrace/contrib/registerable.rb +0 -33
- data/lib/ddtrace/contrib/registry.rb +0 -42
- data/lib/ddtrace/contrib/resque/configuration/settings.rb +0 -26
- data/lib/ddtrace/contrib/resque/ext.rb +0 -14
- data/lib/ddtrace/contrib/resque/integration.rb +0 -47
- data/lib/ddtrace/contrib/resque/patcher.rb +0 -29
- data/lib/ddtrace/contrib/resque/resque_job.rb +0 -80
- data/lib/ddtrace/contrib/rest_client/configuration/settings.rb +0 -26
- data/lib/ddtrace/contrib/rest_client/ext.rb +0 -14
- data/lib/ddtrace/contrib/rest_client/integration.rb +0 -38
- data/lib/ddtrace/contrib/rest_client/patcher.rb +0 -23
- data/lib/ddtrace/contrib/rest_client/request_patch.rb +0 -89
- data/lib/ddtrace/contrib/sequel/configuration/settings.rb +0 -23
- data/lib/ddtrace/contrib/sequel/database.rb +0 -61
- data/lib/ddtrace/contrib/sequel/dataset.rb +0 -62
- data/lib/ddtrace/contrib/sequel/ext.rb +0 -15
- data/lib/ddtrace/contrib/sequel/integration.rb +0 -38
- data/lib/ddtrace/contrib/sequel/patcher.rb +0 -33
- data/lib/ddtrace/contrib/sequel/utils.rb +0 -46
- data/lib/ddtrace/contrib/shoryuken/configuration/settings.rb +0 -24
- data/lib/ddtrace/contrib/shoryuken/ext.rb +0 -18
- data/lib/ddtrace/contrib/shoryuken/integration.rb +0 -39
- data/lib/ddtrace/contrib/shoryuken/patcher.rb +0 -24
- data/lib/ddtrace/contrib/shoryuken/tracer.rb +0 -49
- data/lib/ddtrace/contrib/sidekiq/client_tracer.rb +0 -43
- data/lib/ddtrace/contrib/sidekiq/configuration/settings.rb +0 -31
- data/lib/ddtrace/contrib/sidekiq/ext.rb +0 -23
- data/lib/ddtrace/contrib/sidekiq/integration.rb +0 -38
- data/lib/ddtrace/contrib/sidekiq/patcher.rb +0 -34
- data/lib/ddtrace/contrib/sidekiq/server_tracer.rb +0 -66
- data/lib/ddtrace/contrib/sidekiq/tracing.rb +0 -45
- data/lib/ddtrace/contrib/sinatra/configuration/settings.rb +0 -34
- data/lib/ddtrace/contrib/sinatra/env.rb +0 -38
- data/lib/ddtrace/contrib/sinatra/ext.rb +0 -18
- data/lib/ddtrace/contrib/sinatra/headers.rb +0 -31
- data/lib/ddtrace/contrib/sinatra/integration.rb +0 -38
- data/lib/ddtrace/contrib/sinatra/patcher.rb +0 -27
- data/lib/ddtrace/contrib/sinatra/tracer.rb +0 -87
- data/lib/ddtrace/contrib/sinatra/tracer_middleware.rb +0 -75
- data/lib/ddtrace/contrib/sucker_punch/configuration/settings.rb +0 -25
- data/lib/ddtrace/contrib/sucker_punch/exception_handler.rb +0 -26
- data/lib/ddtrace/contrib/sucker_punch/ext.rb +0 -18
- data/lib/ddtrace/contrib/sucker_punch/instrumentation.rb +0 -84
- data/lib/ddtrace/contrib/sucker_punch/integration.rb +0 -38
- data/lib/ddtrace/contrib/sucker_punch/patcher.rb +0 -42
- data/lib/ddtrace/correlation.rb +0 -35
- data/lib/ddtrace/diagnostics/health.rb +0 -37
- data/lib/ddtrace/distributed_tracing/headers/b3.rb +0 -44
- data/lib/ddtrace/distributed_tracing/headers/b3_single.rb +0 -56
- data/lib/ddtrace/distributed_tracing/headers/datadog.rb +0 -42
- data/lib/ddtrace/distributed_tracing/headers/headers.rb +0 -70
- data/lib/ddtrace/distributed_tracing/headers/helpers.rb +0 -45
- data/lib/ddtrace/encoding.rb +0 -95
- data/lib/ddtrace/environment.rb +0 -27
- data/lib/ddtrace/error.rb +0 -27
- data/lib/ddtrace/event.rb +0 -52
- data/lib/ddtrace/ext/analytics.rb +0 -12
- data/lib/ddtrace/ext/app_types.rb +0 -11
- data/lib/ddtrace/ext/correlation.rb +0 -10
- data/lib/ddtrace/ext/diagnostics.rb +0 -31
- data/lib/ddtrace/ext/distributed.rb +0 -33
- data/lib/ddtrace/ext/environment.rb +0 -13
- data/lib/ddtrace/ext/errors.rb +0 -10
- data/lib/ddtrace/ext/forced_tracing.rb +0 -25
- data/lib/ddtrace/ext/http.rb +0 -46
- data/lib/ddtrace/ext/manual_tracing.rb +0 -9
- data/lib/ddtrace/ext/metrics.rb +0 -15
- data/lib/ddtrace/ext/net.rb +0 -10
- data/lib/ddtrace/ext/priority.rb +0 -16
- data/lib/ddtrace/ext/runtime.rb +0 -26
- data/lib/ddtrace/ext/sampling.rb +0 -16
- data/lib/ddtrace/ext/sql.rb +0 -8
- data/lib/ddtrace/ext/transport.rb +0 -17
- data/lib/ddtrace/forced_tracing.rb +0 -36
- data/lib/ddtrace/logger.rb +0 -81
- data/lib/ddtrace/metrics.rb +0 -222
- data/lib/ddtrace/monkey.rb +0 -58
- data/lib/ddtrace/opentelemetry/extensions.rb +0 -13
- data/lib/ddtrace/opentelemetry/span.rb +0 -33
- data/lib/ddtrace/opentracer/binary_propagator.rb +0 -24
- data/lib/ddtrace/opentracer/carrier.rb +0 -6
- data/lib/ddtrace/opentracer/distributed_headers.rb +0 -52
- data/lib/ddtrace/opentracer/global_tracer.rb +0 -15
- data/lib/ddtrace/opentracer/propagator.rb +0 -22
- data/lib/ddtrace/opentracer/rack_propagator.rb +0 -60
- data/lib/ddtrace/opentracer/scope.rb +0 -15
- data/lib/ddtrace/opentracer/scope_manager.rb +0 -6
- data/lib/ddtrace/opentracer/span.rb +0 -98
- data/lib/ddtrace/opentracer/span_context.rb +0 -14
- data/lib/ddtrace/opentracer/span_context_factory.rb +0 -23
- data/lib/ddtrace/opentracer/text_map_propagator.rb +0 -75
- data/lib/ddtrace/opentracer/thread_local_scope.rb +0 -30
- data/lib/ddtrace/opentracer/thread_local_scope_manager.rb +0 -40
- data/lib/ddtrace/opentracer/tracer.rb +0 -208
- data/lib/ddtrace/opentracer.rb +0 -40
- data/lib/ddtrace/patcher.rb +0 -47
- data/lib/ddtrace/pin.rb +0 -114
- data/lib/ddtrace/pipeline/span_filter.rb +0 -38
- data/lib/ddtrace/pipeline/span_processor.rb +0 -20
- data/lib/ddtrace/pipeline.rb +0 -46
- data/lib/ddtrace/propagation/grpc_propagator.rb +0 -61
- data/lib/ddtrace/propagation/http_propagator.rb +0 -75
- data/lib/ddtrace/quantization/hash.rb +0 -103
- data/lib/ddtrace/quantization/http.rb +0 -86
- data/lib/ddtrace/runtime/cgroup.rb +0 -44
- data/lib/ddtrace/runtime/class_count.rb +0 -17
- data/lib/ddtrace/runtime/container.rb +0 -73
- data/lib/ddtrace/runtime/gc.rb +0 -16
- data/lib/ddtrace/runtime/identity.rb +0 -41
- data/lib/ddtrace/runtime/metrics.rb +0 -93
- data/lib/ddtrace/runtime/object_space.rb +0 -19
- data/lib/ddtrace/runtime/socket.rb +0 -14
- data/lib/ddtrace/runtime/thread_count.rb +0 -16
- data/lib/ddtrace/sampler.rb +0 -290
- data/lib/ddtrace/sampling/matcher.rb +0 -57
- data/lib/ddtrace/sampling/rate_limiter.rb +0 -127
- data/lib/ddtrace/sampling/rule.rb +0 -61
- data/lib/ddtrace/sampling/rule_sampler.rb +0 -125
- data/lib/ddtrace/sampling.rb +0 -2
- data/lib/ddtrace/span.rb +0 -297
- data/lib/ddtrace/sync_writer.rb +0 -72
- data/lib/ddtrace/tracer.rb +0 -437
- data/lib/ddtrace/transport/http/adapters/net.rb +0 -112
- data/lib/ddtrace/transport/http/adapters/registry.rb +0 -24
- data/lib/ddtrace/transport/http/adapters/test.rb +0 -77
- data/lib/ddtrace/transport/http/adapters/unix_socket.rb +0 -64
- data/lib/ddtrace/transport/http/api/endpoint.rb +0 -27
- data/lib/ddtrace/transport/http/api/fallbacks.rb +0 -22
- data/lib/ddtrace/transport/http/api/instance.rb +0 -29
- data/lib/ddtrace/transport/http/api/map.rb +0 -14
- data/lib/ddtrace/transport/http/api/spec.rb +0 -15
- data/lib/ddtrace/transport/http/api.rb +0 -46
- data/lib/ddtrace/transport/http/builder.rb +0 -165
- data/lib/ddtrace/transport/http/client.rb +0 -107
- data/lib/ddtrace/transport/http/env.rb +0 -48
- data/lib/ddtrace/transport/http/response.rb +0 -26
- data/lib/ddtrace/transport/http/statistics.rb +0 -30
- data/lib/ddtrace/transport/http/traces.rb +0 -140
- data/lib/ddtrace/transport/http.rb +0 -91
- data/lib/ddtrace/transport/io/client.rb +0 -76
- data/lib/ddtrace/transport/io/response.rb +0 -23
- data/lib/ddtrace/transport/io/traces.rb +0 -44
- data/lib/ddtrace/transport/io.rb +0 -26
- data/lib/ddtrace/transport/parcel.rb +0 -17
- data/lib/ddtrace/transport/request.rb +0 -13
- data/lib/ddtrace/transport/response.rb +0 -49
- data/lib/ddtrace/transport/statistics.rb +0 -72
- data/lib/ddtrace/transport/traces.rb +0 -33
- data/lib/ddtrace/utils/database.rb +0 -25
- data/lib/ddtrace/utils/time.rb +0 -14
- data/lib/ddtrace/utils.rb +0 -65
- data/lib/ddtrace/vendor/active_record/connection_specification.rb +0 -301
- data/lib/ddtrace/worker.rb +0 -20
- data/lib/ddtrace/workers/async.rb +0 -165
- data/lib/ddtrace/workers/loop.rb +0 -105
- data/lib/ddtrace/workers/polling.rb +0 -48
- data/lib/ddtrace/workers/queue.rb +0 -39
- data/lib/ddtrace/workers.rb +0 -125
- data/lib/ddtrace/writer.rb +0 -161
- data/tasks/release_gem.rake +0 -28
data/Rakefile
DELETED
@@ -1,722 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'ddtrace/version'
|
3
|
-
require 'rubocop/rake_task' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.1.0')
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
require 'rake/testtask'
|
6
|
-
require 'appraisal'
|
7
|
-
require 'yard'
|
8
|
-
|
9
|
-
Dir.glob('tasks/*.rake').each { |r| import r }
|
10
|
-
|
11
|
-
desc 'Run RSpec'
|
12
|
-
# rubocop:disable Metrics/BlockLength
|
13
|
-
namespace :spec do
|
14
|
-
task all: [:main,
|
15
|
-
:rails, :railsredis, :railsactivejob,
|
16
|
-
:elasticsearch, :http, :redis, :sidekiq, :sinatra]
|
17
|
-
|
18
|
-
RSpec::Core::RakeTask.new(:main) do |t, args|
|
19
|
-
t.pattern = 'spec/**/*_spec.rb'
|
20
|
-
t.exclude_pattern = 'spec/**/{contrib,benchmark,redis,opentracer,opentelemetry}/**/*_spec.rb'
|
21
|
-
t.rspec_opts = args.to_a.join(' ')
|
22
|
-
end
|
23
|
-
|
24
|
-
RSpec::Core::RakeTask.new(:opentracer) do |t, args|
|
25
|
-
t.pattern = 'spec/ddtrace/opentracer/**/*_spec.rb'
|
26
|
-
t.rspec_opts = args.to_a.join(' ')
|
27
|
-
end
|
28
|
-
|
29
|
-
RSpec::Core::RakeTask.new(:opentelemetry) do |t, args|
|
30
|
-
t.pattern = 'spec/ddtrace/opentelemetry/**/*_spec.rb'
|
31
|
-
t.rspec_opts = args.to_a.join(' ')
|
32
|
-
end
|
33
|
-
|
34
|
-
RSpec::Core::RakeTask.new(:rails) do |t, args|
|
35
|
-
t.pattern = 'spec/ddtrace/contrib/rails/**/*_spec.rb'
|
36
|
-
t.exclude_pattern = 'spec/ddtrace/contrib/rails/**/*{active_job,disable_env,redis_cache}*_spec.rb'
|
37
|
-
t.rspec_opts = args.to_a.join(' ')
|
38
|
-
end
|
39
|
-
|
40
|
-
RSpec::Core::RakeTask.new(:railsredis) do |t, args|
|
41
|
-
t.pattern = 'spec/ddtrace/contrib/rails/**/*redis*_spec.rb'
|
42
|
-
t.rspec_opts = args.to_a.join(' ')
|
43
|
-
end
|
44
|
-
|
45
|
-
RSpec::Core::RakeTask.new(:railsactivejob) do |t, args|
|
46
|
-
t.pattern = 'spec/ddtrace/contrib/rails/**/*active_job*_spec.rb'
|
47
|
-
t.rspec_opts = args.to_a.join(' ')
|
48
|
-
end
|
49
|
-
|
50
|
-
RSpec::Core::RakeTask.new(:railsdisableenv) do |t, args|
|
51
|
-
t.pattern = 'spec/ddtrace/contrib/rails/**/*disable_env*_spec.rb'
|
52
|
-
t.rspec_opts = args.to_a.join(' ')
|
53
|
-
end
|
54
|
-
|
55
|
-
RSpec::Core::RakeTask.new(:contrib) do |t, args|
|
56
|
-
contrib_paths = [
|
57
|
-
'analytics',
|
58
|
-
'configurable',
|
59
|
-
'configuration/*',
|
60
|
-
'configuration/resolvers/*',
|
61
|
-
'extensions',
|
62
|
-
'integration',
|
63
|
-
'patchable',
|
64
|
-
'patcher',
|
65
|
-
'registerable',
|
66
|
-
'registry',
|
67
|
-
'registry/*'
|
68
|
-
].join(',')
|
69
|
-
|
70
|
-
t.pattern = "spec/**/contrib/{#{contrib_paths}}_spec.rb"
|
71
|
-
t.rspec_opts = args.to_a.join(' ')
|
72
|
-
end
|
73
|
-
|
74
|
-
[
|
75
|
-
:action_cable,
|
76
|
-
:action_pack,
|
77
|
-
:action_view,
|
78
|
-
:active_model_serializers,
|
79
|
-
:active_record,
|
80
|
-
:active_support,
|
81
|
-
:aws,
|
82
|
-
:concurrent_ruby,
|
83
|
-
:dalli,
|
84
|
-
:delayed_job,
|
85
|
-
:elasticsearch,
|
86
|
-
:ethon,
|
87
|
-
:excon,
|
88
|
-
:faraday,
|
89
|
-
:grape,
|
90
|
-
:graphql,
|
91
|
-
:grpc,
|
92
|
-
:http,
|
93
|
-
:mongodb,
|
94
|
-
:mysql2,
|
95
|
-
:presto,
|
96
|
-
:racecar,
|
97
|
-
:rack,
|
98
|
-
:rake,
|
99
|
-
:redis,
|
100
|
-
:resque,
|
101
|
-
:rest_client,
|
102
|
-
:sequel,
|
103
|
-
:sidekiq,
|
104
|
-
:sinatra,
|
105
|
-
:sucker_punch,
|
106
|
-
:shoryuken
|
107
|
-
].each do |contrib|
|
108
|
-
RSpec::Core::RakeTask.new(contrib) do |t, args|
|
109
|
-
t.pattern = "spec/ddtrace/contrib/#{contrib}/**/*_spec.rb"
|
110
|
-
t.rspec_opts = args.to_a.join(' ')
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
namespace :test do
|
116
|
-
task all: [:main,
|
117
|
-
:rails,
|
118
|
-
:sidekiq, :monkey]
|
119
|
-
|
120
|
-
Rake::TestTask.new(:main) do |t|
|
121
|
-
t.libs << %w[test lib]
|
122
|
-
t.test_files = FileList['test/**/*_test.rb'].reject do |path|
|
123
|
-
path.include?('contrib') ||
|
124
|
-
path.include?('benchmark') ||
|
125
|
-
path.include?('redis') ||
|
126
|
-
path.include?('monkey_test.rb')
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
Rake::TestTask.new(:rails) do |t|
|
131
|
-
t.libs << %w[test lib]
|
132
|
-
t.test_files = FileList['test/contrib/rails/**/*_test.rb']
|
133
|
-
end
|
134
|
-
|
135
|
-
[
|
136
|
-
:grape,
|
137
|
-
:sidekiq,
|
138
|
-
:sucker_punch
|
139
|
-
].each do |contrib|
|
140
|
-
Rake::TestTask.new(contrib) do |t|
|
141
|
-
t.libs << %w[test lib]
|
142
|
-
t.test_files = FileList["test/contrib/#{contrib}/*_test.rb"]
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
Rake::TestTask.new(:monkey) do |t|
|
147
|
-
t.libs << %w[test lib]
|
148
|
-
t.test_files = FileList['test/monkey_test.rb']
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
Rake::TestTask.new(:benchmark) do |t|
|
153
|
-
t.libs << %w[test lib]
|
154
|
-
t.test_files = FileList['test/benchmark_test.rb']
|
155
|
-
end
|
156
|
-
|
157
|
-
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.1.0')
|
158
|
-
RuboCop::RakeTask.new(:rubocop) do |t|
|
159
|
-
t.options << ['-D', '--force-exclusion']
|
160
|
-
t.patterns = ['lib/**/*.rb', 'test/**/*.rb', 'spec/**/*.rb', 'Gemfile', 'Rakefile']
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
YARD::Rake::YardocTask.new(:docs) do |t|
|
165
|
-
t.options += ['--title', "ddtrace #{Datadog::VERSION::STRING} documentation"]
|
166
|
-
t.options += ['--markup', 'markdown']
|
167
|
-
t.options += ['--markup-provider', 'redcarpet']
|
168
|
-
end
|
169
|
-
|
170
|
-
# Deploy tasks
|
171
|
-
S3_BUCKET = 'gems.datadoghq.com'.freeze
|
172
|
-
S3_DIR = ENV['S3_DIR']
|
173
|
-
|
174
|
-
desc 'release the docs website'
|
175
|
-
task :'release:docs' => :docs do
|
176
|
-
raise 'Missing environment variable S3_DIR' if !S3_DIR || S3_DIR.empty?
|
177
|
-
sh "aws s3 cp --recursive doc/ s3://#{S3_BUCKET}/#{S3_DIR}/docs/"
|
178
|
-
end
|
179
|
-
|
180
|
-
desc 'CI task; it runs all tests for current version of Ruby'
|
181
|
-
task :ci do
|
182
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new(Datadog::VERSION::MINIMUM_RUBY_VERSION)
|
183
|
-
raise NotImplementedError, "Ruby versions < #{Datadog::VERSION::MINIMUM_RUBY_VERSION} are not supported!"
|
184
|
-
elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
|
185
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
|
186
|
-
# Main library
|
187
|
-
sh 'bundle exec rake test:main'
|
188
|
-
sh 'bundle exec rake spec:main'
|
189
|
-
sh 'bundle exec rake spec:contrib'
|
190
|
-
|
191
|
-
if RUBY_PLATFORM != 'java'
|
192
|
-
# Contrib minitests
|
193
|
-
sh 'bundle exec appraisal contrib-old rake test:monkey'
|
194
|
-
sh 'bundle exec appraisal contrib-old rake test:sidekiq'
|
195
|
-
sh 'bundle exec appraisal contrib-old rake test:sucker_punch'
|
196
|
-
# Contrib specs
|
197
|
-
sh 'bundle exec appraisal contrib-old rake spec:active_model_serializers'
|
198
|
-
sh 'bundle exec appraisal contrib-old rake spec:active_record'
|
199
|
-
sh 'bundle exec appraisal contrib-old rake spec:active_support'
|
200
|
-
sh 'bundle exec appraisal contrib-old rake spec:aws'
|
201
|
-
sh 'bundle exec appraisal contrib-old rake spec:concurrent_ruby'
|
202
|
-
sh 'bundle exec appraisal contrib-old rake spec:dalli'
|
203
|
-
sh 'bundle exec appraisal contrib-old rake spec:delayed_job'
|
204
|
-
sh 'bundle exec appraisal contrib-old rake spec:elasticsearch'
|
205
|
-
sh 'bundle exec appraisal contrib-old rake spec:ethon'
|
206
|
-
sh 'bundle exec appraisal contrib-old rake spec:excon'
|
207
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
208
|
-
sh 'bundle exec appraisal contrib-old rake spec:http'
|
209
|
-
sh 'bundle exec appraisal contrib-old rake spec:mongodb'
|
210
|
-
sh 'bundle exec appraisal contrib-old rake spec:mysql2'
|
211
|
-
sh 'bundle exec appraisal contrib-old rake spec:rack'
|
212
|
-
sh 'bundle exec appraisal contrib-old rake spec:rake'
|
213
|
-
sh 'bundle exec appraisal contrib-old rake spec:redis'
|
214
|
-
sh 'bundle exec appraisal contrib-old rake spec:resque'
|
215
|
-
sh 'bundle exec appraisal contrib-old rake spec:rest_client'
|
216
|
-
sh 'bundle exec appraisal contrib-old rake spec:sequel'
|
217
|
-
sh 'bundle exec appraisal contrib-old rake spec:sidekiq'
|
218
|
-
sh 'bundle exec appraisal contrib-old rake spec:sinatra'
|
219
|
-
sh 'bundle exec appraisal contrib-old rake spec:sucker_punch'
|
220
|
-
# Rails minitests
|
221
|
-
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
222
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
|
223
|
-
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
224
|
-
sh 'bundle exec appraisal rails32-postgres rake test:rails'
|
225
|
-
sh 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis'
|
226
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
|
227
|
-
# Rails specs
|
228
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:rails'
|
229
|
-
sh 'bundle exec appraisal rails32-mysql2 rake spec:rails'
|
230
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:rails'
|
231
|
-
# Rails suite specs
|
232
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:action_pack'
|
233
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:action_view'
|
234
|
-
sh 'bundle exec appraisal rails32-mysql2 rake spec:active_record'
|
235
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:active_support'
|
236
|
-
end
|
237
|
-
elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
|
238
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
|
239
|
-
# Main library
|
240
|
-
sh 'bundle exec rake test:main'
|
241
|
-
sh 'bundle exec rake spec:main'
|
242
|
-
sh 'bundle exec rake spec:contrib'
|
243
|
-
sh 'bundle exec rake spec:opentracer'
|
244
|
-
|
245
|
-
if RUBY_PLATFORM != 'java'
|
246
|
-
# Contrib minitests
|
247
|
-
sh 'bundle exec appraisal contrib-old rake test:monkey'
|
248
|
-
sh 'bundle exec appraisal contrib-old rake test:sidekiq'
|
249
|
-
sh 'bundle exec appraisal contrib-old rake test:sucker_punch'
|
250
|
-
# Contrib specs
|
251
|
-
sh 'bundle exec appraisal contrib-old rake spec:active_model_serializers'
|
252
|
-
sh 'bundle exec appraisal contrib-old rake spec:active_record'
|
253
|
-
sh 'bundle exec appraisal contrib-old rake spec:active_support'
|
254
|
-
sh 'bundle exec appraisal contrib-old rake spec:aws'
|
255
|
-
sh 'bundle exec appraisal contrib-old rake spec:concurrent_ruby'
|
256
|
-
sh 'bundle exec appraisal contrib-old rake spec:dalli'
|
257
|
-
sh 'bundle exec appraisal contrib-old rake spec:delayed_job'
|
258
|
-
sh 'bundle exec appraisal contrib-old rake spec:elasticsearch'
|
259
|
-
sh 'bundle exec appraisal contrib-old rake spec:ethon'
|
260
|
-
sh 'bundle exec appraisal contrib-old rake spec:excon'
|
261
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
262
|
-
sh 'bundle exec appraisal contrib-old rake spec:http'
|
263
|
-
sh 'bundle exec appraisal contrib-old rake spec:mongodb'
|
264
|
-
sh 'bundle exec appraisal contrib-old rake spec:mysql2'
|
265
|
-
sh 'bundle exec appraisal contrib-old rake spec:presto'
|
266
|
-
sh 'bundle exec appraisal contrib-old rake spec:rack'
|
267
|
-
sh 'bundle exec appraisal contrib-old rake spec:rake'
|
268
|
-
sh 'bundle exec appraisal contrib-old rake spec:redis'
|
269
|
-
sh 'bundle exec appraisal contrib-old rake spec:resque'
|
270
|
-
sh 'bundle exec appraisal contrib-old rake spec:rest_client'
|
271
|
-
sh 'bundle exec appraisal contrib-old rake spec:sequel'
|
272
|
-
sh 'bundle exec appraisal contrib-old rake spec:sidekiq'
|
273
|
-
sh 'bundle exec appraisal contrib-old rake spec:sinatra'
|
274
|
-
sh 'bundle exec appraisal contrib-old rake spec:sucker_punch'
|
275
|
-
# Rails minitests
|
276
|
-
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
277
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
|
278
|
-
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
279
|
-
sh 'bundle exec appraisal rails32-postgres rake test:rails'
|
280
|
-
sh 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis'
|
281
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
|
282
|
-
sh 'bundle exec appraisal rails4-mysql2 rake test:rails'
|
283
|
-
sh 'bundle exec appraisal rails4-postgres rake test:rails'
|
284
|
-
sh 'bundle exec appraisal rails4-postgres-redis rake spec:railsredis'
|
285
|
-
sh 'bundle exec appraisal rails4-postgres rake spec:railsdisableenv'
|
286
|
-
# Rails specs
|
287
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:rails'
|
288
|
-
sh 'bundle exec appraisal rails32-mysql2 rake spec:rails'
|
289
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:rails'
|
290
|
-
sh 'bundle exec appraisal rails4-mysql2 rake spec:rails'
|
291
|
-
sh 'bundle exec appraisal rails4-postgres rake spec:rails'
|
292
|
-
# Rails suite specs
|
293
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:action_pack'
|
294
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:action_view'
|
295
|
-
sh 'bundle exec appraisal rails32-mysql2 rake spec:active_record'
|
296
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:active_support'
|
297
|
-
end
|
298
|
-
elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION)\
|
299
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0')
|
300
|
-
# Main library
|
301
|
-
sh 'bundle exec rake test:main'
|
302
|
-
sh 'bundle exec rake spec:main'
|
303
|
-
sh 'bundle exec rake spec:contrib'
|
304
|
-
sh 'bundle exec rake spec:opentracer'
|
305
|
-
|
306
|
-
if RUBY_PLATFORM != 'java'
|
307
|
-
# Contrib minitests
|
308
|
-
sh 'bundle exec appraisal contrib rake test:grape'
|
309
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
310
|
-
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
311
|
-
# Contrib specs
|
312
|
-
sh 'bundle exec appraisal contrib rake spec:action_pack'
|
313
|
-
sh 'bundle exec appraisal contrib rake spec:action_view'
|
314
|
-
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
315
|
-
sh 'bundle exec appraisal contrib rake spec:active_record'
|
316
|
-
sh 'bundle exec appraisal contrib rake spec:active_support'
|
317
|
-
sh 'bundle exec appraisal contrib rake spec:aws'
|
318
|
-
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
319
|
-
sh 'bundle exec appraisal contrib rake spec:dalli'
|
320
|
-
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
321
|
-
sh 'bundle exec appraisal contrib rake spec:elasticsearch'
|
322
|
-
sh 'bundle exec appraisal contrib rake spec:ethon'
|
323
|
-
sh 'bundle exec appraisal contrib rake spec:excon'
|
324
|
-
sh 'bundle exec appraisal contrib rake spec:faraday'
|
325
|
-
sh 'bundle exec appraisal contrib rake spec:grape'
|
326
|
-
sh 'bundle exec appraisal contrib rake spec:graphql'
|
327
|
-
sh 'bundle exec appraisal contrib rake spec:grpc'
|
328
|
-
sh 'bundle exec appraisal contrib rake spec:http'
|
329
|
-
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
330
|
-
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
331
|
-
sh 'bundle exec appraisal contrib rake spec:presto'
|
332
|
-
sh 'bundle exec appraisal contrib rake spec:racecar'
|
333
|
-
sh 'bundle exec appraisal contrib rake spec:rack'
|
334
|
-
sh 'bundle exec appraisal contrib rake spec:rake'
|
335
|
-
sh 'bundle exec appraisal contrib rake spec:redis'
|
336
|
-
sh 'bundle exec appraisal contrib rake spec:resque'
|
337
|
-
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
338
|
-
sh 'bundle exec appraisal contrib rake spec:sequel'
|
339
|
-
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
340
|
-
sh 'bundle exec appraisal contrib rake spec:sidekiq'
|
341
|
-
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
342
|
-
sh 'bundle exec appraisal contrib rake spec:sucker_punch'
|
343
|
-
# Rails minitests
|
344
|
-
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
345
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
|
346
|
-
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
347
|
-
sh 'bundle exec appraisal rails32-postgres rake test:rails'
|
348
|
-
sh 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis'
|
349
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
|
350
|
-
sh 'bundle exec appraisal rails4-mysql2 rake test:rails'
|
351
|
-
sh 'bundle exec appraisal rails4-postgres rake test:rails'
|
352
|
-
sh 'bundle exec appraisal rails4-postgres-redis rake spec:railsredis'
|
353
|
-
sh 'bundle exec appraisal rails4-postgres rake spec:railsdisableenv'
|
354
|
-
sh 'bundle exec appraisal rails4-postgres-sidekiq rake spec:railsactivejob'
|
355
|
-
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
356
|
-
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
357
|
-
sh 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
|
358
|
-
sh 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis'
|
359
|
-
sh 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
|
360
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
|
361
|
-
# Rails specs
|
362
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:rails'
|
363
|
-
sh 'bundle exec appraisal rails32-mysql2 rake spec:rails'
|
364
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:rails'
|
365
|
-
sh 'bundle exec appraisal rails4-mysql2 rake spec:rails'
|
366
|
-
sh 'bundle exec appraisal rails4-postgres rake spec:rails'
|
367
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
368
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
369
|
-
end
|
370
|
-
elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
|
371
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4.0')
|
372
|
-
# Main library
|
373
|
-
sh 'bundle exec rake test:main'
|
374
|
-
sh 'bundle exec rake spec:main'
|
375
|
-
sh 'bundle exec rake spec:contrib'
|
376
|
-
sh 'bundle exec rake spec:opentracer'
|
377
|
-
|
378
|
-
if RUBY_PLATFORM != 'java'
|
379
|
-
# Contrib minitests
|
380
|
-
sh 'bundle exec appraisal contrib rake test:grape'
|
381
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
382
|
-
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
383
|
-
# Contrib specs
|
384
|
-
sh 'bundle exec appraisal contrib rake spec:action_pack'
|
385
|
-
sh 'bundle exec appraisal contrib rake spec:action_view'
|
386
|
-
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
387
|
-
sh 'bundle exec appraisal contrib rake spec:active_record'
|
388
|
-
sh 'bundle exec appraisal contrib rake spec:active_support'
|
389
|
-
sh 'bundle exec appraisal contrib rake spec:aws'
|
390
|
-
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
391
|
-
sh 'bundle exec appraisal contrib rake spec:dalli'
|
392
|
-
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
393
|
-
sh 'bundle exec appraisal contrib rake spec:elasticsearch'
|
394
|
-
sh 'bundle exec appraisal contrib rake spec:ethon'
|
395
|
-
sh 'bundle exec appraisal contrib rake spec:excon'
|
396
|
-
sh 'bundle exec appraisal contrib rake spec:faraday'
|
397
|
-
sh 'bundle exec appraisal contrib rake spec:grape'
|
398
|
-
sh 'bundle exec appraisal contrib rake spec:graphql'
|
399
|
-
sh 'bundle exec appraisal contrib rake spec:grpc'
|
400
|
-
sh 'bundle exec appraisal contrib rake spec:http'
|
401
|
-
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
402
|
-
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
403
|
-
sh 'bundle exec appraisal contrib rake spec:presto'
|
404
|
-
sh 'bundle exec appraisal contrib rake spec:racecar'
|
405
|
-
sh 'bundle exec appraisal contrib rake spec:rack'
|
406
|
-
sh 'bundle exec appraisal contrib rake spec:rake'
|
407
|
-
sh 'bundle exec appraisal contrib rake spec:redis'
|
408
|
-
sh 'bundle exec appraisal contrib rake spec:resque'
|
409
|
-
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
410
|
-
sh 'bundle exec appraisal contrib rake spec:sequel'
|
411
|
-
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
412
|
-
sh 'bundle exec appraisal contrib rake spec:sidekiq'
|
413
|
-
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
414
|
-
sh 'bundle exec appraisal contrib rake spec:sucker_punch'
|
415
|
-
# Contrib specs with old gem versions
|
416
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
417
|
-
# Rails minitests
|
418
|
-
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
419
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:railsdisableenv'
|
420
|
-
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
421
|
-
sh 'bundle exec appraisal rails32-postgres rake test:rails'
|
422
|
-
sh 'bundle exec appraisal rails32-postgres-redis rake spec:railsredis'
|
423
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:railsdisableenv'
|
424
|
-
sh 'bundle exec appraisal rails4-mysql2 rake test:rails'
|
425
|
-
sh 'bundle exec appraisal rails4-postgres rake test:rails'
|
426
|
-
sh 'bundle exec appraisal rails4-postgres-redis rake spec:railsredis'
|
427
|
-
sh 'bundle exec appraisal rails4-postgres rake spec:railsdisableenv'
|
428
|
-
sh 'bundle exec appraisal rails4-postgres-sidekiq rake spec:railsactivejob'
|
429
|
-
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
430
|
-
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
431
|
-
sh 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
|
432
|
-
sh 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis'
|
433
|
-
sh 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
|
434
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
|
435
|
-
# Rails specs
|
436
|
-
sh 'bundle exec appraisal rails30-postgres rake spec:rails'
|
437
|
-
sh 'bundle exec appraisal rails32-mysql2 rake spec:rails'
|
438
|
-
sh 'bundle exec appraisal rails32-postgres rake spec:rails'
|
439
|
-
sh 'bundle exec appraisal rails4-mysql2 rake spec:rails'
|
440
|
-
sh 'bundle exec appraisal rails4-postgres rake spec:rails'
|
441
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
442
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
443
|
-
end
|
444
|
-
elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) \
|
445
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5.0')
|
446
|
-
# Main library
|
447
|
-
sh 'bundle exec rake test:main'
|
448
|
-
sh 'bundle exec rake spec:main'
|
449
|
-
sh 'bundle exec rake spec:contrib'
|
450
|
-
sh 'bundle exec rake spec:opentracer'
|
451
|
-
sh 'bundle exec rake spec:opentelemetry'
|
452
|
-
|
453
|
-
if RUBY_PLATFORM != 'java'
|
454
|
-
# Benchmarks
|
455
|
-
sh 'bundle exec rake benchmark'
|
456
|
-
# Contrib minitests
|
457
|
-
sh 'bundle exec appraisal contrib rake test:grape'
|
458
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
459
|
-
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
460
|
-
# Contrib specs
|
461
|
-
sh 'bundle exec appraisal contrib rake spec:action_pack'
|
462
|
-
sh 'bundle exec appraisal contrib rake spec:action_view'
|
463
|
-
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
464
|
-
sh 'bundle exec appraisal contrib rake spec:active_record'
|
465
|
-
sh 'bundle exec appraisal contrib rake spec:active_support'
|
466
|
-
sh 'bundle exec appraisal contrib rake spec:aws'
|
467
|
-
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
468
|
-
sh 'bundle exec appraisal contrib rake spec:dalli'
|
469
|
-
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
470
|
-
sh 'bundle exec appraisal contrib rake spec:elasticsearch'
|
471
|
-
sh 'bundle exec appraisal contrib rake spec:ethon'
|
472
|
-
sh 'bundle exec appraisal contrib rake spec:excon'
|
473
|
-
sh 'bundle exec appraisal contrib rake spec:faraday'
|
474
|
-
sh 'bundle exec appraisal contrib rake spec:grape'
|
475
|
-
sh 'bundle exec appraisal contrib rake spec:graphql'
|
476
|
-
sh 'bundle exec appraisal contrib rake spec:grpc'
|
477
|
-
sh 'bundle exec appraisal contrib rake spec:http'
|
478
|
-
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
479
|
-
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
480
|
-
sh 'bundle exec appraisal contrib rake spec:presto'
|
481
|
-
sh 'bundle exec appraisal contrib rake spec:racecar'
|
482
|
-
sh 'bundle exec appraisal contrib rake spec:rack'
|
483
|
-
sh 'bundle exec appraisal contrib rake spec:rake'
|
484
|
-
sh 'bundle exec appraisal contrib rake spec:redis'
|
485
|
-
sh 'bundle exec appraisal contrib rake spec:resque'
|
486
|
-
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
487
|
-
sh 'bundle exec appraisal contrib rake spec:sequel'
|
488
|
-
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
489
|
-
sh 'bundle exec appraisal contrib rake spec:sidekiq'
|
490
|
-
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
491
|
-
sh 'bundle exec appraisal contrib rake spec:sucker_punch'
|
492
|
-
# Contrib specs with old gem versions
|
493
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
494
|
-
# Rails minitests
|
495
|
-
# We only test Rails 5+ because older versions require Bundler < 2.0
|
496
|
-
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
497
|
-
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
498
|
-
sh 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
|
499
|
-
sh 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis'
|
500
|
-
sh 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
|
501
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
|
502
|
-
# Rails specs
|
503
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
504
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
505
|
-
end
|
506
|
-
elsif Gem::Version.new('2.5.0') <= Gem::Version.new(RUBY_VERSION) \
|
507
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6.0')
|
508
|
-
# Main library
|
509
|
-
sh 'bundle exec rake test:main'
|
510
|
-
sh 'bundle exec rake spec:main'
|
511
|
-
sh 'bundle exec rake spec:contrib'
|
512
|
-
sh 'bundle exec rake spec:opentracer'
|
513
|
-
sh 'bundle exec rake spec:opentelemetry'
|
514
|
-
|
515
|
-
if RUBY_PLATFORM != 'java'
|
516
|
-
# Benchmarks
|
517
|
-
sh 'bundle exec rake benchmark'
|
518
|
-
# Contrib minitests
|
519
|
-
sh 'bundle exec appraisal contrib rake test:grape'
|
520
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
521
|
-
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
522
|
-
# Contrib specs
|
523
|
-
sh 'bundle exec appraisal contrib rake spec:action_pack'
|
524
|
-
sh 'bundle exec appraisal contrib rake spec:action_view'
|
525
|
-
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
526
|
-
sh 'bundle exec appraisal contrib rake spec:active_record'
|
527
|
-
sh 'bundle exec appraisal contrib rake spec:active_support'
|
528
|
-
sh 'bundle exec appraisal contrib rake spec:aws'
|
529
|
-
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
530
|
-
sh 'bundle exec appraisal contrib rake spec:dalli'
|
531
|
-
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
532
|
-
sh 'bundle exec appraisal contrib rake spec:elasticsearch'
|
533
|
-
sh 'bundle exec appraisal contrib rake spec:ethon'
|
534
|
-
sh 'bundle exec appraisal contrib rake spec:excon'
|
535
|
-
sh 'bundle exec appraisal contrib rake spec:faraday'
|
536
|
-
sh 'bundle exec appraisal contrib rake spec:grape'
|
537
|
-
sh 'bundle exec appraisal contrib rake spec:graphql'
|
538
|
-
sh 'bundle exec appraisal contrib rake spec:grpc'
|
539
|
-
sh 'bundle exec appraisal contrib rake spec:http'
|
540
|
-
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
541
|
-
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
542
|
-
sh 'bundle exec appraisal contrib rake spec:presto'
|
543
|
-
sh 'bundle exec appraisal contrib rake spec:racecar'
|
544
|
-
sh 'bundle exec appraisal contrib rake spec:rack'
|
545
|
-
sh 'bundle exec appraisal contrib rake spec:rake'
|
546
|
-
sh 'bundle exec appraisal contrib rake spec:redis'
|
547
|
-
sh 'bundle exec appraisal contrib rake spec:resque'
|
548
|
-
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
549
|
-
sh 'bundle exec appraisal contrib rake spec:sequel'
|
550
|
-
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
551
|
-
sh 'bundle exec appraisal contrib rake spec:sidekiq'
|
552
|
-
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
553
|
-
sh 'bundle exec appraisal contrib rake spec:sucker_punch'
|
554
|
-
# Contrib specs with old gem versions
|
555
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
556
|
-
# Rails minitests
|
557
|
-
# We only test Rails 5+ because older versions require Bundler < 2.0
|
558
|
-
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
559
|
-
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
560
|
-
sh 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
|
561
|
-
sh 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis'
|
562
|
-
sh 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
|
563
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
|
564
|
-
sh 'bundle exec appraisal rails6-mysql2 rake test:rails'
|
565
|
-
sh 'bundle exec appraisal rails6-postgres rake test:rails'
|
566
|
-
sh 'bundle exec appraisal rails6-postgres-redis rake spec:railsredis'
|
567
|
-
sh 'bundle exec appraisal rails6-postgres-redis-activesupport rake spec:railsredis'
|
568
|
-
sh 'bundle exec appraisal rails6-postgres-sidekiq rake spec:railsactivejob'
|
569
|
-
sh 'bundle exec appraisal rails6-postgres rake spec:railsdisableenv'
|
570
|
-
# Rails specs
|
571
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:action_cable'
|
572
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
573
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
574
|
-
# sh 'bundle exec appraisal rails6-mysql2 rake spec:action_cable' # TODO: Hangs CI jobs... fix and re-enable.
|
575
|
-
sh 'bundle exec appraisal rails6-mysql2 rake spec:rails'
|
576
|
-
sh 'bundle exec appraisal rails6-postgres rake spec:rails'
|
577
|
-
end
|
578
|
-
elsif Gem::Version.new('2.6.0') <= Gem::Version.new(RUBY_VERSION) \
|
579
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7.0')
|
580
|
-
# Main library
|
581
|
-
sh 'bundle exec rake test:main'
|
582
|
-
sh 'bundle exec rake spec:main'
|
583
|
-
sh 'bundle exec rake spec:contrib'
|
584
|
-
sh 'bundle exec rake spec:opentracer'
|
585
|
-
sh 'bundle exec rake spec:opentelemetry'
|
586
|
-
|
587
|
-
if RUBY_PLATFORM != 'java'
|
588
|
-
# Benchmarks
|
589
|
-
sh 'bundle exec rake benchmark'
|
590
|
-
# Contrib minitests
|
591
|
-
sh 'bundle exec appraisal contrib rake test:grape'
|
592
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
593
|
-
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
594
|
-
# Contrib specs
|
595
|
-
sh 'bundle exec appraisal contrib rake spec:action_pack'
|
596
|
-
sh 'bundle exec appraisal contrib rake spec:action_view'
|
597
|
-
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
598
|
-
sh 'bundle exec appraisal contrib rake spec:active_record'
|
599
|
-
sh 'bundle exec appraisal contrib rake spec:active_support'
|
600
|
-
sh 'bundle exec appraisal contrib rake spec:aws'
|
601
|
-
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
602
|
-
sh 'bundle exec appraisal contrib rake spec:dalli'
|
603
|
-
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
604
|
-
sh 'bundle exec appraisal contrib rake spec:elasticsearch'
|
605
|
-
sh 'bundle exec appraisal contrib rake spec:ethon'
|
606
|
-
sh 'bundle exec appraisal contrib rake spec:excon'
|
607
|
-
sh 'bundle exec appraisal contrib rake spec:faraday'
|
608
|
-
sh 'bundle exec appraisal contrib rake spec:grape'
|
609
|
-
sh 'bundle exec appraisal contrib rake spec:graphql'
|
610
|
-
sh 'bundle exec appraisal contrib rake spec:grpc'
|
611
|
-
sh 'bundle exec appraisal contrib rake spec:http'
|
612
|
-
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
613
|
-
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
614
|
-
sh 'bundle exec appraisal contrib rake spec:presto'
|
615
|
-
sh 'bundle exec appraisal contrib rake spec:racecar'
|
616
|
-
sh 'bundle exec appraisal contrib rake spec:rack'
|
617
|
-
sh 'bundle exec appraisal contrib rake spec:rake'
|
618
|
-
sh 'bundle exec appraisal contrib rake spec:redis'
|
619
|
-
sh 'bundle exec appraisal contrib rake spec:resque'
|
620
|
-
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
621
|
-
sh 'bundle exec appraisal contrib rake spec:sequel'
|
622
|
-
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
623
|
-
sh 'bundle exec appraisal contrib rake spec:sidekiq'
|
624
|
-
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
625
|
-
sh 'bundle exec appraisal contrib rake spec:sucker_punch'
|
626
|
-
# Contrib specs with old gem versions
|
627
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
628
|
-
# Rails minitests
|
629
|
-
# We only test Rails 5+ because older versions require Bundler < 2.0
|
630
|
-
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
631
|
-
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
632
|
-
sh 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
|
633
|
-
sh 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis'
|
634
|
-
sh 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
|
635
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
|
636
|
-
sh 'bundle exec appraisal rails6-mysql2 rake test:rails'
|
637
|
-
sh 'bundle exec appraisal rails6-postgres rake test:rails'
|
638
|
-
sh 'bundle exec appraisal rails6-postgres-redis rake spec:railsredis'
|
639
|
-
sh 'bundle exec appraisal rails6-postgres-redis-activesupport rake spec:railsredis'
|
640
|
-
sh 'bundle exec appraisal rails6-postgres-sidekiq rake spec:railsactivejob'
|
641
|
-
sh 'bundle exec appraisal rails6-postgres rake spec:railsdisableenv'
|
642
|
-
# Rails specs
|
643
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:action_cable'
|
644
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
645
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
646
|
-
# sh 'bundle exec appraisal rails6-mysql2 rake spec:action_cable' # TODO: Hangs CI jobs... fix and re-enable.
|
647
|
-
sh 'bundle exec appraisal rails6-mysql2 rake spec:rails'
|
648
|
-
sh 'bundle exec appraisal rails6-postgres rake spec:rails'
|
649
|
-
end
|
650
|
-
elsif Gem::Version.new('2.7.0') <= Gem::Version.new(RUBY_VERSION)
|
651
|
-
# Main library
|
652
|
-
sh 'bundle exec rake test:main'
|
653
|
-
sh 'bundle exec rake spec:main'
|
654
|
-
sh 'bundle exec rake spec:contrib'
|
655
|
-
sh 'bundle exec rake spec:opentracer'
|
656
|
-
sh 'bundle exec rake spec:opentelemetry'
|
657
|
-
|
658
|
-
if RUBY_PLATFORM != 'java'
|
659
|
-
# Benchmarks
|
660
|
-
sh 'bundle exec rake benchmark'
|
661
|
-
# Contrib minitests
|
662
|
-
sh 'bundle exec appraisal contrib rake test:grape'
|
663
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
664
|
-
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
665
|
-
# Contrib specs
|
666
|
-
sh 'bundle exec appraisal contrib rake spec:action_pack'
|
667
|
-
sh 'bundle exec appraisal contrib rake spec:action_view'
|
668
|
-
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
669
|
-
sh 'bundle exec appraisal contrib rake spec:active_record'
|
670
|
-
sh 'bundle exec appraisal contrib rake spec:active_support'
|
671
|
-
sh 'bundle exec appraisal contrib rake spec:aws'
|
672
|
-
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
673
|
-
sh 'bundle exec appraisal contrib rake spec:dalli'
|
674
|
-
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
675
|
-
sh 'bundle exec appraisal contrib rake spec:elasticsearch'
|
676
|
-
sh 'bundle exec appraisal contrib rake spec:ethon'
|
677
|
-
sh 'bundle exec appraisal contrib rake spec:excon'
|
678
|
-
sh 'bundle exec appraisal contrib rake spec:faraday'
|
679
|
-
sh 'bundle exec appraisal contrib rake spec:grape'
|
680
|
-
sh 'bundle exec appraisal contrib rake spec:graphql'
|
681
|
-
# sh 'bundle exec appraisal contrib rake spec:grpc' # Pending 2.7 support: https://github.com/grpc/grpc/issues/21514
|
682
|
-
sh 'bundle exec appraisal contrib rake spec:http'
|
683
|
-
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
684
|
-
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
685
|
-
sh 'bundle exec appraisal contrib rake spec:presto'
|
686
|
-
sh 'bundle exec appraisal contrib rake spec:racecar'
|
687
|
-
sh 'bundle exec appraisal contrib rake spec:rack'
|
688
|
-
sh 'bundle exec appraisal contrib rake spec:rake'
|
689
|
-
sh 'bundle exec appraisal contrib rake spec:redis'
|
690
|
-
sh 'bundle exec appraisal contrib rake spec:resque'
|
691
|
-
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
692
|
-
sh 'bundle exec appraisal contrib rake spec:sequel'
|
693
|
-
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
694
|
-
sh 'bundle exec appraisal contrib rake spec:sidekiq'
|
695
|
-
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
696
|
-
sh 'bundle exec appraisal contrib rake spec:sucker_punch'
|
697
|
-
# Contrib specs with old gem versions
|
698
|
-
sh 'bundle exec appraisal contrib-old rake spec:faraday'
|
699
|
-
# Rails minitests
|
700
|
-
# We only test Rails 5+ because older versions require Bundler < 2.0
|
701
|
-
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
702
|
-
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
703
|
-
sh 'bundle exec appraisal rails5-postgres-redis rake spec:railsredis'
|
704
|
-
sh 'bundle exec appraisal rails5-postgres-redis-activesupport rake spec:railsredis'
|
705
|
-
sh 'bundle exec appraisal rails5-postgres-sidekiq rake spec:railsactivejob'
|
706
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:railsdisableenv'
|
707
|
-
sh 'bundle exec appraisal rails6-mysql2 rake test:rails'
|
708
|
-
sh 'bundle exec appraisal rails6-postgres rake test:rails'
|
709
|
-
sh 'bundle exec appraisal rails6-postgres-redis rake spec:railsredis'
|
710
|
-
sh 'bundle exec appraisal rails6-postgres-redis-activesupport rake spec:railsredis'
|
711
|
-
sh 'bundle exec appraisal rails6-postgres-sidekiq rake spec:railsactivejob'
|
712
|
-
sh 'bundle exec appraisal rails6-postgres rake spec:railsdisableenv'
|
713
|
-
# Rails specs
|
714
|
-
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
715
|
-
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
716
|
-
sh 'bundle exec appraisal rails6-mysql2 rake spec:rails'
|
717
|
-
sh 'bundle exec appraisal rails6-postgres rake spec:rails'
|
718
|
-
end
|
719
|
-
end
|
720
|
-
end
|
721
|
-
|
722
|
-
task default: :test
|