instana 1.215.1 → 1.216.0

Sign up to get free protection for your applications and to get access to all the features.
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.215.1
4
+ version: 1.216.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-07-23 00:00:00.000000000 Z
11
+ date: 2024-09-11 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"
@@ -245,6 +241,9 @@ files:
245
241
  - gemfiles/roda_20.gemfile
246
242
  - gemfiles/roda_30.gemfile
247
243
  - gemfiles/rubocop_162.gemfile
244
+ - gemfiles/sequel_56.gemfile
245
+ - gemfiles/sequel_57.gemfile
246
+ - gemfiles/sequel_58.gemfile
248
247
  - gemfiles/shoryuken_50.gemfile
249
248
  - gemfiles/shoryuken_60.gemfile
250
249
  - gemfiles/sidekiq_42.gemfile
@@ -286,6 +285,7 @@ files:
286
285
  - lib/instana/activators/resque_worker.rb
287
286
  - lib/instana/activators/rest_client.rb
288
287
  - lib/instana/activators/roda.rb
288
+ - lib/instana/activators/sequel.rb
289
289
  - lib/instana/activators/shoryuken.rb
290
290
  - lib/instana/activators/sidekiq_client.rb
291
291
  - lib/instana/activators/sidekiq_worker.rb
@@ -327,6 +327,7 @@ files:
327
327
  - lib/instana/instrumentation/redis.rb
328
328
  - lib/instana/instrumentation/resque.rb
329
329
  - lib/instana/instrumentation/rest-client.rb
330
+ - lib/instana/instrumentation/sequel.rb
330
331
  - lib/instana/instrumentation/shoryuken.rb
331
332
  - lib/instana/instrumentation/sidekiq-client.rb
332
333
  - lib/instana/instrumentation/sidekiq-worker.rb
@@ -392,6 +393,7 @@ files:
392
393
  - test/instrumentation/redis_test.rb
393
394
  - test/instrumentation/resque_test.rb
394
395
  - test/instrumentation/rest_client_test.rb
396
+ - test/instrumentation/sequel_test.rb
395
397
  - test/instrumentation/shoryuken_test.rb
396
398
  - test/instrumentation/sidekiq-client_test.rb
397
399
  - test/instrumentation/sidekiq-worker_test.rb
@@ -456,7 +458,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
456
458
  - !ruby/object:Gem::Version
457
459
  version: '0'
458
460
  requirements: []
459
- rubygems_version: 3.5.9
461
+ rubygems_version: 3.5.18
460
462
  signing_key:
461
463
  specification_version: 4
462
464
  summary: Ruby Distributed Tracing & Metrics Sensor for Instana
@@ -497,6 +499,7 @@ test_files:
497
499
  - test/instrumentation/redis_test.rb
498
500
  - test/instrumentation/resque_test.rb
499
501
  - test/instrumentation/rest_client_test.rb
502
+ - test/instrumentation/sequel_test.rb
500
503
  - test/instrumentation/shoryuken_test.rb
501
504
  - test/instrumentation/sidekiq-client_test.rb
502
505
  - 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