instana 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/instana/setup.rb +1 -0
- data/lib/instana/span_filtering/condition.rb +134 -0
- data/lib/instana/span_filtering/configuration.rb +262 -0
- data/lib/instana/span_filtering/filter_rule.rb +31 -0
- data/lib/instana/span_filtering.rb +62 -0
- data/lib/instana/trace/span.rb +5 -3
- data/lib/instana/version.rb +1 -1
- metadata +7 -258
- data/.circleci/config.yml +0 -361
- data/.codeclimate.yml +0 -23
- data/.editorconfig +0 -10
- data/.fasterer.yml +0 -23
- data/.github/ISSUE_TEMPLATE/bug.yml +0 -39
- data/.github/ISSUE_TEMPLATE/config.yml +0 -8
- data/.github/workflows/pr_commits_signed_off.yml +0 -16
- data/.github/workflows/release-notification-on-slack.yml +0 -34
- data/.gitignore +0 -19
- data/.rubocop.yml +0 -34
- data/.rubocop_todo.yml +0 -1140
- data/.tekton/.currency/docs/report.md +0 -20
- data/.tekton/.currency/resources/requirements.txt +0 -4
- data/.tekton/.currency/resources/table.json +0 -100
- data/.tekton/.currency/scripts/generate_report.py +0 -308
- data/.tekton/README.md +0 -278
- data/.tekton/github-interceptor-secret.yaml +0 -8
- data/.tekton/github-pr-eventlistener.yaml +0 -104
- data/.tekton/github-pr-pipeline.yaml.part +0 -38
- data/.tekton/github-set-status-task.yaml +0 -43
- data/.tekton/github-webhook-ingress.yaml +0 -20
- data/.tekton/pipeline.yaml +0 -484
- data/.tekton/pipelinerun.yaml +0 -21
- data/.tekton/prepuller-restart-service-account.yaml +0 -31
- data/.tekton/ruby-tracer-prepuller-cronjob.yaml +0 -20
- data/.tekton/ruby-tracer-prepuller.yaml +0 -88
- data/.tekton/run_unittests.sh +0 -87
- data/.tekton/scheduled-eventlistener.yaml +0 -108
- data/.tekton/task.yaml +0 -453
- data/.tekton/tekton-triggers-eventlistener-serviceaccount.yaml +0 -29
- data/Appraisals +0 -124
- data/CONTRIBUTING.md +0 -86
- data/Gemfile +0 -22
- data/LICENSE +0 -22
- data/MAINTAINERS.md +0 -3
- data/Rakefile +0 -49
- data/bin/announce_release_on_slack.py +0 -103
- data/docker-compose.yml +0 -20
- data/download.sh +0 -85
- data/examples/otel.rb +0 -98
- data/examples/tracing.rb +0 -85
- data/extras/license_header.rb +0 -44
- data/gemfiles/.bundle/config +0 -2
- data/gemfiles/aws_30.gemfile +0 -21
- data/gemfiles/aws_60.gemfile +0 -16
- data/gemfiles/cuba_30.gemfile +0 -16
- data/gemfiles/cuba_40.gemfile +0 -13
- data/gemfiles/dalli_20.gemfile +0 -15
- data/gemfiles/dalli_30.gemfile +0 -12
- data/gemfiles/dalli_32.gemfile +0 -12
- data/gemfiles/excon_0100.gemfile +0 -14
- data/gemfiles/excon_021.gemfile +0 -17
- data/gemfiles/excon_079.gemfile +0 -17
- data/gemfiles/excon_100.gemfile +0 -14
- data/gemfiles/graphql_10.gemfile +0 -16
- data/gemfiles/graphql_20.gemfile +0 -15
- data/gemfiles/grpc_10.gemfile +0 -15
- data/gemfiles/mongo_216.gemfile +0 -15
- data/gemfiles/mongo_219.gemfile +0 -12
- data/gemfiles/net_http_01.gemfile +0 -17
- data/gemfiles/rack_16.gemfile +0 -15
- data/gemfiles/rack_20.gemfile +0 -15
- data/gemfiles/rack_30.gemfile +0 -13
- data/gemfiles/rails_42.gemfile +0 -18
- data/gemfiles/rails_50.gemfile +0 -19
- data/gemfiles/rails_52.gemfile +0 -19
- data/gemfiles/rails_60.gemfile +0 -19
- data/gemfiles/rails_61.gemfile +0 -21
- data/gemfiles/rails_70.gemfile +0 -18
- data/gemfiles/rails_71.gemfile +0 -17
- data/gemfiles/rails_80.gemfile +0 -17
- data/gemfiles/redis_40.gemfile +0 -15
- data/gemfiles/redis_50.gemfile +0 -13
- data/gemfiles/redis_51.gemfile +0 -13
- data/gemfiles/resque_122.gemfile +0 -16
- data/gemfiles/resque_1274_3scale.gemfile +0 -17
- data/gemfiles/resque_20.gemfile +0 -16
- data/gemfiles/rest_client_16.gemfile +0 -17
- data/gemfiles/rest_client_20.gemfile +0 -17
- data/gemfiles/roda_20.gemfile +0 -16
- data/gemfiles/roda_30.gemfile +0 -16
- data/gemfiles/rubocop_162.gemfile +0 -6
- data/gemfiles/sequel_56.gemfile +0 -16
- data/gemfiles/sequel_57.gemfile +0 -16
- data/gemfiles/sequel_58.gemfile +0 -16
- data/gemfiles/shoryuken_50.gemfile +0 -16
- data/gemfiles/shoryuken_60.gemfile +0 -13
- data/gemfiles/sidekiq_42.gemfile +0 -15
- data/gemfiles/sidekiq_50.gemfile +0 -15
- data/gemfiles/sidekiq_60.gemfile +0 -12
- data/gemfiles/sidekiq_65.gemfile +0 -12
- data/gemfiles/sidekiq_70.gemfile +0 -12
- data/gemfiles/sinatra_14.gemfile +0 -15
- data/gemfiles/sinatra_22.gemfile +0 -12
- data/gemfiles/sinatra_30.gemfile +0 -12
- data/gemfiles/sinatra_40.gemfile +0 -12
- data/instana.gemspec +0 -53
- data/log/.keep +0 -0
- data/sonar-project.properties +0 -9
- data/test/activator_test.rb +0 -50
- data/test/backend/agent_test.rb +0 -80
- data/test/backend/gc_snapshot_test.rb +0 -11
- data/test/backend/host_agent_activation_observer_test.rb +0 -73
- data/test/backend/host_agent_lookup_test.rb +0 -78
- data/test/backend/host_agent_reporting_observer_test.rb +0 -276
- data/test/backend/host_agent_test.rb +0 -89
- data/test/backend/process_info_test.rb +0 -83
- data/test/backend/request_client_test.rb +0 -39
- data/test/backend/serverless_agent_test.rb +0 -83
- data/test/benchmarks/bench_id_generation.rb +0 -15
- data/test/benchmarks/bench_opentracing.rb +0 -16
- data/test/config_test.rb +0 -34
- data/test/frameworks/cuba_test.rb +0 -61
- data/test/frameworks/roda_test.rb +0 -60
- data/test/frameworks/sinatra_test.rb +0 -71
- data/test/instana_test.rb +0 -37
- data/test/instrumentation/aws_test.rb +0 -241
- data/test/instrumentation/dalli_test.rb +0 -325
- data/test/instrumentation/excon_test.rb +0 -204
- data/test/instrumentation/graphql_test.rb +0 -289
- data/test/instrumentation/grpc_test.rb +0 -420
- data/test/instrumentation/mongo_test.rb +0 -68
- data/test/instrumentation/net_http_test.rb +0 -220
- data/test/instrumentation/rack_instrumented_request_test.rb +0 -211
- data/test/instrumentation/rack_test.rb +0 -415
- data/test/instrumentation/rails_action_cable_test.rb +0 -135
- data/test/instrumentation/rails_action_controller_test.rb +0 -218
- data/test/instrumentation/rails_action_mailer_test.rb +0 -66
- data/test/instrumentation/rails_action_view_test.rb +0 -154
- data/test/instrumentation/rails_active_job_test.rb +0 -65
- data/test/instrumentation/rails_active_record_database_missing_test.rb +0 -44
- data/test/instrumentation/rails_active_record_test.rb +0 -116
- data/test/instrumentation/redis_test.rb +0 -152
- data/test/instrumentation/resque_test.rb +0 -188
- data/test/instrumentation/rest_client_test.rb +0 -106
- data/test/instrumentation/sequel_test.rb +0 -111
- data/test/instrumentation/shoryuken_test.rb +0 -47
- data/test/instrumentation/sidekiq-client_test.rb +0 -169
- data/test/instrumentation/sidekiq-worker_test.rb +0 -180
- data/test/secrets_test.rb +0 -112
- data/test/serverless_test.rb +0 -369
- data/test/snapshot/deltable_test.rb +0 -17
- data/test/snapshot/docker_container_test.rb +0 -82
- data/test/snapshot/fargate_container_test.rb +0 -82
- data/test/snapshot/fargate_process_test.rb +0 -35
- data/test/snapshot/fargate_task_test.rb +0 -49
- data/test/snapshot/google_cloud_run_instance_test.rb +0 -74
- data/test/snapshot/google_cloud_run_process_test.rb +0 -33
- data/test/snapshot/lambda_function_test.rb +0 -37
- data/test/snapshot/ruby_process_test.rb +0 -32
- data/test/support/apps/active_record/active_record.rb +0 -24
- data/test/support/apps/grpc/boot.rb +0 -23
- data/test/support/apps/grpc/grpc_server.rb +0 -84
- data/test/support/apps/http_endpoint/boot.rb +0 -28
- data/test/support/apps/rails/boot.rb +0 -219
- data/test/support/apps/rails/models/block.rb +0 -21
- data/test/support/apps/rails/models/block6.rb +0 -21
- data/test/support/apps/resque/boot.rb +0 -5
- data/test/support/apps/resque/jobs/resque_error_job.rb +0 -22
- data/test/support/apps/resque/jobs/resque_fast_job.rb +0 -23
- data/test/support/apps/sidekiq/boot.rb +0 -25
- data/test/support/apps/sidekiq/jobs/sidekiq_job_1.rb +0 -9
- data/test/support/apps/sidekiq/jobs/sidekiq_job_2.rb +0 -10
- data/test/support/apps/sidekiq/worker.rb +0 -37
- data/test/support/helpers.rb +0 -85
- data/test/support/mock_timer.rb +0 -20
- data/test/test_helper.rb +0 -69
- data/test/trace/custom_test.rb +0 -233
- data/test/trace/id_management_test.rb +0 -78
- data/test/trace/instrumented_logger_test.rb +0 -39
- data/test/trace/processor_test.rb +0 -58
- data/test/trace/span_context_test.rb +0 -22
- data/test/trace/span_test.rb +0 -179
- data/test/trace/tracer_async_test.rb +0 -243
- data/test/trace/tracer_provider_test.rb +0 -148
- data/test/trace/tracer_test.rb +0 -363
- data/test/util_test.rb +0 -10
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
@@ -228,106 +228,9 @@ executables: []
|
|
228
228
|
extensions: []
|
229
229
|
extra_rdoc_files: []
|
230
230
|
files:
|
231
|
-
- ".circleci/config.yml"
|
232
|
-
- ".codeclimate.yml"
|
233
|
-
- ".editorconfig"
|
234
|
-
- ".fasterer.yml"
|
235
|
-
- ".github/ISSUE_TEMPLATE/bug.yml"
|
236
|
-
- ".github/ISSUE_TEMPLATE/config.yml"
|
237
|
-
- ".github/workflows/pr_commits_signed_off.yml"
|
238
|
-
- ".github/workflows/release-notification-on-slack.yml"
|
239
|
-
- ".gitignore"
|
240
|
-
- ".rubocop.yml"
|
241
|
-
- ".rubocop_todo.yml"
|
242
|
-
- ".tekton/.currency/docs/report.md"
|
243
|
-
- ".tekton/.currency/resources/requirements.txt"
|
244
|
-
- ".tekton/.currency/resources/table.json"
|
245
|
-
- ".tekton/.currency/scripts/generate_report.py"
|
246
|
-
- ".tekton/README.md"
|
247
|
-
- ".tekton/github-interceptor-secret.yaml"
|
248
|
-
- ".tekton/github-pr-eventlistener.yaml"
|
249
|
-
- ".tekton/github-pr-pipeline.yaml.part"
|
250
|
-
- ".tekton/github-set-status-task.yaml"
|
251
|
-
- ".tekton/github-webhook-ingress.yaml"
|
252
|
-
- ".tekton/pipeline.yaml"
|
253
|
-
- ".tekton/pipelinerun.yaml"
|
254
|
-
- ".tekton/prepuller-restart-service-account.yaml"
|
255
|
-
- ".tekton/ruby-tracer-prepuller-cronjob.yaml"
|
256
|
-
- ".tekton/ruby-tracer-prepuller.yaml"
|
257
|
-
- ".tekton/run_unittests.sh"
|
258
|
-
- ".tekton/scheduled-eventlistener.yaml"
|
259
|
-
- ".tekton/task.yaml"
|
260
|
-
- ".tekton/tekton-triggers-eventlistener-serviceaccount.yaml"
|
261
|
-
- Appraisals
|
262
|
-
- CONTRIBUTING.md
|
263
|
-
- Gemfile
|
264
|
-
- LICENSE
|
265
|
-
- MAINTAINERS.md
|
266
231
|
- README.md
|
267
|
-
- Rakefile
|
268
|
-
- bin/announce_release_on_slack.py
|
269
232
|
- bin/console
|
270
233
|
- bin/setup
|
271
|
-
- docker-compose.yml
|
272
|
-
- download.sh
|
273
|
-
- examples/otel.rb
|
274
|
-
- examples/tracing.rb
|
275
|
-
- extras/license_header.rb
|
276
|
-
- gemfiles/.bundle/config
|
277
|
-
- gemfiles/aws_30.gemfile
|
278
|
-
- gemfiles/aws_60.gemfile
|
279
|
-
- gemfiles/cuba_30.gemfile
|
280
|
-
- gemfiles/cuba_40.gemfile
|
281
|
-
- gemfiles/dalli_20.gemfile
|
282
|
-
- gemfiles/dalli_30.gemfile
|
283
|
-
- gemfiles/dalli_32.gemfile
|
284
|
-
- gemfiles/excon_0100.gemfile
|
285
|
-
- gemfiles/excon_021.gemfile
|
286
|
-
- gemfiles/excon_079.gemfile
|
287
|
-
- gemfiles/excon_100.gemfile
|
288
|
-
- gemfiles/graphql_10.gemfile
|
289
|
-
- gemfiles/graphql_20.gemfile
|
290
|
-
- gemfiles/grpc_10.gemfile
|
291
|
-
- gemfiles/mongo_216.gemfile
|
292
|
-
- gemfiles/mongo_219.gemfile
|
293
|
-
- gemfiles/net_http_01.gemfile
|
294
|
-
- gemfiles/rack_16.gemfile
|
295
|
-
- gemfiles/rack_20.gemfile
|
296
|
-
- gemfiles/rack_30.gemfile
|
297
|
-
- gemfiles/rails_42.gemfile
|
298
|
-
- gemfiles/rails_50.gemfile
|
299
|
-
- gemfiles/rails_52.gemfile
|
300
|
-
- gemfiles/rails_60.gemfile
|
301
|
-
- gemfiles/rails_61.gemfile
|
302
|
-
- gemfiles/rails_70.gemfile
|
303
|
-
- gemfiles/rails_71.gemfile
|
304
|
-
- gemfiles/rails_80.gemfile
|
305
|
-
- gemfiles/redis_40.gemfile
|
306
|
-
- gemfiles/redis_50.gemfile
|
307
|
-
- gemfiles/redis_51.gemfile
|
308
|
-
- gemfiles/resque_122.gemfile
|
309
|
-
- gemfiles/resque_1274_3scale.gemfile
|
310
|
-
- gemfiles/resque_20.gemfile
|
311
|
-
- gemfiles/rest_client_16.gemfile
|
312
|
-
- gemfiles/rest_client_20.gemfile
|
313
|
-
- gemfiles/roda_20.gemfile
|
314
|
-
- gemfiles/roda_30.gemfile
|
315
|
-
- gemfiles/rubocop_162.gemfile
|
316
|
-
- gemfiles/sequel_56.gemfile
|
317
|
-
- gemfiles/sequel_57.gemfile
|
318
|
-
- gemfiles/sequel_58.gemfile
|
319
|
-
- gemfiles/shoryuken_50.gemfile
|
320
|
-
- gemfiles/shoryuken_60.gemfile
|
321
|
-
- gemfiles/sidekiq_42.gemfile
|
322
|
-
- gemfiles/sidekiq_50.gemfile
|
323
|
-
- gemfiles/sidekiq_60.gemfile
|
324
|
-
- gemfiles/sidekiq_65.gemfile
|
325
|
-
- gemfiles/sidekiq_70.gemfile
|
326
|
-
- gemfiles/sinatra_14.gemfile
|
327
|
-
- gemfiles/sinatra_22.gemfile
|
328
|
-
- gemfiles/sinatra_30.gemfile
|
329
|
-
- gemfiles/sinatra_40.gemfile
|
330
|
-
- instana.gemspec
|
331
234
|
- lib/instana.rb
|
332
235
|
- lib/instana/activator.rb
|
333
236
|
- lib/instana/activators/action_cable.rb
|
@@ -420,6 +323,10 @@ files:
|
|
420
323
|
- lib/instana/snapshot/google_cloud_run_process.rb
|
421
324
|
- lib/instana/snapshot/lambda_function.rb
|
422
325
|
- lib/instana/snapshot/ruby_process.rb
|
326
|
+
- lib/instana/span_filtering.rb
|
327
|
+
- lib/instana/span_filtering/condition.rb
|
328
|
+
- lib/instana/span_filtering/configuration.rb
|
329
|
+
- lib/instana/span_filtering/filter_rule.rb
|
423
330
|
- lib/instana/trace.rb
|
424
331
|
- lib/instana/trace/export.rb
|
425
332
|
- lib/instana/trace/processor.rb
|
@@ -431,86 +338,6 @@ files:
|
|
431
338
|
- lib/instana/trace/tracer_provider.rb
|
432
339
|
- lib/instana/util.rb
|
433
340
|
- lib/instana/version.rb
|
434
|
-
- log/.keep
|
435
|
-
- sonar-project.properties
|
436
|
-
- test/activator_test.rb
|
437
|
-
- test/backend/agent_test.rb
|
438
|
-
- test/backend/gc_snapshot_test.rb
|
439
|
-
- test/backend/host_agent_activation_observer_test.rb
|
440
|
-
- test/backend/host_agent_lookup_test.rb
|
441
|
-
- test/backend/host_agent_reporting_observer_test.rb
|
442
|
-
- test/backend/host_agent_test.rb
|
443
|
-
- test/backend/process_info_test.rb
|
444
|
-
- test/backend/request_client_test.rb
|
445
|
-
- test/backend/serverless_agent_test.rb
|
446
|
-
- test/benchmarks/bench_id_generation.rb
|
447
|
-
- test/benchmarks/bench_opentracing.rb
|
448
|
-
- test/config_test.rb
|
449
|
-
- test/frameworks/cuba_test.rb
|
450
|
-
- test/frameworks/roda_test.rb
|
451
|
-
- test/frameworks/sinatra_test.rb
|
452
|
-
- test/instana_test.rb
|
453
|
-
- test/instrumentation/aws_test.rb
|
454
|
-
- test/instrumentation/dalli_test.rb
|
455
|
-
- test/instrumentation/excon_test.rb
|
456
|
-
- test/instrumentation/graphql_test.rb
|
457
|
-
- test/instrumentation/grpc_test.rb
|
458
|
-
- test/instrumentation/mongo_test.rb
|
459
|
-
- test/instrumentation/net_http_test.rb
|
460
|
-
- test/instrumentation/rack_instrumented_request_test.rb
|
461
|
-
- test/instrumentation/rack_test.rb
|
462
|
-
- test/instrumentation/rails_action_cable_test.rb
|
463
|
-
- test/instrumentation/rails_action_controller_test.rb
|
464
|
-
- test/instrumentation/rails_action_mailer_test.rb
|
465
|
-
- test/instrumentation/rails_action_view_test.rb
|
466
|
-
- test/instrumentation/rails_active_job_test.rb
|
467
|
-
- test/instrumentation/rails_active_record_database_missing_test.rb
|
468
|
-
- test/instrumentation/rails_active_record_test.rb
|
469
|
-
- test/instrumentation/redis_test.rb
|
470
|
-
- test/instrumentation/resque_test.rb
|
471
|
-
- test/instrumentation/rest_client_test.rb
|
472
|
-
- test/instrumentation/sequel_test.rb
|
473
|
-
- test/instrumentation/shoryuken_test.rb
|
474
|
-
- test/instrumentation/sidekiq-client_test.rb
|
475
|
-
- test/instrumentation/sidekiq-worker_test.rb
|
476
|
-
- test/secrets_test.rb
|
477
|
-
- test/serverless_test.rb
|
478
|
-
- test/snapshot/deltable_test.rb
|
479
|
-
- test/snapshot/docker_container_test.rb
|
480
|
-
- test/snapshot/fargate_container_test.rb
|
481
|
-
- test/snapshot/fargate_process_test.rb
|
482
|
-
- test/snapshot/fargate_task_test.rb
|
483
|
-
- test/snapshot/google_cloud_run_instance_test.rb
|
484
|
-
- test/snapshot/google_cloud_run_process_test.rb
|
485
|
-
- test/snapshot/lambda_function_test.rb
|
486
|
-
- test/snapshot/ruby_process_test.rb
|
487
|
-
- test/support/apps/active_record/active_record.rb
|
488
|
-
- test/support/apps/grpc/boot.rb
|
489
|
-
- test/support/apps/grpc/grpc_server.rb
|
490
|
-
- test/support/apps/http_endpoint/boot.rb
|
491
|
-
- test/support/apps/rails/boot.rb
|
492
|
-
- test/support/apps/rails/models/block.rb
|
493
|
-
- test/support/apps/rails/models/block6.rb
|
494
|
-
- test/support/apps/resque/boot.rb
|
495
|
-
- test/support/apps/resque/jobs/resque_error_job.rb
|
496
|
-
- test/support/apps/resque/jobs/resque_fast_job.rb
|
497
|
-
- test/support/apps/sidekiq/boot.rb
|
498
|
-
- test/support/apps/sidekiq/jobs/sidekiq_job_1.rb
|
499
|
-
- test/support/apps/sidekiq/jobs/sidekiq_job_2.rb
|
500
|
-
- test/support/apps/sidekiq/worker.rb
|
501
|
-
- test/support/helpers.rb
|
502
|
-
- test/support/mock_timer.rb
|
503
|
-
- test/test_helper.rb
|
504
|
-
- test/trace/custom_test.rb
|
505
|
-
- test/trace/id_management_test.rb
|
506
|
-
- test/trace/instrumented_logger_test.rb
|
507
|
-
- test/trace/processor_test.rb
|
508
|
-
- test/trace/span_context_test.rb
|
509
|
-
- test/trace/span_test.rb
|
510
|
-
- test/trace/tracer_async_test.rb
|
511
|
-
- test/trace/tracer_provider_test.rb
|
512
|
-
- test/trace/tracer_test.rb
|
513
|
-
- test/util_test.rb
|
514
341
|
homepage: https://www.instana.com/
|
515
342
|
licenses:
|
516
343
|
- MIT
|
@@ -533,85 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
533
360
|
- !ruby/object:Gem::Version
|
534
361
|
version: '0'
|
535
362
|
requirements: []
|
536
|
-
rubygems_version: 3.7.
|
363
|
+
rubygems_version: 3.7.2
|
537
364
|
specification_version: 4
|
538
365
|
summary: Ruby Distributed Tracing & Metrics Sensor for Instana
|
539
|
-
test_files:
|
540
|
-
- test/activator_test.rb
|
541
|
-
- test/backend/agent_test.rb
|
542
|
-
- test/backend/gc_snapshot_test.rb
|
543
|
-
- test/backend/host_agent_activation_observer_test.rb
|
544
|
-
- test/backend/host_agent_lookup_test.rb
|
545
|
-
- test/backend/host_agent_reporting_observer_test.rb
|
546
|
-
- test/backend/host_agent_test.rb
|
547
|
-
- test/backend/process_info_test.rb
|
548
|
-
- test/backend/request_client_test.rb
|
549
|
-
- test/backend/serverless_agent_test.rb
|
550
|
-
- test/benchmarks/bench_id_generation.rb
|
551
|
-
- test/benchmarks/bench_opentracing.rb
|
552
|
-
- test/config_test.rb
|
553
|
-
- test/frameworks/cuba_test.rb
|
554
|
-
- test/frameworks/roda_test.rb
|
555
|
-
- test/frameworks/sinatra_test.rb
|
556
|
-
- test/instana_test.rb
|
557
|
-
- test/instrumentation/aws_test.rb
|
558
|
-
- test/instrumentation/dalli_test.rb
|
559
|
-
- test/instrumentation/excon_test.rb
|
560
|
-
- test/instrumentation/graphql_test.rb
|
561
|
-
- test/instrumentation/grpc_test.rb
|
562
|
-
- test/instrumentation/mongo_test.rb
|
563
|
-
- test/instrumentation/net_http_test.rb
|
564
|
-
- test/instrumentation/rack_instrumented_request_test.rb
|
565
|
-
- test/instrumentation/rack_test.rb
|
566
|
-
- test/instrumentation/rails_action_cable_test.rb
|
567
|
-
- test/instrumentation/rails_action_controller_test.rb
|
568
|
-
- test/instrumentation/rails_action_mailer_test.rb
|
569
|
-
- test/instrumentation/rails_action_view_test.rb
|
570
|
-
- test/instrumentation/rails_active_job_test.rb
|
571
|
-
- test/instrumentation/rails_active_record_database_missing_test.rb
|
572
|
-
- test/instrumentation/rails_active_record_test.rb
|
573
|
-
- test/instrumentation/redis_test.rb
|
574
|
-
- test/instrumentation/resque_test.rb
|
575
|
-
- test/instrumentation/rest_client_test.rb
|
576
|
-
- test/instrumentation/sequel_test.rb
|
577
|
-
- test/instrumentation/shoryuken_test.rb
|
578
|
-
- test/instrumentation/sidekiq-client_test.rb
|
579
|
-
- test/instrumentation/sidekiq-worker_test.rb
|
580
|
-
- test/secrets_test.rb
|
581
|
-
- test/serverless_test.rb
|
582
|
-
- test/snapshot/deltable_test.rb
|
583
|
-
- test/snapshot/docker_container_test.rb
|
584
|
-
- test/snapshot/fargate_container_test.rb
|
585
|
-
- test/snapshot/fargate_process_test.rb
|
586
|
-
- test/snapshot/fargate_task_test.rb
|
587
|
-
- test/snapshot/google_cloud_run_instance_test.rb
|
588
|
-
- test/snapshot/google_cloud_run_process_test.rb
|
589
|
-
- test/snapshot/lambda_function_test.rb
|
590
|
-
- test/snapshot/ruby_process_test.rb
|
591
|
-
- test/support/apps/active_record/active_record.rb
|
592
|
-
- test/support/apps/grpc/boot.rb
|
593
|
-
- test/support/apps/grpc/grpc_server.rb
|
594
|
-
- test/support/apps/http_endpoint/boot.rb
|
595
|
-
- test/support/apps/rails/boot.rb
|
596
|
-
- test/support/apps/rails/models/block.rb
|
597
|
-
- test/support/apps/rails/models/block6.rb
|
598
|
-
- test/support/apps/resque/boot.rb
|
599
|
-
- test/support/apps/resque/jobs/resque_error_job.rb
|
600
|
-
- test/support/apps/resque/jobs/resque_fast_job.rb
|
601
|
-
- test/support/apps/sidekiq/boot.rb
|
602
|
-
- test/support/apps/sidekiq/jobs/sidekiq_job_1.rb
|
603
|
-
- test/support/apps/sidekiq/jobs/sidekiq_job_2.rb
|
604
|
-
- test/support/apps/sidekiq/worker.rb
|
605
|
-
- test/support/helpers.rb
|
606
|
-
- test/support/mock_timer.rb
|
607
|
-
- test/test_helper.rb
|
608
|
-
- test/trace/custom_test.rb
|
609
|
-
- test/trace/id_management_test.rb
|
610
|
-
- test/trace/instrumented_logger_test.rb
|
611
|
-
- test/trace/processor_test.rb
|
612
|
-
- test/trace/span_context_test.rb
|
613
|
-
- test/trace/span_test.rb
|
614
|
-
- test/trace/tracer_async_test.rb
|
615
|
-
- test/trace/tracer_provider_test.rb
|
616
|
-
- test/trace/tracer_test.rb
|
617
|
-
- test/util_test.rb
|
366
|
+
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,361 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
|
3
|
-
library_gemfile: &library_gemfile
|
4
|
-
gemfile:
|
5
|
-
- "./gemfiles/aws_30.gemfile"
|
6
|
-
- "./gemfiles/aws_60.gemfile"
|
7
|
-
- "./gemfiles/cuba_30.gemfile"
|
8
|
-
- "./gemfiles/cuba_40.gemfile"
|
9
|
-
- "./gemfiles/dalli_20.gemfile"
|
10
|
-
- "./gemfiles/dalli_30.gemfile"
|
11
|
-
- "./gemfiles/dalli_32.gemfile"
|
12
|
-
- "./gemfiles/excon_079.gemfile"
|
13
|
-
- "./gemfiles/excon_0100.gemfile"
|
14
|
-
- "./gemfiles/excon_100.gemfile"
|
15
|
-
- "./gemfiles/graphql_10.gemfile"
|
16
|
-
- "./gemfiles/graphql_20.gemfile"
|
17
|
-
- "./gemfiles/grpc_10.gemfile"
|
18
|
-
- "./gemfiles/net_http_01.gemfile"
|
19
|
-
- "./gemfiles/rack_20.gemfile"
|
20
|
-
- "./gemfiles/rack_30.gemfile"
|
21
|
-
- "./gemfiles/redis_40.gemfile"
|
22
|
-
- "./gemfiles/redis_50.gemfile"
|
23
|
-
- "./gemfiles/rest_client_20.gemfile"
|
24
|
-
- "./gemfiles/resque_122.gemfile"
|
25
|
-
- "./gemfiles/resque_20.gemfile"
|
26
|
-
- "./gemfiles/roda_20.gemfile"
|
27
|
-
- "./gemfiles/roda_30.gemfile"
|
28
|
-
- "./gemfiles/sidekiq_60.gemfile"
|
29
|
-
- "./gemfiles/sidekiq_65.gemfile"
|
30
|
-
- "./gemfiles/sidekiq_70.gemfile"
|
31
|
-
- "./gemfiles/sinatra_22.gemfile"
|
32
|
-
- "./gemfiles/sinatra_30.gemfile"
|
33
|
-
- "./gemfiles/sinatra_40.gemfile"
|
34
|
-
- "./gemfiles/shoryuken_50.gemfile"
|
35
|
-
- "./gemfiles/shoryuken_60.gemfile"
|
36
|
-
- "./gemfiles/mongo_216.gemfile"
|
37
|
-
- "./gemfiles/mongo_219.gemfile"
|
38
|
-
executors:
|
39
|
-
ruby_33_lint:
|
40
|
-
docker:
|
41
|
-
- image: public.ecr.aws/docker/library/ruby:3.4
|
42
|
-
base:
|
43
|
-
parameters:
|
44
|
-
ruby_version:
|
45
|
-
type: string
|
46
|
-
default: "3.1"
|
47
|
-
docker:
|
48
|
-
- image: public.ecr.aws/docker/library/ruby:<<parameters.ruby_version>>
|
49
|
-
environment:
|
50
|
-
MEMCACHED_HOST: '127.0.0.1:11211'
|
51
|
-
REDIS_URL: 'redis://127.0.0.1:6379'
|
52
|
-
DATABASE_URL: 'sqlite3::memory:'
|
53
|
-
- image: public.ecr.aws/docker/library/memcached
|
54
|
-
- image: public.ecr.aws/docker/library/redis
|
55
|
-
- image: public.ecr.aws/aws-dynamodb-local/aws-dynamodb-local
|
56
|
-
- image: quay.io/minio/minio
|
57
|
-
command: ["server", "/data"]
|
58
|
-
- image: public.ecr.aws/redbox-public/s12v/sns:latest
|
59
|
-
- image: public.ecr.aws/sprig/elasticmq-native
|
60
|
-
- image: public.ecr.aws/docker/library/mongo:5-focal
|
61
|
-
mysql2:
|
62
|
-
parameters:
|
63
|
-
ruby_version:
|
64
|
-
type: string
|
65
|
-
default: "3.1"
|
66
|
-
docker:
|
67
|
-
- image: public.ecr.aws/docker/library/ruby:<<parameters.ruby_version>>
|
68
|
-
environment:
|
69
|
-
DATABASE_URL: "mysql2://root@127.0.0.1:3306/ci_test"
|
70
|
-
- image: public.ecr.aws/docker/library/mariadb
|
71
|
-
environment:
|
72
|
-
MYSQL_DATABASE: 'ci_test'
|
73
|
-
MYSQL_USER: 'root'
|
74
|
-
MYSQL_PASSWORD: ''
|
75
|
-
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
76
|
-
MYSQL_ROOT_PASSWORD: ''
|
77
|
-
MYSQL_ROOT_HOST: '%'
|
78
|
-
postgres:
|
79
|
-
parameters:
|
80
|
-
ruby_version:
|
81
|
-
type: string
|
82
|
-
default: "3.1"
|
83
|
-
docker:
|
84
|
-
- image: public.ecr.aws/docker/library/ruby:<<parameters.ruby_version>>
|
85
|
-
environment:
|
86
|
-
DATABASE_URL: "postgres://postgres:test@127.0.0.1:5432/ci_test"
|
87
|
-
- image: public.ecr.aws/docker/library/postgres
|
88
|
-
environment:
|
89
|
-
POSTGRES_PASSWORD: 'test'
|
90
|
-
POSTGRES_DB: 'ci_test'
|
91
|
-
commands:
|
92
|
-
setup:
|
93
|
-
steps:
|
94
|
-
- run:
|
95
|
-
name: Update RubyGems
|
96
|
-
command: |
|
97
|
-
gem update --system
|
98
|
-
gem --version
|
99
|
-
- run:
|
100
|
-
name: Install Bundler
|
101
|
-
command: |
|
102
|
-
gem install bundler
|
103
|
-
bundler --version
|
104
|
-
bundle config set path './vendor/bundle'
|
105
|
-
- run:
|
106
|
-
name: Install Dependencies
|
107
|
-
command: |
|
108
|
-
bundle check || bundle install
|
109
|
-
run_sonarqube:
|
110
|
-
steps:
|
111
|
-
- run:
|
112
|
-
name: Install Java for the SonarQube tool
|
113
|
-
command: |
|
114
|
-
sudo apt-get update
|
115
|
-
sudo apt-get install openjdk-11-jdk
|
116
|
-
- run:
|
117
|
-
name: Install dependencies for coverage merge
|
118
|
-
command: |
|
119
|
-
bundler --version
|
120
|
-
bundle config set path './vendor/bundle'
|
121
|
-
bundle check || bundle install
|
122
|
-
environment:
|
123
|
-
BUNDLE_GEMFILE: './Gemfile'
|
124
|
-
- run:
|
125
|
-
name: Fetching partial coverage reports from workflow jobs
|
126
|
-
command: |
|
127
|
-
./download.sh
|
128
|
-
- run:
|
129
|
-
name: Merging partial coverage reports for reporting
|
130
|
-
command: |
|
131
|
-
bundle exec rake coverage:merge_reports --trace
|
132
|
-
environment:
|
133
|
-
BUNDLE_GEMFILE: './Gemfile'
|
134
|
-
- run:
|
135
|
-
name: Run SonarQube to report the coverage
|
136
|
-
command: |
|
137
|
-
wget -O /tmp/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.1.3023.zip
|
138
|
-
unzip -d /tmp /tmp/sonar-scanner-cli.zip
|
139
|
-
if [[ -n "${CIRCLE_PR_NUMBER}" ]]; then
|
140
|
-
/tmp/sonar-scanner-4.8.1.3023/bin/sonar-scanner \
|
141
|
-
-Dsonar.host.url="${SONARQUBE_URL}" \
|
142
|
-
-Dsonar.login="${SONARQUBE_LOGIN}" \
|
143
|
-
-Dsonar.pullrequest.key="${CIRCLE_PR_NUMBER}" \
|
144
|
-
-Dsonar.pullrequest.branch="${CIRCLE_BRANCH}"
|
145
|
-
else
|
146
|
-
/tmp/sonar-scanner-4.8.1.3023/bin/sonar-scanner \
|
147
|
-
-Dsonar.host.url="${SONARQUBE_URL}" \
|
148
|
-
-Dsonar.login="${SONARQUBE_LOGIN}" \
|
149
|
-
-Dsonar.branch.name="${CIRCLE_BRANCH}"
|
150
|
-
fi
|
151
|
-
- store_artifacts:
|
152
|
-
path: partial_coverage_results
|
153
|
-
- store_artifacts:
|
154
|
-
path: coverage
|
155
|
-
run_tests:
|
156
|
-
steps:
|
157
|
-
- run:
|
158
|
-
name: Run Tests
|
159
|
-
command: |
|
160
|
-
mkdir _junit
|
161
|
-
bundle exec rake
|
162
|
-
- store_test_results:
|
163
|
-
path: ~/project/_junit
|
164
|
-
- store_artifacts:
|
165
|
-
path: coverage
|
166
|
-
run_rubocop:
|
167
|
-
steps:
|
168
|
-
- run:
|
169
|
-
name: Run Tests
|
170
|
-
command: |
|
171
|
-
bundle exec rubocop
|
172
|
-
publish_gem:
|
173
|
-
steps:
|
174
|
-
- run:
|
175
|
-
name: Setup Access
|
176
|
-
command: |
|
177
|
-
mkdir -p ~/.gem
|
178
|
-
echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
|
179
|
-
chmod 0600 ~/.gem/credentials
|
180
|
-
- run:
|
181
|
-
name: Publish Gem
|
182
|
-
command: |
|
183
|
-
bundle exec rake release[origin]
|
184
|
-
jobs:
|
185
|
-
test_core:
|
186
|
-
parameters:
|
187
|
-
stack:
|
188
|
-
type: string
|
189
|
-
default: "base"
|
190
|
-
ruby_version:
|
191
|
-
type: string
|
192
|
-
default: "3.1"
|
193
|
-
executor:
|
194
|
-
name: <<parameters.stack>>
|
195
|
-
ruby_version: <<parameters.ruby_version>>
|
196
|
-
steps:
|
197
|
-
- checkout
|
198
|
-
- setup
|
199
|
-
- run_tests
|
200
|
-
test_apprisal:
|
201
|
-
parameters:
|
202
|
-
stack:
|
203
|
-
type: string
|
204
|
-
default: "base"
|
205
|
-
gemfile:
|
206
|
-
type: string
|
207
|
-
default: "./gemfiles/aws_30.gemfile"
|
208
|
-
ruby_version:
|
209
|
-
type: string
|
210
|
-
default: "3.1"
|
211
|
-
executor:
|
212
|
-
name: <<parameters.stack>>
|
213
|
-
ruby_version: <<parameters.ruby_version>>
|
214
|
-
environment:
|
215
|
-
APPRAISAL_INITIALIZED: "1"
|
216
|
-
BUNDLE_GEMFILE: << parameters.gemfile >>
|
217
|
-
steps:
|
218
|
-
- checkout
|
219
|
-
- setup
|
220
|
-
- run_tests
|
221
|
-
lint:
|
222
|
-
executor: ruby_33_lint
|
223
|
-
environment:
|
224
|
-
BUNDLE_GEMFILE: "./gemfiles/rubocop_162.gemfile"
|
225
|
-
steps:
|
226
|
-
- checkout
|
227
|
-
- run:
|
228
|
-
name: Install Dependencies
|
229
|
-
command: |
|
230
|
-
bundle check || bundle install
|
231
|
-
- run_rubocop
|
232
|
-
report_coverage:
|
233
|
-
executor: base
|
234
|
-
steps:
|
235
|
-
- checkout
|
236
|
-
# - run_sonarqube
|
237
|
-
publish:
|
238
|
-
executor:
|
239
|
-
name: "base"
|
240
|
-
ruby_version: "3.4"
|
241
|
-
steps:
|
242
|
-
- checkout
|
243
|
-
- setup
|
244
|
-
- publish_gem
|
245
|
-
workflows:
|
246
|
-
publish:
|
247
|
-
jobs:
|
248
|
-
- publish:
|
249
|
-
filters:
|
250
|
-
branches:
|
251
|
-
ignore: /.*/
|
252
|
-
tags:
|
253
|
-
only: /^v.*/
|
254
|
-
core:
|
255
|
-
jobs:
|
256
|
-
- lint
|
257
|
-
- test_core:
|
258
|
-
name: "test_core-ruby-<<matrix.stack>>-<<matrix.ruby_version>>"
|
259
|
-
matrix:
|
260
|
-
parameters:
|
261
|
-
stack:
|
262
|
-
- base
|
263
|
-
ruby_version:
|
264
|
-
- "3.1"
|
265
|
-
- "3.2"
|
266
|
-
- "3.3"
|
267
|
-
- "3.4"
|
268
|
-
- "3.5.0-preview1"
|
269
|
-
libraries_ruby_31_32:
|
270
|
-
jobs:
|
271
|
-
- test_apprisal:
|
272
|
-
name: "test_apprisal-<<matrix.gemfile>>-ruby-<<matrix.stack>>-<<matrix.ruby_version>>"
|
273
|
-
matrix:
|
274
|
-
parameters:
|
275
|
-
stack:
|
276
|
-
- base
|
277
|
-
<<: *library_gemfile
|
278
|
-
ruby_version:
|
279
|
-
- "3.1"
|
280
|
-
- "3.2"
|
281
|
-
libraries_ruby_33_35:
|
282
|
-
jobs:
|
283
|
-
- test_apprisal:
|
284
|
-
name: "test_apprisal-<<matrix.gemfile>>-ruby-<<matrix.stack>>-<<matrix.ruby_version>>"
|
285
|
-
matrix:
|
286
|
-
parameters:
|
287
|
-
stack:
|
288
|
-
- base
|
289
|
-
<<: *library_gemfile
|
290
|
-
ruby_version:
|
291
|
-
- "3.3"
|
292
|
-
- "3.4"
|
293
|
-
- "3.5.0-preview1"
|
294
|
-
# Currently compiling the native extensions for `grpc`
|
295
|
-
# exceeds an internal RAM and/or CPU limit of CircleCI executor,
|
296
|
-
# and the job gets terminated with:
|
297
|
-
# `Received "killed" signal`
|
298
|
-
# Hence we exclude it here for the time being.
|
299
|
-
# TODO: Remove this exclusion as soon as pre-built binaries are available
|
300
|
-
# on https://rubygems.org/gems/grpc/versions
|
301
|
-
exclude:
|
302
|
-
- stack: base
|
303
|
-
ruby_version: "3.5.0-preview1"
|
304
|
-
gemfile: "./gemfiles/grpc_10.gemfile"
|
305
|
-
rails_ruby_31_35:
|
306
|
-
jobs:
|
307
|
-
- test_apprisal:
|
308
|
-
name: "test_apprisal-rails-<<matrix.gemfile>>-ruby-<<matrix.stack>>-<<matrix.ruby_version>>"
|
309
|
-
matrix:
|
310
|
-
parameters:
|
311
|
-
stack:
|
312
|
-
- base
|
313
|
-
- mysql2
|
314
|
-
- postgres
|
315
|
-
gemfile:
|
316
|
-
- "./gemfiles/rails_61.gemfile"
|
317
|
-
- "./gemfiles/rails_70.gemfile"
|
318
|
-
- "./gemfiles/rails_71.gemfile"
|
319
|
-
ruby_version:
|
320
|
-
- "3.1"
|
321
|
-
- "3.2"
|
322
|
-
- "3.3"
|
323
|
-
- "3.4"
|
324
|
-
- "3.5.0-preview1"
|
325
|
-
rails8_ruby_33_35:
|
326
|
-
jobs:
|
327
|
-
- test_apprisal:
|
328
|
-
name: "test_apprisal-rails-8-<<matrix.gemfile>>-ruby-<<matrix.stack>>-<<matrix.ruby_version>>"
|
329
|
-
matrix:
|
330
|
-
parameters:
|
331
|
-
stack:
|
332
|
-
- base
|
333
|
-
- mysql2
|
334
|
-
- postgres
|
335
|
-
gemfile:
|
336
|
-
- "./gemfiles/rails_80.gemfile"
|
337
|
-
ruby_version:
|
338
|
-
- "3.2"
|
339
|
-
- "3.3"
|
340
|
-
- "3.4"
|
341
|
-
sequel:
|
342
|
-
jobs:
|
343
|
-
- test_apprisal:
|
344
|
-
name: "test_apprisal-sequel-<<matrix.gemfile>>-ruby-<<matrix.stack>>-<<matrix.ruby_version>>"
|
345
|
-
matrix:
|
346
|
-
parameters:
|
347
|
-
stack:
|
348
|
-
- base
|
349
|
-
- mysql2
|
350
|
-
gemfile:
|
351
|
-
- "./gemfiles/sequel_56.gemfile"
|
352
|
-
- "./gemfiles/sequel_57.gemfile"
|
353
|
-
- "./gemfiles/sequel_58.gemfile"
|
354
|
-
ruby_version:
|
355
|
-
- "3.1"
|
356
|
-
- "3.2"
|
357
|
-
- "3.3"
|
358
|
-
- "3.5.0-preview1"
|
359
|
-
report_coverage:
|
360
|
-
jobs:
|
361
|
-
- report_coverage
|
data/.codeclimate.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
version: "2"
|
2
|
-
checks:
|
3
|
-
complex-logic:
|
4
|
-
config:
|
5
|
-
threshold: 12
|
6
|
-
file-lines:
|
7
|
-
config:
|
8
|
-
threshold: 325
|
9
|
-
method-complexity:
|
10
|
-
config:
|
11
|
-
threshold: 12
|
12
|
-
method-lines:
|
13
|
-
config:
|
14
|
-
threshold: 50
|
15
|
-
method-count:
|
16
|
-
config:
|
17
|
-
threshold: 30
|
18
|
-
|
19
|
-
plugins:
|
20
|
-
fixme:
|
21
|
-
enabled: true
|
22
|
-
rubocop:
|
23
|
-
enabled: true
|