instana 2.0.0 → 2.2.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/instrumentation/instrumented_request.rb +2 -0
- data/lib/instana/instrumentation/net-http.rb +2 -1
- data/lib/instana/instrumentation/rack.rb +86 -66
- 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/trace/span_context.rb +10 -2
- data/lib/instana/trace/tracer.rb +0 -21
- data/lib/instana/util.rb +13 -0
- 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
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
|
data/.editorconfig
DELETED
data/.fasterer.yml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
speedups:
|
|
2
|
-
rescue_vs_respond_to: true
|
|
3
|
-
module_eval: true
|
|
4
|
-
shuffle_first_vs_sample: true
|
|
5
|
-
for_loop_vs_each: true
|
|
6
|
-
each_with_index_vs_while: false
|
|
7
|
-
map_flatten_vs_flat_map: true
|
|
8
|
-
reverse_each_vs_reverse_each: true
|
|
9
|
-
select_first_vs_detect: true
|
|
10
|
-
sort_vs_sort_by: true
|
|
11
|
-
fetch_with_argument_vs_block: true
|
|
12
|
-
keys_each_vs_each_key: true
|
|
13
|
-
hash_merge_bang_vs_hash_brackets: true
|
|
14
|
-
block_vs_symbol_to_proc: true
|
|
15
|
-
proc_call_vs_yield: true
|
|
16
|
-
gsub_vs_tr: true
|
|
17
|
-
select_last_vs_reverse_detect: true
|
|
18
|
-
getter_vs_attr_reader: true
|
|
19
|
-
setter_vs_attr_writer: true
|
|
20
|
-
|
|
21
|
-
exclude_paths:
|
|
22
|
-
- 'vendor/**/*.rb'
|
|
23
|
-
- 'db/schema.rb'
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: Bug Report
|
|
2
|
-
description: File a bug report
|
|
3
|
-
title: "[Bug]: "
|
|
4
|
-
labels: [bug]
|
|
5
|
-
body:
|
|
6
|
-
- type: markdown
|
|
7
|
-
attributes:
|
|
8
|
-
value: |
|
|
9
|
-
Thank you for taking the time to fill out this report. Remember that these issues are public and if you need to discuss implementation specific issues securely, please [use our support portal](https://www.ibm.com/mysupport).
|
|
10
|
-
- type: textarea
|
|
11
|
-
id: problem-description
|
|
12
|
-
attributes:
|
|
13
|
-
label: Problem Description
|
|
14
|
-
description: What was the issue that caused you to file this bug?
|
|
15
|
-
validations:
|
|
16
|
-
required: true
|
|
17
|
-
- type: textarea
|
|
18
|
-
id: mcve
|
|
19
|
-
attributes:
|
|
20
|
-
label: Minimal, Complete, Verifiable, Example
|
|
21
|
-
description: Can you provide steps needed to reproduce this issue outside of your application?
|
|
22
|
-
validations:
|
|
23
|
-
required: false
|
|
24
|
-
- type: textarea
|
|
25
|
-
id: gemfile-lock
|
|
26
|
-
attributes:
|
|
27
|
-
label: Gemfile.lock
|
|
28
|
-
description: Please paste the contents of the Gemfile.lock for the application that was affected by this bug.
|
|
29
|
-
render: shell
|
|
30
|
-
validations:
|
|
31
|
-
required: true
|
|
32
|
-
- type: textarea
|
|
33
|
-
id: ruby-version
|
|
34
|
-
attributes:
|
|
35
|
-
label: Ruby Version
|
|
36
|
-
description: What version of Ruby was the application running under when it encountered this bug?
|
|
37
|
-
render: shell
|
|
38
|
-
validations:
|
|
39
|
-
required: true
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
blank_issues_enabled: false
|
|
2
|
-
contact_links:
|
|
3
|
-
- name: Instana Support Portal
|
|
4
|
-
url: https://www.ibm.com/mysupport
|
|
5
|
-
about: Please ask questions related to your installation there.
|
|
6
|
-
- name: Feature Requests
|
|
7
|
-
 url: https://automation-management.ideas.ibm.com/?project=INSTANA
|
|
8
|
-
 about: Please file feature requests there (or search for existing requests and vote for them). Do not use Github issues for feature requests.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
name: Find signed commits
|
|
2
|
-
on:
|
|
3
|
-
pull_request_target:
|
|
4
|
-
branches:
|
|
5
|
-
- master # or the name of your main branch
|
|
6
|
-
jobs:
|
|
7
|
-
check-sign-off:
|
|
8
|
-
name: Write comment if unsigned commits found
|
|
9
|
-
env:
|
|
10
|
-
FORCE_COLOR: 1
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- uses: live627/check-pr-signoff-action@v1
|
|
15
|
-
with:
|
|
16
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: Slack Post
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch: # Manual trigger
|
|
4
|
-
inputs:
|
|
5
|
-
github_ref:
|
|
6
|
-
description: 'Manually provided value for GITHUB_RELEASE_TAG of a release'
|
|
7
|
-
required: true
|
|
8
|
-
type: string
|
|
9
|
-
|
|
10
|
-
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
|
|
11
|
-
release:
|
|
12
|
-
types: [published]
|
|
13
|
-
jobs:
|
|
14
|
-
build:
|
|
15
|
-
name: Slack Post
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
steps:
|
|
18
|
-
- name: 'Checkout the needed file only ./bin/announce_release_on_slack.py'
|
|
19
|
-
uses: actions/checkout@v3
|
|
20
|
-
- run: |
|
|
21
|
-
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
|
|
22
|
-
export GITHUB_RELEASE_TAG=${{ inputs.github_ref }}
|
|
23
|
-
else # release event
|
|
24
|
-
export GITHUB_RELEASE_TAG=$(basename ${GITHUB_REF})
|
|
25
|
-
fi
|
|
26
|
-
echo "New release published ${GITHUB_RELEASE_TAG}"
|
|
27
|
-
pip3 install PyGithub
|
|
28
|
-
echo $PWD
|
|
29
|
-
ls -lah
|
|
30
|
-
./bin/announce_release_on_slack.py
|
|
31
|
-
env:
|
|
32
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
|
34
|
-
SLACK_CHANNEL_ID_RELEASES: ${{ secrets.SLACK_CHANNEL_ID_RELEASES }}
|
data/.gitignore
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/.bundle/
|
|
2
|
-
/.yardoc
|
|
3
|
-
/Gemfile.lock
|
|
4
|
-
/_yardoc/
|
|
5
|
-
/coverage/
|
|
6
|
-
/doc/
|
|
7
|
-
/pkg/
|
|
8
|
-
/spec/reports/
|
|
9
|
-
/tmp/
|
|
10
|
-
/log/
|
|
11
|
-
.ruby-version
|
|
12
|
-
gemfiles/*.lock
|
|
13
|
-
/test/tmp/*.pid
|
|
14
|
-
.idea
|
|
15
|
-
*.iml
|
|
16
|
-
.DS_Store
|
|
17
|
-
vendor/bundle
|
|
18
|
-
gemfiles/vendor/bundle
|
|
19
|
-
*.log
|
data/.rubocop.yml
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
|
2
|
-
|
|
3
|
-
require:
|
|
4
|
-
- ./extras/license_header.rb
|
|
5
|
-
|
|
6
|
-
# Remove when we remove .rubocop_todo.yml
|
|
7
|
-
AllCops:
|
|
8
|
-
NewCops: disable
|
|
9
|
-
|
|
10
|
-
Metrics/PerceivedComplexity:
|
|
11
|
-
Max: 20
|
|
12
|
-
|
|
13
|
-
# Broken on 1.9
|
|
14
|
-
Style/HashSyntax:
|
|
15
|
-
Enabled: false
|
|
16
|
-
|
|
17
|
-
Style/EvalWithLocation:
|
|
18
|
-
Enabled: false
|
|
19
|
-
|
|
20
|
-
Style/NilComparison:
|
|
21
|
-
Enabled: false
|
|
22
|
-
|
|
23
|
-
Style/SoleNestedConditional:
|
|
24
|
-
Enabled: false
|
|
25
|
-
|
|
26
|
-
# Ruby 2.1 compatibility
|
|
27
|
-
Style/SafeNavigation:
|
|
28
|
-
Enabled: false
|
|
29
|
-
|
|
30
|
-
Style/SymbolProc:
|
|
31
|
-
Enabled: false
|
|
32
|
-
|
|
33
|
-
Style/MultilineBlockChain:
|
|
34
|
-
Enabled: false
|