instana 1.215.1 → 1.217.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +102 -4
- data/.tekton/.currency/docs/report.md +15 -14
- data/.tekton/.currency/resources/requirements.txt +0 -1
- data/.tekton/.currency/resources/table.json +6 -0
- data/.tekton/.currency/scripts/generate_report.py +38 -130
- data/.tekton/README.md +278 -0
- data/.tekton/github-pr-eventlistener.yaml +1 -1
- data/.tekton/pipeline.yaml +154 -6
- data/.tekton/pipelinerun.yaml +2 -2
- data/.tekton/ruby-tracer-prepuller.yaml +4 -0
- data/.tekton/run_unittests.sh +27 -6
- data/.tekton/scheduled-eventlistener.yaml +2 -4
- data/.tekton/task.yaml +156 -0
- data/Rakefile +1 -1
- data/gemfiles/excon_0100.gemfile +14 -0
- data/gemfiles/excon_021.gemfile +1 -1
- data/gemfiles/excon_079.gemfile +1 -1
- data/gemfiles/excon_100.gemfile +2 -2
- data/gemfiles/rails_61.gemfile +1 -0
- data/gemfiles/rails_70.gemfile +1 -0
- data/gemfiles/rails_71.gemfile +2 -1
- data/gemfiles/rails_80.gemfile +17 -0
- data/gemfiles/{excon_02.gemfile → sequel_56.gemfile} +4 -5
- data/gemfiles/sequel_57.gemfile +16 -0
- data/gemfiles/sequel_58.gemfile +16 -0
- data/lib/instana/activators/sequel.rb +20 -0
- data/lib/instana/backend/host_agent.rb +12 -3
- data/lib/instana/config.rb +1 -0
- data/lib/instana/instrumentation/active_record.rb +1 -1
- data/lib/instana/instrumentation/instrumented_request.rb +2 -2
- data/lib/instana/instrumentation/sequel.rb +42 -0
- data/lib/instana/tracing/span.rb +2 -2
- data/lib/instana/version.rb +1 -1
- data/lib/instana.rb +4 -2
- data/test/activator_test.rb +1 -1
- data/test/instrumentation/rails_active_record_test.rb +1 -1
- data/test/instrumentation/sequel_test.rb +105 -0
- metadata +13 -9
- data/.tekton/.currency/currency-pipeline.yaml +0 -36
- data/.tekton/.currency/currency-pipelinerun.yaml +0 -20
- data/.tekton/.currency/currency-rbac.yaml +0 -29
- data/.tekton/.currency/currency-scheduled-eventlistener.yaml +0 -56
- data/.tekton/.currency/currency-tasks.yaml +0 -94
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.217.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -170,15 +170,11 @@ files:
|
|
170
170
|
- ".gitignore"
|
171
171
|
- ".rubocop.yml"
|
172
172
|
- ".rubocop_todo.yml"
|
173
|
-
- ".tekton/.currency/currency-pipeline.yaml"
|
174
|
-
- ".tekton/.currency/currency-pipelinerun.yaml"
|
175
|
-
- ".tekton/.currency/currency-rbac.yaml"
|
176
|
-
- ".tekton/.currency/currency-scheduled-eventlistener.yaml"
|
177
|
-
- ".tekton/.currency/currency-tasks.yaml"
|
178
173
|
- ".tekton/.currency/docs/report.md"
|
179
174
|
- ".tekton/.currency/resources/requirements.txt"
|
180
175
|
- ".tekton/.currency/resources/table.json"
|
181
176
|
- ".tekton/.currency/scripts/generate_report.py"
|
177
|
+
- ".tekton/README.md"
|
182
178
|
- ".tekton/github-interceptor-secret.yaml"
|
183
179
|
- ".tekton/github-pr-eventlistener.yaml"
|
184
180
|
- ".tekton/github-pr-pipeline.yaml.part"
|
@@ -214,7 +210,7 @@ files:
|
|
214
210
|
- gemfiles/dalli_20.gemfile
|
215
211
|
- gemfiles/dalli_30.gemfile
|
216
212
|
- gemfiles/dalli_32.gemfile
|
217
|
-
- gemfiles/
|
213
|
+
- gemfiles/excon_0100.gemfile
|
218
214
|
- gemfiles/excon_021.gemfile
|
219
215
|
- gemfiles/excon_079.gemfile
|
220
216
|
- gemfiles/excon_100.gemfile
|
@@ -234,6 +230,7 @@ files:
|
|
234
230
|
- gemfiles/rails_61.gemfile
|
235
231
|
- gemfiles/rails_70.gemfile
|
236
232
|
- gemfiles/rails_71.gemfile
|
233
|
+
- gemfiles/rails_80.gemfile
|
237
234
|
- gemfiles/redis_40.gemfile
|
238
235
|
- gemfiles/redis_50.gemfile
|
239
236
|
- gemfiles/redis_51.gemfile
|
@@ -245,6 +242,9 @@ files:
|
|
245
242
|
- gemfiles/roda_20.gemfile
|
246
243
|
- gemfiles/roda_30.gemfile
|
247
244
|
- gemfiles/rubocop_162.gemfile
|
245
|
+
- gemfiles/sequel_56.gemfile
|
246
|
+
- gemfiles/sequel_57.gemfile
|
247
|
+
- gemfiles/sequel_58.gemfile
|
248
248
|
- gemfiles/shoryuken_50.gemfile
|
249
249
|
- gemfiles/shoryuken_60.gemfile
|
250
250
|
- gemfiles/sidekiq_42.gemfile
|
@@ -286,6 +286,7 @@ files:
|
|
286
286
|
- lib/instana/activators/resque_worker.rb
|
287
287
|
- lib/instana/activators/rest_client.rb
|
288
288
|
- lib/instana/activators/roda.rb
|
289
|
+
- lib/instana/activators/sequel.rb
|
289
290
|
- lib/instana/activators/shoryuken.rb
|
290
291
|
- lib/instana/activators/sidekiq_client.rb
|
291
292
|
- lib/instana/activators/sidekiq_worker.rb
|
@@ -327,6 +328,7 @@ files:
|
|
327
328
|
- lib/instana/instrumentation/redis.rb
|
328
329
|
- lib/instana/instrumentation/resque.rb
|
329
330
|
- lib/instana/instrumentation/rest-client.rb
|
331
|
+
- lib/instana/instrumentation/sequel.rb
|
330
332
|
- lib/instana/instrumentation/shoryuken.rb
|
331
333
|
- lib/instana/instrumentation/sidekiq-client.rb
|
332
334
|
- lib/instana/instrumentation/sidekiq-worker.rb
|
@@ -392,6 +394,7 @@ files:
|
|
392
394
|
- test/instrumentation/redis_test.rb
|
393
395
|
- test/instrumentation/resque_test.rb
|
394
396
|
- test/instrumentation/rest_client_test.rb
|
397
|
+
- test/instrumentation/sequel_test.rb
|
395
398
|
- test/instrumentation/shoryuken_test.rb
|
396
399
|
- test/instrumentation/sidekiq-client_test.rb
|
397
400
|
- test/instrumentation/sidekiq-worker_test.rb
|
@@ -456,7 +459,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
459
|
- !ruby/object:Gem::Version
|
457
460
|
version: '0'
|
458
461
|
requirements: []
|
459
|
-
rubygems_version: 3.5.
|
462
|
+
rubygems_version: 3.5.23
|
460
463
|
signing_key:
|
461
464
|
specification_version: 4
|
462
465
|
summary: Ruby Distributed Tracing & Metrics Sensor for Instana
|
@@ -497,6 +500,7 @@ test_files:
|
|
497
500
|
- test/instrumentation/redis_test.rb
|
498
501
|
- test/instrumentation/resque_test.rb
|
499
502
|
- test/instrumentation/rest_client_test.rb
|
503
|
+
- test/instrumentation/sequel_test.rb
|
500
504
|
- test/instrumentation/shoryuken_test.rb
|
501
505
|
- test/instrumentation/sidekiq-client_test.rb
|
502
506
|
- test/instrumentation/sidekiq-worker_test.rb
|
@@ -1,36 +0,0 @@
|
|
1
|
-
apiVersion: tekton.dev/v1beta1
|
2
|
-
kind: Pipeline
|
3
|
-
metadata:
|
4
|
-
name: ruby-currency-pipeline
|
5
|
-
spec:
|
6
|
-
params:
|
7
|
-
- name: revision
|
8
|
-
type: string
|
9
|
-
workspaces:
|
10
|
-
- name: ruby-currency-pvc
|
11
|
-
tasks:
|
12
|
-
- name: clone-repo
|
13
|
-
params:
|
14
|
-
- name: revision
|
15
|
-
value: $(params.revision)
|
16
|
-
taskRef:
|
17
|
-
name: ruby-git-clone-task
|
18
|
-
workspaces:
|
19
|
-
- name: task-pvc
|
20
|
-
workspace: ruby-currency-pvc
|
21
|
-
- name: generate-currency-report
|
22
|
-
runAfter:
|
23
|
-
- clone-repo
|
24
|
-
taskRef:
|
25
|
-
name: ruby-generate-currency-report-task
|
26
|
-
workspaces:
|
27
|
-
- name: task-pvc
|
28
|
-
workspace: ruby-currency-pvc
|
29
|
-
- name: upload-currency-report
|
30
|
-
runAfter:
|
31
|
-
- generate-currency-report
|
32
|
-
taskRef:
|
33
|
-
name: ruby-upload-currency-report-task
|
34
|
-
workspaces:
|
35
|
-
- name: task-pvc
|
36
|
-
workspace: ruby-currency-pvc
|
@@ -1,20 +0,0 @@
|
|
1
|
-
apiVersion: tekton.dev/v1beta1
|
2
|
-
kind: PipelineRun
|
3
|
-
metadata:
|
4
|
-
name: ruby-currency-pipelinerun
|
5
|
-
spec:
|
6
|
-
params:
|
7
|
-
- name: revision
|
8
|
-
value: "master"
|
9
|
-
pipelineRef:
|
10
|
-
name: ruby-currency-pipeline
|
11
|
-
serviceAccountName: currency-serviceaccount
|
12
|
-
workspaces:
|
13
|
-
- name: ruby-currency-pvc
|
14
|
-
volumeClaimTemplate:
|
15
|
-
spec:
|
16
|
-
accessModes:
|
17
|
-
- ReadWriteOnce
|
18
|
-
resources:
|
19
|
-
requests:
|
20
|
-
storage: 100Mi
|
@@ -1,29 +0,0 @@
|
|
1
|
-
apiVersion: v1
|
2
|
-
kind: ServiceAccount
|
3
|
-
metadata:
|
4
|
-
name: currency-serviceaccount
|
5
|
-
---
|
6
|
-
apiVersion: rbac.authorization.k8s.io/v1
|
7
|
-
kind: ClusterRole
|
8
|
-
metadata:
|
9
|
-
name: currency-clusterrole
|
10
|
-
rules:
|
11
|
-
- apiGroups: [""]
|
12
|
-
resources: ["pods", "pods/log"]
|
13
|
-
verbs: ["get", "list"]
|
14
|
-
- apiGroups: ["tekton.dev"]
|
15
|
-
resources: ["taskruns"]
|
16
|
-
verbs: ["get", "list"]
|
17
|
-
---
|
18
|
-
apiVersion: rbac.authorization.k8s.io/v1
|
19
|
-
kind: ClusterRoleBinding
|
20
|
-
metadata:
|
21
|
-
name: currency-clusterrolebinding
|
22
|
-
subjects:
|
23
|
-
- kind: ServiceAccount
|
24
|
-
name: currency-serviceaccount
|
25
|
-
namespace: default
|
26
|
-
roleRef:
|
27
|
-
apiGroup: rbac.authorization.k8s.io
|
28
|
-
kind: ClusterRole
|
29
|
-
name: currency-clusterrole
|
@@ -1,56 +0,0 @@
|
|
1
|
-
apiVersion: triggers.tekton.dev/v1beta1
|
2
|
-
kind: EventListener
|
3
|
-
metadata:
|
4
|
-
name: ruby-currency-cron-listener
|
5
|
-
spec:
|
6
|
-
serviceAccountName: tekton-triggers-eventlistener-serviceaccount
|
7
|
-
triggers:
|
8
|
-
- name: currency-cron-trigger
|
9
|
-
template:
|
10
|
-
ref: ruby-currency-trigger-template
|
11
|
-
---
|
12
|
-
apiVersion: triggers.tekton.dev/v1beta1
|
13
|
-
kind: TriggerTemplate
|
14
|
-
metadata:
|
15
|
-
name: ruby-currency-trigger-template
|
16
|
-
spec:
|
17
|
-
resourcetemplates:
|
18
|
-
- apiVersion: tekton.dev/v1beta1
|
19
|
-
kind: PipelineRun
|
20
|
-
metadata:
|
21
|
-
generateName: ruby-currency-
|
22
|
-
spec:
|
23
|
-
pipelineRef:
|
24
|
-
name: ruby-currency-pipeline
|
25
|
-
serviceAccountName: currency-serviceaccount
|
26
|
-
params:
|
27
|
-
- name: revision
|
28
|
-
value: "master"
|
29
|
-
workspaces:
|
30
|
-
- name: ruby-currency-pvc
|
31
|
-
volumeClaimTemplate:
|
32
|
-
spec:
|
33
|
-
accessModes:
|
34
|
-
- ReadWriteOnce
|
35
|
-
resources:
|
36
|
-
requests:
|
37
|
-
storage: 100Mi
|
38
|
-
---
|
39
|
-
apiVersion: batch/v1
|
40
|
-
kind: CronJob
|
41
|
-
metadata:
|
42
|
-
name: ruby-currency-cronjob
|
43
|
-
spec:
|
44
|
-
schedule: "5 3 * * Mon-Fri"
|
45
|
-
jobTemplate:
|
46
|
-
spec:
|
47
|
-
template:
|
48
|
-
spec:
|
49
|
-
containers:
|
50
|
-
- name: http-request-to-el-svc
|
51
|
-
# curlimages/curl:8.6.0
|
52
|
-
image: curlimages/curl@sha256:f2237028bed58de91f62aea74260bb2a299cf12fbcabc23cfaf125fef276c884
|
53
|
-
imagePullPolicy: IfNotPresent
|
54
|
-
args: ["curl", "-X", "POST", "--data", "{}", "el-ruby-currency-cron-listener.default.svc.cluster.local:8080"]
|
55
|
-
restartPolicy: OnFailure
|
56
|
-
---
|
@@ -1,94 +0,0 @@
|
|
1
|
-
apiVersion: tekton.dev/v1beta1
|
2
|
-
kind: Task
|
3
|
-
metadata:
|
4
|
-
name: ruby-git-clone-task
|
5
|
-
spec:
|
6
|
-
params:
|
7
|
-
- name: revision
|
8
|
-
type: string
|
9
|
-
workspaces:
|
10
|
-
- name: task-pvc
|
11
|
-
mountPath: /workspace
|
12
|
-
steps:
|
13
|
-
- name: clone-repo
|
14
|
-
# alpine/git:2.43.0
|
15
|
-
image: alpine/git@sha256:6ff4de047dcc8f0c7d75d2efff63fbc189e87d2f458305f2cc8f165ff83309cf
|
16
|
-
script: |
|
17
|
-
#!/bin/sh
|
18
|
-
echo "Cloning repo"
|
19
|
-
cd /workspace && git clone --filter=blob:none --sparse --depth 1 https://github.com/instana/ruby-sensor -b $(params.revision)
|
20
|
-
cd ruby-sensor
|
21
|
-
git sparse-checkout add .tekton/.currency
|
22
|
-
ls -lah /workspace/ruby-sensor
|
23
|
-
---
|
24
|
-
apiVersion: tekton.dev/v1beta1
|
25
|
-
kind: Task
|
26
|
-
metadata:
|
27
|
-
name: ruby-generate-currency-report-task
|
28
|
-
spec:
|
29
|
-
workspaces:
|
30
|
-
- name: task-pvc
|
31
|
-
mountPath: /workspace
|
32
|
-
steps:
|
33
|
-
- name: generate-currency-report
|
34
|
-
# 3.10.13-bookworm
|
35
|
-
image: python@sha256:c970ff53939772f47b0672e380328afb50d8fd1c0568ed4f82c22effc54244fc
|
36
|
-
script: |
|
37
|
-
#!/usr/bin/env bash
|
38
|
-
|
39
|
-
cd /workspace/ruby-sensor/.tekton/.currency
|
40
|
-
|
41
|
-
python -m venv /tmp/venv
|
42
|
-
source /tmp/venv/bin/activate
|
43
|
-
pip install -r resources/requirements.txt
|
44
|
-
|
45
|
-
python scripts/generate_report.py
|
46
|
-
if [ $? -ne 0 ]; then
|
47
|
-
echo "Error occured while generating the ruby tracer currency report." >&2
|
48
|
-
exit 1
|
49
|
-
fi
|
50
|
-
cat docs/report.md
|
51
|
-
---
|
52
|
-
apiVersion: tekton.dev/v1beta1
|
53
|
-
kind: Task
|
54
|
-
metadata:
|
55
|
-
name: ruby-upload-currency-report-task
|
56
|
-
spec:
|
57
|
-
params:
|
58
|
-
- name: github-token-secret
|
59
|
-
default: instanacd-github-api-token
|
60
|
-
workspaces:
|
61
|
-
- name: task-pvc
|
62
|
-
mountPath: /workspace
|
63
|
-
steps:
|
64
|
-
- name: upload-currency-report
|
65
|
-
# alpine/git:2.43.0
|
66
|
-
image: alpine/git@sha256:6ff4de047dcc8f0c7d75d2efff63fbc189e87d2f458305f2cc8f165ff83309cf
|
67
|
-
env:
|
68
|
-
- name: GH_ENTERPRISE_TOKEN
|
69
|
-
valueFrom:
|
70
|
-
secretKeyRef:
|
71
|
-
name: $(params.github-token-secret)
|
72
|
-
key: "GH_ENTERPRISE_TOKEN"
|
73
|
-
script: |
|
74
|
-
#!/bin/sh
|
75
|
-
|
76
|
-
cd /workspace
|
77
|
-
git clone https://oauth2:$GH_ENTERPRISE_TOKEN@github.ibm.com/instana/tracer-reports.git
|
78
|
-
|
79
|
-
if [ $? -ne 0 ]; then
|
80
|
-
echo "The attempt to clone the tracer-reports repository failed, preventing the upload of ruby tracer currency report." >&2
|
81
|
-
exit 1
|
82
|
-
fi
|
83
|
-
|
84
|
-
cd tracer-reports
|
85
|
-
|
86
|
-
cp ../ruby-sensor/.tekton/.currency/docs/report.md ./automated/currency/ruby/report.md
|
87
|
-
|
88
|
-
git config user.name "Instanacd PAT for GitHub Enterprise"
|
89
|
-
git config user.email instana.ibm.github.enterprise@ibm.com
|
90
|
-
|
91
|
-
git add .
|
92
|
-
|
93
|
-
git commit -m "chore: Updated ruby currency report"
|
94
|
-
git push origin main
|