instana 1.217.1 → 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/README.md +2 -1
- data/lib/instana/base.rb +4 -2
- data/lib/instana/instrumentation/action_cable.rb +8 -4
- data/lib/instana/instrumentation/action_controller.rb +2 -4
- data/lib/instana/instrumentation/action_mailer.rb +1 -1
- data/lib/instana/instrumentation/action_view.rb +4 -4
- data/lib/instana/instrumentation/active_job.rb +20 -5
- data/lib/instana/instrumentation/active_record.rb +1 -1
- data/lib/instana/instrumentation/aws_sdk_dynamodb.rb +1 -1
- data/lib/instana/instrumentation/aws_sdk_lambda.rb +1 -1
- data/lib/instana/instrumentation/aws_sdk_s3.rb +1 -1
- data/lib/instana/instrumentation/aws_sdk_sns.rb +1 -1
- data/lib/instana/instrumentation/aws_sdk_sqs.rb +1 -1
- data/lib/instana/instrumentation/dalli.rb +1 -1
- data/lib/instana/instrumentation/excon.rb +2 -2
- data/lib/instana/instrumentation/graphql.rb +3 -3
- data/lib/instana/instrumentation/grpc.rb +14 -13
- data/lib/instana/instrumentation/mongo.rb +3 -3
- data/lib/instana/instrumentation/net-http.rb +5 -4
- data/lib/instana/instrumentation/rack.rb +36 -4
- data/lib/instana/instrumentation/redis.rb +1 -1
- data/lib/instana/instrumentation/resque.rb +10 -8
- data/lib/instana/instrumentation/rest-client.rb +4 -4
- data/lib/instana/instrumentation/sequel.rb +3 -3
- data/lib/instana/instrumentation/shoryuken.rb +4 -1
- data/lib/instana/instrumentation/sidekiq-client.rb +21 -19
- data/lib/instana/instrumentation/sidekiq-worker.rb +22 -21
- data/lib/instana/instrumented_logger.rb +1 -1
- data/lib/instana/samplers/result.rb +32 -0
- data/lib/instana/samplers/samplers.rb +76 -0
- data/lib/instana/serverless.rb +4 -2
- data/lib/instana/setup.rb +5 -5
- 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/export.rb +36 -0
- data/lib/instana/{tracing → trace}/processor.rb +19 -15
- data/lib/instana/trace/span.rb +534 -0
- data/lib/instana/{tracing → trace}/span_context.rb +17 -8
- data/lib/instana/trace/span_kind.rb +51 -0
- data/lib/instana/trace/span_limits.rb +63 -0
- data/lib/instana/{tracer.rb → trace/tracer.rb} +106 -54
- data/lib/instana/trace/tracer_provider.rb +198 -0
- data/lib/instana/trace.rb +74 -0
- data/lib/instana/util.rb +11 -0
- data/lib/instana/version.rb +1 -1
- metadata +89 -267
- data/.circleci/config.yml +0 -485
- 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 -136
- 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 -571
- data/.tekton/pipelinerun.yaml +0 -21
- data/.tekton/ruby-tracer-prepuller.yaml +0 -87
- data/.tekton/run_unittests.sh +0 -87
- data/.tekton/scheduled-eventlistener.yaml +0 -108
- data/.tekton/task.yaml +0 -449
- data/.tekton/tekton-triggers-eventlistener-serviceaccount.yaml +0 -29
- data/Appraisals +0 -124
- data/CONTRIBUTING.md +0 -86
- data/Gemfile +0 -17
- 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/opentracing.rb +0 -35
- data/examples/tracing.rb +0 -84
- 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 -20
- data/gemfiles/rails_70.gemfile +0 -17
- 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 -48
- data/lib/instana/open_tracing/carrier.rb +0 -7
- data/lib/instana/open_tracing/instana_tracer.rb +0 -99
- data/lib/instana/tracing/span.rb +0 -431
- data/lib/opentracing.rb +0 -32
- 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 -45
- data/test/instrumentation/rails_active_record_test.rb +0 -115
- data/test/instrumentation/redis_test.rb +0 -152
- data/test/instrumentation/resque_test.rb +0 -188
- data/test/instrumentation/rest_client_test.rb +0 -107
- data/test/instrumentation/sequel_test.rb +0 -105
- 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/tracing/custom_test.rb +0 -226
- data/test/tracing/id_management_test.rb +0 -80
- data/test/tracing/instrumented_logger_test.rb +0 -39
- data/test/tracing/opentracing_test.rb +0 -382
- data/test/tracing/processor_test.rb +0 -58
- data/test/tracing/span_context_test.rb +0 -22
- data/test/tracing/span_test.rb +0 -179
- data/test/tracing/tracer_async_test.rb +0 -230
- data/test/tracing/tracer_test.rb +0 -352
- data/test/util_test.rb +0 -10
data/.tekton/task.yaml
DELETED
@@ -1,449 +0,0 @@
|
|
1
|
-
---
|
2
|
-
apiVersion: tekton.dev/v1
|
3
|
-
kind: Task
|
4
|
-
metadata:
|
5
|
-
name: ruby-tracer-clone-task
|
6
|
-
spec:
|
7
|
-
params:
|
8
|
-
- name: revision
|
9
|
-
type: string
|
10
|
-
workspaces:
|
11
|
-
- name: task-pvc
|
12
|
-
mountPath: /workspace
|
13
|
-
steps:
|
14
|
-
- name: clone
|
15
|
-
# alpine/git:2.43.0
|
16
|
-
image: alpine/git@sha256:6ff4de047dcc8f0c7d75d2efff63fbc189e87d2f458305f2cc8f165ff83309cf
|
17
|
-
script: |
|
18
|
-
#!/bin/sh
|
19
|
-
echo "Cloning repo"
|
20
|
-
cd /workspace && git clone --depth 1 -b $(params.revision) https://github.com/instana/ruby-sensor
|
21
|
-
ls -lah /workspace
|
22
|
-
---
|
23
|
-
apiVersion: tekton.dev/v1
|
24
|
-
kind: Task
|
25
|
-
metadata:
|
26
|
-
name: ruby-tracer-unittest-rails-sqlite3-task
|
27
|
-
spec:
|
28
|
-
params:
|
29
|
-
- name: imageDigest
|
30
|
-
type: string
|
31
|
-
- name: gemfile
|
32
|
-
type: string
|
33
|
-
workspaces:
|
34
|
-
- name: task-pvc
|
35
|
-
mountPath: /workspace
|
36
|
-
steps:
|
37
|
-
- name: unittest
|
38
|
-
image: ruby@$(params.imageDigest)
|
39
|
-
env:
|
40
|
-
- name: TEST_CONFIGURATION
|
41
|
-
value: rails
|
42
|
-
- name: BUNDLE_GEMFILE
|
43
|
-
value: $(params.gemfile)
|
44
|
-
- name: DATABASE_URL
|
45
|
-
value: "sqlite3::memory:"
|
46
|
-
workingDir: /workspace/ruby-sensor/
|
47
|
-
command:
|
48
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
49
|
-
---
|
50
|
-
apiVersion: tekton.dev/v1
|
51
|
-
kind: Task
|
52
|
-
metadata:
|
53
|
-
name: ruby-tracer-unittest-rails-mysql2-task
|
54
|
-
spec:
|
55
|
-
sidecars:
|
56
|
-
# MySQL (compatible Mariadb)
|
57
|
-
- name: mariadb
|
58
|
-
# mariadb:11.3.2
|
59
|
-
image: mariadb@sha256:851f05fe1e4cb290442c1b12b7108436a33fd8f6a733d4989950322d06d45c65
|
60
|
-
startupProbe:
|
61
|
-
initialDelaySeconds: 10
|
62
|
-
tcpSocket:
|
63
|
-
port: 3306
|
64
|
-
env:
|
65
|
-
- name: MYSQL_ROOT_PASSWORD # or MARIADB_ROOT_PASSWORD
|
66
|
-
value: passw0rd
|
67
|
-
- name: MYSQL_DATABASE # or MARIADB_DATABASE
|
68
|
-
value: ci_test
|
69
|
-
params:
|
70
|
-
- name: imageDigest
|
71
|
-
type: string
|
72
|
-
- name: gemfile
|
73
|
-
type: string
|
74
|
-
workspaces:
|
75
|
-
- name: task-pvc
|
76
|
-
mountPath: /workspace
|
77
|
-
steps:
|
78
|
-
- name: unittest
|
79
|
-
image: ruby@$(params.imageDigest)
|
80
|
-
env:
|
81
|
-
- name: TEST_CONFIGURATION
|
82
|
-
value: rails
|
83
|
-
- name: BUNDLE_GEMFILE
|
84
|
-
value: $(params.gemfile)
|
85
|
-
- name: DATABASE_URL
|
86
|
-
value: "mysql2://root:passw0rd@127.0.0.1:3306/ci_test"
|
87
|
-
workingDir: /workspace/ruby-sensor/
|
88
|
-
command:
|
89
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
90
|
-
---
|
91
|
-
apiVersion: tekton.dev/v1
|
92
|
-
kind: Task
|
93
|
-
metadata:
|
94
|
-
name: ruby-tracer-unittest-rails-postgres-task
|
95
|
-
spec:
|
96
|
-
sidecars:
|
97
|
-
- name: postgres
|
98
|
-
# postgres:16.2-bookworm
|
99
|
-
image: postgres@sha256:6b841c8f6a819884207402f1209a8116844365df15fca8cf556fc54a24c70800
|
100
|
-
startupProbe:
|
101
|
-
initialDelaySeconds: 10
|
102
|
-
tcpSocket:
|
103
|
-
port: 5432
|
104
|
-
env:
|
105
|
-
- name: POSTGRES_DB
|
106
|
-
value: 'ci_test'
|
107
|
-
- name: POSTGRES_USER
|
108
|
-
value: 'root'
|
109
|
-
- name: POSTGRES_PASSWORD
|
110
|
-
value: 'passw0rd'
|
111
|
-
params:
|
112
|
-
- name: imageDigest
|
113
|
-
type: string
|
114
|
-
- name: gemfile
|
115
|
-
type: string
|
116
|
-
workspaces:
|
117
|
-
- name: task-pvc
|
118
|
-
mountPath: /workspace
|
119
|
-
steps:
|
120
|
-
- name: unittest
|
121
|
-
image: ruby@$(params.imageDigest)
|
122
|
-
env:
|
123
|
-
- name: TEST_CONFIGURATION
|
124
|
-
value: rails
|
125
|
-
- name: BUNDLE_GEMFILE
|
126
|
-
value: $(params.gemfile)
|
127
|
-
- name: DATABASE_URL
|
128
|
-
value: "postgres://root:passw0rd@127.0.0.1:5432/ci_test"
|
129
|
-
workingDir: /workspace/ruby-sensor/
|
130
|
-
command:
|
131
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
132
|
-
---
|
133
|
-
apiVersion: tekton.dev/v1
|
134
|
-
kind: Task
|
135
|
-
metadata:
|
136
|
-
name: ruby-tracer-unittest-aws-libraries-task
|
137
|
-
spec:
|
138
|
-
sidecars:
|
139
|
-
# Amazon DynamoDB
|
140
|
-
- name: dynamodb
|
141
|
-
# amazon/dynamodb-local:2.3.0
|
142
|
-
image: amazon/dynamodb-local@sha256:0e42a967205042118277be031a59f7aa035c2f90b1695b1b3250d0ce03a7c8f0
|
143
|
-
startupProbe:
|
144
|
-
tcpSocket:
|
145
|
-
port: 8000
|
146
|
-
initialDelaySeconds: 10
|
147
|
-
# Amazon S3
|
148
|
-
- name: s3
|
149
|
-
# minio/minio:RELEASE.2024-03-07T00-43-48Z
|
150
|
-
image: minio/minio@sha256:9224601c529f424e5efac79f95606f0c7e1fe234f3f45344a49deaccd66d5bf5
|
151
|
-
command:
|
152
|
-
- /usr/bin/minio
|
153
|
-
- server
|
154
|
-
- /data
|
155
|
-
# Amazon SNS
|
156
|
-
- name: sns
|
157
|
-
# s12v/sns:latest
|
158
|
-
image: s12v/sns@sha256:a80f1cd6318d22419cab38650ee6824f72cc2dc902d2b38e4f997d0530fe4e07
|
159
|
-
# Amazon SQS
|
160
|
-
- name: sqs
|
161
|
-
# softwaremill/elasticmq-native:1.5.7
|
162
|
-
image: softwaremill/elasticmq-native@sha256:9183333a9ea4666686c37dc83a2b1f8cee9c15ffd161a219a131e171039f1ac3
|
163
|
-
params:
|
164
|
-
- name: imageDigest
|
165
|
-
type: string
|
166
|
-
- name: gemfile
|
167
|
-
type: string
|
168
|
-
workspaces:
|
169
|
-
- name: task-pvc
|
170
|
-
mountPath: /workspace
|
171
|
-
steps:
|
172
|
-
- name: unittest
|
173
|
-
image: ruby@$(params.imageDigest)
|
174
|
-
env:
|
175
|
-
- name: TEST_CONFIGURATION
|
176
|
-
value: libraries
|
177
|
-
- name: BUNDLE_GEMFILE
|
178
|
-
value: $(params.gemfile)
|
179
|
-
workingDir: /workspace/ruby-sensor/
|
180
|
-
command:
|
181
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
182
|
-
---
|
183
|
-
apiVersion: tekton.dev/v1
|
184
|
-
kind: Task
|
185
|
-
metadata:
|
186
|
-
name: ruby-tracer-unittest-redis-libraries-task
|
187
|
-
spec:
|
188
|
-
sidecars:
|
189
|
-
# Redis
|
190
|
-
- name: redis
|
191
|
-
# redis:7.2.4-bookworm
|
192
|
-
image: redis@sha256:fe98b2d39d462d06a7360e2860dd6ceff930745e3731eccb3c1406dd0dd7f744
|
193
|
-
startupProbe:
|
194
|
-
initialDelaySeconds: 10
|
195
|
-
tcpSocket:
|
196
|
-
port: 6379
|
197
|
-
params:
|
198
|
-
- name: imageDigest
|
199
|
-
type: string
|
200
|
-
- name: gemfile
|
201
|
-
type: string
|
202
|
-
workspaces:
|
203
|
-
- name: task-pvc
|
204
|
-
mountPath: /workspace
|
205
|
-
steps:
|
206
|
-
- name: unittest
|
207
|
-
image: ruby@$(params.imageDigest)
|
208
|
-
env:
|
209
|
-
- name: TEST_CONFIGURATION
|
210
|
-
value: libraries
|
211
|
-
- name: BUNDLE_GEMFILE
|
212
|
-
value: $(params.gemfile)
|
213
|
-
workingDir: /workspace/ruby-sensor/
|
214
|
-
command:
|
215
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
216
|
-
---
|
217
|
-
apiVersion: tekton.dev/v1
|
218
|
-
kind: Task
|
219
|
-
metadata:
|
220
|
-
name: ruby-tracer-unittest-memcached-libraries-task
|
221
|
-
spec:
|
222
|
-
sidecars:
|
223
|
-
# Memcached
|
224
|
-
- name: memcached
|
225
|
-
# memcached:1.6.24-bookworm
|
226
|
-
image: memcached@sha256:b2b562323463b6cda240a148fb2a5b7ea86e8017a8509e10a3c7f1681f259193
|
227
|
-
startupProbe:
|
228
|
-
tcpSocket:
|
229
|
-
port: 11211
|
230
|
-
initialDelaySeconds: 20
|
231
|
-
params:
|
232
|
-
- name: imageDigest
|
233
|
-
type: string
|
234
|
-
- name: gemfile
|
235
|
-
type: string
|
236
|
-
workspaces:
|
237
|
-
- name: task-pvc
|
238
|
-
mountPath: /workspace
|
239
|
-
steps:
|
240
|
-
- name: unittest
|
241
|
-
image: ruby@$(params.imageDigest)
|
242
|
-
env:
|
243
|
-
- name: TEST_CONFIGURATION
|
244
|
-
value: libraries
|
245
|
-
- name: BUNDLE_GEMFILE
|
246
|
-
value: $(params.gemfile)
|
247
|
-
workingDir: /workspace/ruby-sensor/
|
248
|
-
command:
|
249
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
250
|
-
---
|
251
|
-
apiVersion: tekton.dev/v1
|
252
|
-
kind: Task
|
253
|
-
metadata:
|
254
|
-
name: ruby-tracer-unittest-mongo-libraries-task
|
255
|
-
spec:
|
256
|
-
sidecars:
|
257
|
-
- name: mongo
|
258
|
-
# mongo:5.0.25-focal
|
259
|
-
image: mongo@sha256:d1b8a7b77424347397653ab8ff500c66b1e9979b4cebf826951d37b0d3966721
|
260
|
-
startupProbe:
|
261
|
-
initialDelaySeconds: 10
|
262
|
-
tcpSocket:
|
263
|
-
port: 27017
|
264
|
-
params:
|
265
|
-
- name: imageDigest
|
266
|
-
type: string
|
267
|
-
- name: gemfile
|
268
|
-
type: string
|
269
|
-
workspaces:
|
270
|
-
- name: task-pvc
|
271
|
-
mountPath: /workspace
|
272
|
-
steps:
|
273
|
-
- name: unittest
|
274
|
-
image: ruby@$(params.imageDigest)
|
275
|
-
env:
|
276
|
-
- name: TEST_CONFIGURATION
|
277
|
-
value: libraries
|
278
|
-
- name: BUNDLE_GEMFILE
|
279
|
-
value: $(params.gemfile)
|
280
|
-
workingDir: /workspace/ruby-sensor/
|
281
|
-
command:
|
282
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
283
|
-
---
|
284
|
-
apiVersion: tekton.dev/v1
|
285
|
-
kind: Task
|
286
|
-
metadata:
|
287
|
-
name: ruby-tracer-unittest-default-libraries-task
|
288
|
-
spec:
|
289
|
-
params:
|
290
|
-
- name: imageDigest
|
291
|
-
type: string
|
292
|
-
- name: configuration
|
293
|
-
type: string
|
294
|
-
- name: gemfile
|
295
|
-
type: string
|
296
|
-
workspaces:
|
297
|
-
- name: task-pvc
|
298
|
-
mountPath: /workspace
|
299
|
-
steps:
|
300
|
-
- name: unittest
|
301
|
-
image: ruby@$(params.imageDigest)
|
302
|
-
env:
|
303
|
-
- name: TEST_CONFIGURATION
|
304
|
-
value: $(params.configuration)
|
305
|
-
- name: BUNDLE_GEMFILE
|
306
|
-
value: $(params.gemfile)
|
307
|
-
workingDir: /workspace/ruby-sensor/
|
308
|
-
command:
|
309
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
310
|
-
---
|
311
|
-
apiVersion: tekton.dev/v1
|
312
|
-
kind: Task
|
313
|
-
metadata:
|
314
|
-
name: ruby-tracer-unittest-sequel-sqlite3-task
|
315
|
-
spec:
|
316
|
-
params:
|
317
|
-
- name: imageDigest
|
318
|
-
type: string
|
319
|
-
- name: gemfile
|
320
|
-
type: string
|
321
|
-
workspaces:
|
322
|
-
- name: task-pvc
|
323
|
-
mountPath: /workspace
|
324
|
-
steps:
|
325
|
-
- name: unittest
|
326
|
-
image: ruby@$(params.imageDigest)
|
327
|
-
env:
|
328
|
-
- name: TEST_CONFIGURATION
|
329
|
-
value: libraries
|
330
|
-
- name: BUNDLE_GEMFILE
|
331
|
-
value: $(params.gemfile)
|
332
|
-
- name: DATABASE_URL
|
333
|
-
value: "sqlite3::memory:"
|
334
|
-
workingDir: /workspace/ruby-sensor/
|
335
|
-
command:
|
336
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
337
|
-
---
|
338
|
-
apiVersion: tekton.dev/v1
|
339
|
-
kind: Task
|
340
|
-
metadata:
|
341
|
-
name: ruby-tracer-unittest-sequel-mysql2-task
|
342
|
-
spec:
|
343
|
-
sidecars:
|
344
|
-
# MySQL (compatible Mariadb)
|
345
|
-
- name: mariadb
|
346
|
-
# mariadb:11.3.2
|
347
|
-
image: mariadb@sha256:851f05fe1e4cb290442c1b12b7108436a33fd8f6a733d4989950322d06d45c65
|
348
|
-
startupProbe:
|
349
|
-
initialDelaySeconds: 10
|
350
|
-
tcpSocket:
|
351
|
-
port: 3306
|
352
|
-
env:
|
353
|
-
- name: MYSQL_ROOT_PASSWORD # or MARIADB_ROOT_PASSWORD
|
354
|
-
value: passw0rd
|
355
|
-
- name: MYSQL_DATABASE # or MARIADB_DATABASE
|
356
|
-
value: ci_test
|
357
|
-
params:
|
358
|
-
- name: imageDigest
|
359
|
-
type: string
|
360
|
-
- name: gemfile
|
361
|
-
type: string
|
362
|
-
workspaces:
|
363
|
-
- name: task-pvc
|
364
|
-
mountPath: /workspace
|
365
|
-
steps:
|
366
|
-
- name: unittest
|
367
|
-
image: ruby@$(params.imageDigest)
|
368
|
-
env:
|
369
|
-
- name: TEST_CONFIGURATION
|
370
|
-
value: libraries
|
371
|
-
- name: BUNDLE_GEMFILE
|
372
|
-
value: $(params.gemfile)
|
373
|
-
- name: DATABASE_URL
|
374
|
-
value: "mysql2://root:passw0rd@127.0.0.1:3306/ci_test"
|
375
|
-
workingDir: /workspace/ruby-sensor/
|
376
|
-
command:
|
377
|
-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
|
378
|
-
---
|
379
|
-
apiVersion: tekton.dev/v1
|
380
|
-
kind: Task
|
381
|
-
metadata:
|
382
|
-
name: ruby-generate-currency-report-task
|
383
|
-
spec:
|
384
|
-
workspaces:
|
385
|
-
- name: task-pvc
|
386
|
-
mountPath: /workspace
|
387
|
-
steps:
|
388
|
-
- name: generate-currency-report
|
389
|
-
# 3.10.13-bookworm
|
390
|
-
image: python@sha256:c970ff53939772f47b0672e380328afb50d8fd1c0568ed4f82c22effc54244fc
|
391
|
-
script: |
|
392
|
-
#!/usr/bin/env bash
|
393
|
-
|
394
|
-
cd /workspace/ruby-sensor/.tekton/.currency
|
395
|
-
|
396
|
-
python -m venv /tmp/venv
|
397
|
-
source /tmp/venv/bin/activate
|
398
|
-
pip install -r resources/requirements.txt
|
399
|
-
|
400
|
-
python scripts/generate_report.py
|
401
|
-
if [ $? -ne 0 ]; then
|
402
|
-
echo "Error occured while generating the ruby tracer currency report." >&2
|
403
|
-
exit 1
|
404
|
-
fi
|
405
|
-
cat docs/report.md
|
406
|
-
---
|
407
|
-
apiVersion: tekton.dev/v1
|
408
|
-
kind: Task
|
409
|
-
metadata:
|
410
|
-
name: ruby-upload-currency-report-task
|
411
|
-
spec:
|
412
|
-
params:
|
413
|
-
- name: github-token-secret
|
414
|
-
default: instanacd-github-api-token
|
415
|
-
workspaces:
|
416
|
-
- name: task-pvc
|
417
|
-
mountPath: /workspace
|
418
|
-
steps:
|
419
|
-
- name: upload-currency-report
|
420
|
-
# alpine/git:2.43.0
|
421
|
-
image: alpine/git@sha256:6ff4de047dcc8f0c7d75d2efff63fbc189e87d2f458305f2cc8f165ff83309cf
|
422
|
-
env:
|
423
|
-
- name: GH_ENTERPRISE_TOKEN
|
424
|
-
valueFrom:
|
425
|
-
secretKeyRef:
|
426
|
-
name: $(params.github-token-secret)
|
427
|
-
key: "GH_ENTERPRISE_TOKEN"
|
428
|
-
script: |
|
429
|
-
#!/bin/sh
|
430
|
-
|
431
|
-
cd /workspace
|
432
|
-
git clone https://oauth2:$GH_ENTERPRISE_TOKEN@github.ibm.com/instana/tracer-reports.git
|
433
|
-
|
434
|
-
if [ $? -ne 0 ]; then
|
435
|
-
echo "The attempt to clone the tracer-reports repository failed, preventing the upload of ruby tracer currency report." >&2
|
436
|
-
exit 1
|
437
|
-
fi
|
438
|
-
|
439
|
-
cd tracer-reports
|
440
|
-
|
441
|
-
cp ../ruby-sensor/.tekton/.currency/docs/report.md ./automated/currency/ruby/report.md
|
442
|
-
|
443
|
-
git config user.name "Instanacd PAT for GitHub Enterprise"
|
444
|
-
git config user.email instana.ibm.github.enterprise@ibm.com
|
445
|
-
|
446
|
-
git add .
|
447
|
-
|
448
|
-
git commit -m "chore: Updated ruby currency report"
|
449
|
-
git push origin main
|
@@ -1,29 +0,0 @@
|
|
1
|
-
apiVersion: v1
|
2
|
-
kind: ServiceAccount
|
3
|
-
metadata:
|
4
|
-
name: tekton-triggers-eventlistener-serviceaccount
|
5
|
-
---
|
6
|
-
apiVersion: rbac.authorization.k8s.io/v1
|
7
|
-
kind: RoleBinding
|
8
|
-
metadata:
|
9
|
-
name: tekton-triggers-eventlistener-serviceaccount-binding
|
10
|
-
subjects:
|
11
|
-
- kind: ServiceAccount
|
12
|
-
name: tekton-triggers-eventlistener-serviceaccount
|
13
|
-
roleRef:
|
14
|
-
apiGroup: rbac.authorization.k8s.io
|
15
|
-
kind: ClusterRole
|
16
|
-
name: tekton-triggers-eventlistener-roles
|
17
|
-
---
|
18
|
-
apiVersion: rbac.authorization.k8s.io/v1
|
19
|
-
kind: ClusterRoleBinding
|
20
|
-
metadata:
|
21
|
-
name: tekton-triggers-eventlistener-serviceaccount-clusterbinding
|
22
|
-
subjects:
|
23
|
-
- kind: ServiceAccount
|
24
|
-
name: tekton-triggers-eventlistener-serviceaccount
|
25
|
-
namespace: default
|
26
|
-
roleRef:
|
27
|
-
apiGroup: rbac.authorization.k8s.io
|
28
|
-
kind: ClusterRole
|
29
|
-
name: tekton-triggers-eventlistener-clusterroles
|
data/Appraisals
DELETED
@@ -1,124 +0,0 @@
|
|
1
|
-
# (c) Copyright IBM Corp. 2021
|
2
|
-
# (c) Copyright Instana Inc. 2021
|
3
|
-
|
4
|
-
appraise 'aws-30' do
|
5
|
-
gem 'aws-sdk-dynamodb', '~> 1.59'
|
6
|
-
gem 'aws-sdk-s3', '~> 1.59'
|
7
|
-
gem 'aws-sdk-sns', '~> 1.38'
|
8
|
-
gem 'aws-sdk-sqs', '~> 1.36'
|
9
|
-
gem 'aws-sdk-lambda', '~> 1.62'
|
10
|
-
end
|
11
|
-
|
12
|
-
appraise 'cuba-30' do
|
13
|
-
gem 'cuba', '>= 3.0', '< 4.0'
|
14
|
-
end
|
15
|
-
|
16
|
-
appraise 'dalli-20' do
|
17
|
-
gem 'dalli', '>= 2.0', '< 3.0'
|
18
|
-
end
|
19
|
-
|
20
|
-
appraise 'excon-021' do
|
21
|
-
gem 'excon', '>= 0.21.0', '< 1.0'
|
22
|
-
end
|
23
|
-
|
24
|
-
appraise 'excon-079' do
|
25
|
-
gem 'excon', '>= 0.79.0', '< 1.0'
|
26
|
-
end
|
27
|
-
|
28
|
-
appraise 'grpc-10' do
|
29
|
-
gem 'grpc', '>= 1.0', '< 2.0'
|
30
|
-
end
|
31
|
-
|
32
|
-
appraise 'graphql-10' do
|
33
|
-
gem 'graphql', '>= 1.0', '< 2.0'
|
34
|
-
end
|
35
|
-
|
36
|
-
appraise 'rack-16' do
|
37
|
-
gem 'rack', '~> 1.6'
|
38
|
-
end
|
39
|
-
|
40
|
-
appraise 'rack-20' do
|
41
|
-
gem 'rack', '>= 2.0', '< 3.0'
|
42
|
-
end
|
43
|
-
|
44
|
-
appraise 'rails-42' do
|
45
|
-
gem 'rails', '>= 4.2', '< 5.0'
|
46
|
-
gem 'mysql2', '0.4.10'
|
47
|
-
gem 'pg', '~> 0.21'
|
48
|
-
gem 'sqlite3', '~> 1.3', '< 1.4'
|
49
|
-
end
|
50
|
-
|
51
|
-
appraise 'rails-50' do
|
52
|
-
gem 'rails', '>= 5.0', '< 5.1'
|
53
|
-
gem 'mysql2', '0.4.10'
|
54
|
-
gem 'pg'
|
55
|
-
gem 'sqlite3', '~> 1.3', '< 1.4'
|
56
|
-
end
|
57
|
-
|
58
|
-
appraise 'rails-52' do
|
59
|
-
gem 'rails', '>= 5.2', '< 6.0'
|
60
|
-
gem 'mysql2', '0.4.10'
|
61
|
-
gem 'pg'
|
62
|
-
gem 'sqlite3', '~> 1.3', '< 1.4'
|
63
|
-
end
|
64
|
-
|
65
|
-
appraise 'rails-60' do
|
66
|
-
gem 'rails', '>= 6.0', '< 6.1'
|
67
|
-
gem 'mysql2', '0.4.10'
|
68
|
-
gem 'pg'
|
69
|
-
gem 'sqlite3', '~> 1.4'
|
70
|
-
end
|
71
|
-
|
72
|
-
appraise 'redis-40' do
|
73
|
-
gem 'redis', '>= 4.0.0', '< 5.0'
|
74
|
-
end
|
75
|
-
|
76
|
-
appraise 'rest-client-16' do
|
77
|
-
gem 'rest-client', '>= 1.6', '< 2.0'
|
78
|
-
end
|
79
|
-
|
80
|
-
appraise 'rest-client-20' do
|
81
|
-
gem 'rest-client', '>= 2.0', '< 3.0'
|
82
|
-
end
|
83
|
-
|
84
|
-
appraise 'resque-122' do
|
85
|
-
gem 'resque', '>= 1.22', '< 2.0'
|
86
|
-
gem 'redis', '~> 3.3', '>= 3.3.5'
|
87
|
-
end
|
88
|
-
|
89
|
-
appraise 'resque-20' do
|
90
|
-
gem 'resque', '>= 2.0', '< 3.0'
|
91
|
-
end
|
92
|
-
|
93
|
-
appraise 'roda-20' do
|
94
|
-
gem 'roda', '>= 2.0', '< 3.0'
|
95
|
-
end
|
96
|
-
|
97
|
-
appraise 'roda-30' do
|
98
|
-
gem 'roda', '>= 3.0', '< 4.0'
|
99
|
-
end
|
100
|
-
|
101
|
-
appraise 'net-http-01' do
|
102
|
-
# gem 'net-http', '~> 0.1.1'
|
103
|
-
end
|
104
|
-
|
105
|
-
appraise 'sinatra-14' do
|
106
|
-
gem 'sinatra', '1.4.7'
|
107
|
-
end
|
108
|
-
|
109
|
-
appraise 'shoryuken-50' do
|
110
|
-
gem 'shoryuken', '~> 5.2'
|
111
|
-
gem 'aws-sdk-sqs', '~> 1.36'
|
112
|
-
end
|
113
|
-
|
114
|
-
appraise 'sidekiq-42' do
|
115
|
-
gem 'sidekiq', '~> 4.2.10'
|
116
|
-
end
|
117
|
-
|
118
|
-
appraise 'sidekiq-50' do
|
119
|
-
gem 'sidekiq', '>= 5.0', '< 6.0'
|
120
|
-
end
|
121
|
-
|
122
|
-
appraise 'mongo-216' do
|
123
|
-
gem 'mongo', '>= 2.16', '< 3'
|
124
|
-
end
|
data/CONTRIBUTING.md
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
## Contributing In General
|
2
|
-
Our project welcomes external contributions. If you have an itch, please feel
|
3
|
-
free to scratch it.
|
4
|
-
|
5
|
-
To contribute code or documentation, please submit a [pull request](https://github.com/instana/ruby-sensor/pulls).
|
6
|
-
|
7
|
-
A good way to familiarize yourself with the codebase and contribution process is
|
8
|
-
to look for and tackle low-hanging fruit in the [issue tracker](https://github.com/instana/ruby-sensor/issues).
|
9
|
-
<!--Before embarking on a more ambitious contribution, please quickly [get in touch](#communication) with us.-->
|
10
|
-
|
11
|
-
**Note: We appreciate your effort, and want to avoid a situation where a contribution
|
12
|
-
requires extensive rework (by you or by us), sits in backlog for a long time, or
|
13
|
-
cannot be accepted at all!**
|
14
|
-
|
15
|
-
### Proposing new features
|
16
|
-
|
17
|
-
If you would like to implement a new feature, please [raise an issue](https://github.com/instana/ruby-sensor/issues)
|
18
|
-
before sending a pull request so the feature can be discussed. This is to avoid
|
19
|
-
you wasting your valuable time working on a feature that the project developers
|
20
|
-
are not interested in accepting into the code base.
|
21
|
-
|
22
|
-
### Fixing bugs
|
23
|
-
|
24
|
-
If you would like to fix a bug, please [raise an issue](https://github.com/instana/ruby-sensor/issues) before sending a
|
25
|
-
pull request so it can be tracked.
|
26
|
-
|
27
|
-
### Merge approval
|
28
|
-
|
29
|
-
The project maintainers use LGTM (Looks Good To Me) in comments on the code
|
30
|
-
review to indicate acceptance. A change requires LGTMs from two of the
|
31
|
-
maintainers of each component affected.
|
32
|
-
|
33
|
-
For a list of the maintainers, see the [MAINTAINERS.md](MAINTAINERS.md) page.
|
34
|
-
|
35
|
-
## Legal
|
36
|
-
|
37
|
-
Each source file must include a license header for the MIT
|
38
|
-
License. Using the SPDX format is the simplest approach.
|
39
|
-
e.g.
|
40
|
-
|
41
|
-
```
|
42
|
-
/*
|
43
|
-
Copyright <holder> All Rights Reserved.
|
44
|
-
|
45
|
-
SPDX-License-Identifier: MIT
|
46
|
-
*/
|
47
|
-
```
|
48
|
-
|
49
|
-
We have tried to make it as easy as possible to make contributions. This
|
50
|
-
applies to how we handle the legal aspects of contribution. We use the
|
51
|
-
same approach - the [Developer's Certificate of Origin 1.1 (DCO)](https://github.com/hyperledger/fabric/blob/master/docs/source/DCO1.1.txt) - that the Linux® Kernel [community](https://elinux.org/Developer_Certificate_Of_Origin)
|
52
|
-
uses to manage code contributions.
|
53
|
-
|
54
|
-
We simply ask that when submitting a patch for review, the developer
|
55
|
-
must include a sign-off statement in the commit message.
|
56
|
-
|
57
|
-
Here is an example Signed-off-by line, which indicates that the
|
58
|
-
submitter accepts the DCO:
|
59
|
-
|
60
|
-
```
|
61
|
-
Signed-off-by: John Doe <john.doe@example.com>
|
62
|
-
```
|
63
|
-
|
64
|
-
You can include this automatically when you commit a change to your
|
65
|
-
local git repository using the following command:
|
66
|
-
|
67
|
-
```
|
68
|
-
git commit -s
|
69
|
-
```
|
70
|
-
|
71
|
-
<!--
|
72
|
-
## Communication
|
73
|
-
**FIXME** Please feel free to connect with us on our [Slack channel](link).
|
74
|
-
|
75
|
-
## Setup
|
76
|
-
**FIXME** Please add any special setup instructions for your project to help the developer
|
77
|
-
become productive quickly.
|
78
|
-
|
79
|
-
## Testing
|
80
|
-
**FIXME** Please provide information that helps the developer test any changes they make
|
81
|
-
before submitting.
|
82
|
-
|
83
|
-
## Coding style guidelines
|
84
|
-
**FIXME** Optional, but recommended: please share any specific style guidelines you might
|
85
|
-
have for your project.
|
86
|
-
-->
|
data/Gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# (c) Copyright IBM Corp. 2021
|
2
|
-
# (c) Copyright Instana Inc. 2016
|
3
|
-
|
4
|
-
source 'https://rubygems.org'
|
5
|
-
|
6
|
-
gem 'minitest-reporters'
|
7
|
-
gem 'webmock'
|
8
|
-
gem 'puma'
|
9
|
-
|
10
|
-
gem 'rack'
|
11
|
-
gem 'rackup'
|
12
|
-
gem 'rack-test'
|
13
|
-
|
14
|
-
gem 'simplecov', '~> 0.21.2'
|
15
|
-
|
16
|
-
# instana.gemspec
|
17
|
-
gemspec
|