elastic-apm 4.7.3 → 4.9.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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.ci/.exclude.yml +27 -82
  3. data/.ci/.framework.yml +1 -4
  4. data/.ci/.ruby.yml +1 -1
  5. data/.ci/updatecli/values.d/apm-data-spec.yml +1 -0
  6. data/.ci/updatecli/values.d/apm-gherkin.yml +1 -0
  7. data/.ci/updatecli/values.d/apm-json-specs.yml +1 -0
  8. data/.ci/updatecli/values.d/scm.yml +10 -0
  9. data/.ci/updatecli/values.d/update-compose.yml +3 -0
  10. data/.github/CODEOWNERS +1 -0
  11. data/.github/PULL_REQUEST_TEMPLATE.md +2 -2
  12. data/.github/dependabot.yml +22 -19
  13. data/.github/workflows/README.md +1 -2
  14. data/.github/workflows/addToProject.yml +43 -12
  15. data/.github/workflows/ci.yml +6 -6
  16. data/.github/workflows/docs-build.yml +16 -0
  17. data/.github/workflows/docs-deploy.yml +16 -0
  18. data/.github/workflows/docs-preview-cleanup.yml +12 -0
  19. data/.github/workflows/github-commands-comment.yml +18 -0
  20. data/.github/workflows/microbenchmark.yml +7 -24
  21. data/.github/workflows/release.yml +40 -24
  22. data/.github/workflows/run-matrix.yml +21 -12
  23. data/.github/workflows/test-reporter.yml +4 -3
  24. data/.github/workflows/updatecli.yml +45 -13
  25. data/Dockerfile +38 -12
  26. data/Gemfile +38 -3
  27. data/bin/dev +16 -4
  28. data/bin/run-bdd +2 -2
  29. data/docker-compose.yml +12 -5
  30. data/docs/docset.yml +11 -0
  31. data/docs/reference/advanced-topics.md +18 -0
  32. data/docs/reference/api-reference.md +428 -0
  33. data/docs/reference/configuration.md +751 -0
  34. data/docs/{context.asciidoc → reference/context.md} +27 -21
  35. data/docs/reference/custom-instrumentation.md +78 -0
  36. data/docs/{getting-started-rack.asciidoc → reference/getting-started-rack.md} +27 -30
  37. data/docs/reference/getting-started-rails.md +33 -0
  38. data/docs/reference/graphql.md +27 -0
  39. data/docs/reference/index.md +33 -0
  40. data/docs/{logs.asciidoc → reference/logs.md} +45 -57
  41. data/docs/reference/metrics.md +205 -0
  42. data/docs/reference/opentracing-api.md +76 -0
  43. data/docs/reference/performance-tuning.md +77 -0
  44. data/docs/reference/set-up-apm-ruby-agent.md +22 -0
  45. data/docs/reference/supported-technologies.md +134 -0
  46. data/docs/reference/toc.yml +24 -0
  47. data/docs/reference/upgrading.md +25 -0
  48. data/docs/release-notes/index.md +182 -0
  49. data/docs/release-notes/known-issues.md +29 -0
  50. data/docs/release-notes/toc.yml +3 -0
  51. data/elastic-apm.gemspec +2 -2
  52. data/lib/elastic_apm/central_config.rb +1 -1
  53. data/lib/elastic_apm/config/round_float_hash_value.rb +35 -0
  54. data/lib/elastic_apm/config.rb +2 -0
  55. data/lib/elastic_apm/context_builder.rb +5 -2
  56. data/lib/elastic_apm/instrumenter.rb +23 -3
  57. data/lib/elastic_apm/spies/http.rb +1 -1
  58. data/lib/elastic_apm/spies/sidekiq.rb +2 -1
  59. data/lib/elastic_apm/stacktrace_builder.rb +3 -3
  60. data/lib/elastic_apm/transaction.rb +11 -4
  61. data/lib/elastic_apm/version.rb +1 -1
  62. data/updatecli-compose.yaml +23 -0
  63. metadata +49 -37
  64. data/.ci/snapshoty.yml +0 -33
  65. data/.ci/updatecli/updatecli.d/update-gherkin-specs.yml +0 -84
  66. data/.ci/updatecli/updatecli.d/update-json-specs.yml +0 -84
  67. data/.ci/updatecli/updatecli.d/update-specs.yml +0 -86
  68. data/.ci/updatecli/values.yml +0 -14
  69. data/.github/workflows/coverage-reporter.yml +0 -34
  70. data/.github/workflows/opentelemetry.yml +0 -22
  71. data/.github/workflows/snapshoty.yml +0 -35
  72. data/CHANGELOG.asciidoc +0 -990
  73. data/SECURITY.md +0 -7
  74. data/docs/advanced.asciidoc +0 -14
  75. data/docs/api.asciidoc +0 -487
  76. data/docs/configuration.asciidoc +0 -889
  77. data/docs/custom-instrumentation.asciidoc +0 -80
  78. data/docs/debugging.asciidoc +0 -44
  79. data/docs/getting-started-rails.asciidoc +0 -30
  80. data/docs/graphql.asciidoc +0 -23
  81. data/docs/index.asciidoc +0 -38
  82. data/docs/introduction.asciidoc +0 -36
  83. data/docs/metrics.asciidoc +0 -235
  84. data/docs/opentracing.asciidoc +0 -94
  85. data/docs/performance-tuning.asciidoc +0 -106
  86. data/docs/redirects.asciidoc +0 -9
  87. data/docs/release-notes.asciidoc +0 -15
  88. data/docs/set-up.asciidoc +0 -19
  89. data/docs/supported-technologies.asciidoc +0 -157
  90. data/docs/upgrading.asciidoc +0 -18
  91. /data/docs/{images → reference/images}/dynamic-config.svg +0 -0
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.3
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Malmberg
8
8
  - Emily Stolfo
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-04-08 00:00:00.000000000 Z
12
+ date: 2026-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby
@@ -32,6 +32,9 @@ dependencies:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3.0'
35
+ - - "<"
36
+ - !ruby/object:Gem::Version
37
+ version: '7.0'
35
38
  type: :runtime
36
39
  prerelease: false
37
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -39,6 +42,9 @@ dependencies:
39
42
  - - ">="
40
43
  - !ruby/object:Gem::Version
41
44
  version: '3.0'
45
+ - - "<"
46
+ - !ruby/object:Gem::Version
47
+ version: '7.0'
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: ruby2_keywords
44
50
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +59,7 @@ dependencies:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
55
61
  version: '0'
56
- description:
62
+ description:
57
63
  email:
58
64
  - info@elastic.co
59
65
  executables: []
@@ -75,11 +81,12 @@ files:
75
81
  - ".ci/docker/jruby/test.sh"
76
82
  - ".ci/scripts/bench.sh"
77
83
  - ".ci/scripts/install-build-system.sh"
78
- - ".ci/snapshoty.yml"
79
- - ".ci/updatecli/updatecli.d/update-gherkin-specs.yml"
80
- - ".ci/updatecli/updatecli.d/update-json-specs.yml"
81
- - ".ci/updatecli/updatecli.d/update-specs.yml"
82
- - ".ci/updatecli/values.yml"
84
+ - ".ci/updatecli/values.d/apm-data-spec.yml"
85
+ - ".ci/updatecli/values.d/apm-gherkin.yml"
86
+ - ".ci/updatecli/values.d/apm-json-specs.yml"
87
+ - ".ci/updatecli/values.d/scm.yml"
88
+ - ".ci/updatecli/values.d/update-compose.yml"
89
+ - ".github/CODEOWNERS"
83
90
  - ".github/ISSUE_TEMPLATE/Bug_report.md"
84
91
  - ".github/ISSUE_TEMPLATE/Feature_request.md"
85
92
  - ".github/PULL_REQUEST_TEMPLATE.md"
@@ -89,20 +96,20 @@ files:
89
96
  - ".github/workflows/addToProject.yml"
90
97
  - ".github/workflows/ci-docs.yml"
91
98
  - ".github/workflows/ci.yml"
92
- - ".github/workflows/coverage-reporter.yml"
99
+ - ".github/workflows/docs-build.yml"
100
+ - ".github/workflows/docs-deploy.yml"
101
+ - ".github/workflows/docs-preview-cleanup.yml"
102
+ - ".github/workflows/github-commands-comment.yml"
93
103
  - ".github/workflows/labeler.yml"
94
104
  - ".github/workflows/microbenchmark.yml"
95
- - ".github/workflows/opentelemetry.yml"
96
105
  - ".github/workflows/release.yml"
97
106
  - ".github/workflows/run-matrix.yml"
98
- - ".github/workflows/snapshoty.yml"
99
107
  - ".github/workflows/test-reporter.yml"
100
108
  - ".github/workflows/updatecli.yml"
101
109
  - ".gitignore"
102
110
  - ".pre-commit-config.yaml"
103
111
  - ".rspec"
104
112
  - ".rubocop.yml"
105
- - CHANGELOG.asciidoc
106
113
  - CODE_OF_CONDUCT.md
107
114
  - CONTRIBUTING.md
108
115
  - Dockerfile
@@ -110,7 +117,6 @@ files:
110
117
  - LICENSE
111
118
  - README.md
112
119
  - Rakefile
113
- - SECURITY.md
114
120
  - bench/.gitignore
115
121
  - bench/app.rb
116
122
  - bench/benchmark.rb
@@ -127,27 +133,28 @@ files:
127
133
  - bin/setup
128
134
  - bin/with_framework
129
135
  - docker-compose.yml
130
- - docs/advanced.asciidoc
131
- - docs/api.asciidoc
132
- - docs/configuration.asciidoc
133
- - docs/context.asciidoc
134
- - docs/custom-instrumentation.asciidoc
135
- - docs/debugging.asciidoc
136
- - docs/getting-started-rack.asciidoc
137
- - docs/getting-started-rails.asciidoc
138
- - docs/graphql.asciidoc
139
- - docs/images/dynamic-config.svg
140
- - docs/index.asciidoc
141
- - docs/introduction.asciidoc
142
- - docs/logs.asciidoc
143
- - docs/metrics.asciidoc
144
- - docs/opentracing.asciidoc
145
- - docs/performance-tuning.asciidoc
146
- - docs/redirects.asciidoc
147
- - docs/release-notes.asciidoc
148
- - docs/set-up.asciidoc
149
- - docs/supported-technologies.asciidoc
150
- - docs/upgrading.asciidoc
136
+ - docs/docset.yml
137
+ - docs/reference/advanced-topics.md
138
+ - docs/reference/api-reference.md
139
+ - docs/reference/configuration.md
140
+ - docs/reference/context.md
141
+ - docs/reference/custom-instrumentation.md
142
+ - docs/reference/getting-started-rack.md
143
+ - docs/reference/getting-started-rails.md
144
+ - docs/reference/graphql.md
145
+ - docs/reference/images/dynamic-config.svg
146
+ - docs/reference/index.md
147
+ - docs/reference/logs.md
148
+ - docs/reference/metrics.md
149
+ - docs/reference/opentracing-api.md
150
+ - docs/reference/performance-tuning.md
151
+ - docs/reference/set-up-apm-ruby-agent.md
152
+ - docs/reference/supported-technologies.md
153
+ - docs/reference/toc.yml
154
+ - docs/reference/upgrading.md
155
+ - docs/release-notes/index.md
156
+ - docs/release-notes/known-issues.md
157
+ - docs/release-notes/toc.yml
151
158
  - elastic-apm.gemspec
152
159
  - lib/elastic-apm.rb
153
160
  - lib/elastic_apm.rb
@@ -162,6 +169,7 @@ files:
162
169
  - lib/elastic_apm/config/options.rb
163
170
  - lib/elastic_apm/config/regexp_list.rb
164
171
  - lib/elastic_apm/config/round_float.rb
172
+ - lib/elastic_apm/config/round_float_hash_value.rb
165
173
  - lib/elastic_apm/config/server_info.rb
166
174
  - lib/elastic_apm/config/wildcard_pattern_list.rb
167
175
  - lib/elastic_apm/context.rb
@@ -283,12 +291,13 @@ files:
283
291
  - lib/elastic_apm/util/precision_validator.rb
284
292
  - lib/elastic_apm/util/throttle.rb
285
293
  - lib/elastic_apm/version.rb
294
+ - updatecli-compose.yaml
286
295
  homepage: https://github.com/elastic/apm-agent-ruby
287
296
  licenses:
288
297
  - Apache-2.0
289
298
  metadata:
290
299
  source_code_uri: https://github.com/elastic/apm-agent-ruby
291
- post_install_message:
300
+ post_install_message:
292
301
  rdoc_options: []
293
302
  require_paths:
294
303
  - lib
@@ -297,6 +306,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
306
  - - ">="
298
307
  - !ruby/object:Gem::Version
299
308
  version: 2.3.0
309
+ - - "<"
310
+ - !ruby/object:Gem::Version
311
+ version: '4.0'
300
312
  required_rubygems_version: !ruby/object:Gem::Requirement
301
313
  requirements:
302
314
  - - ">="
@@ -304,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
316
  version: '0'
305
317
  requirements: []
306
318
  rubygems_version: 3.0.3.1
307
- signing_key:
319
+ signing_key:
308
320
  specification_version: 4
309
321
  summary: The official Elastic APM agent for Ruby
310
322
  test_files: []
data/.ci/snapshoty.yml DELETED
@@ -1,33 +0,0 @@
1
- ---
2
-
3
- # Version of configuration to use
4
- version: '1.0'
5
-
6
- # You can define a Google Cloud Account to use
7
- account:
8
- # Project id of the service account
9
- project: '${GCS_PROJECT}'
10
- # Private key id of the service account
11
- private_key_id: '${GCS_PRIVATE_KEY_ID}'
12
- # Private key of the service account
13
- private_key: '${GCS_PRIVATE_KEY}'
14
- # Email of the service account
15
- client_email: '${GCS_CLIENT_EMAIL}'
16
- # URI token
17
- token_uri: 'https://oauth2.googleapis.com/token'
18
-
19
- # List of artifacts
20
- artifacts:
21
- # Path to use for artifacts discovery
22
- - path: './pkg'
23
- # Files pattern to match
24
- files_pattern: 'elastic-apm-(?P<app_version>\d+\.\d+\.\d+)\.gem'
25
- # File layout on GCS bucket
26
- output_pattern: '{project}/{github_branch_name}/elastic-apm-ruby-{app_version}-{github_sha_short}.gem'
27
- # List of metadata processors to use.
28
- metadata:
29
- # Define static custom metadata
30
- - name: 'custom'
31
- data:
32
- project: 'apm-agent-ruby'
33
- - name: 'github_actions'
@@ -1,84 +0,0 @@
1
- name: update-gherkin-specs
2
- pipelineid: update-gherkin-specs
3
-
4
- scms:
5
- default:
6
- kind: github
7
- spec:
8
- user: '{{ requiredEnv "GIT_USER" }}'
9
- email: '{{ requiredEnv "GIT_EMAIL" }}'
10
- owner: "{{ .github.owner }}"
11
- repository: "{{ .github.repository }}"
12
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
13
- username: '{{ requiredEnv "GIT_USER" }}'
14
- branch: "{{ .github.branch }}"
15
- apm:
16
- kind: github
17
- spec:
18
- user: '{{ requiredEnv "GIT_USER" }}'
19
- email: '{{ requiredEnv "GIT_EMAIL" }}'
20
- owner: "{{ .github.owner }}"
21
- repository: "{{ .github.apm_repository }}"
22
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
23
- username: '{{ requiredEnv "GIT_USER" }}'
24
- branch: "{{ .github.branch }}"
25
-
26
- sources:
27
- sha:
28
- kind: file
29
- spec:
30
- file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ .github.branch }}.patch'
31
- matchpattern: "^From\\s([0-9a-f]{40})\\s"
32
- transformers:
33
- - findsubmatch:
34
- pattern: "[0-9a-f]{40}"
35
- pull_request:
36
- kind: shell
37
- dependson:
38
- - sha
39
- spec:
40
- command: gh api /repos/{{ .github.owner }}/{{ .github.apm_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url'
41
- environments:
42
- - name: GITHUB_TOKEN
43
- - name: PATH
44
- agents-gherkin-specs-tarball:
45
- kind: shell
46
- scmid: apm
47
- dependson:
48
- - sha
49
- spec:
50
- command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/gherkin-specs.tgz .
51
- environments:
52
- - name: PATH
53
- workdir: "{{ .specs.apm_gherkin_path }}"
54
-
55
- actions:
56
- pr:
57
- kind: "github/pullrequest"
58
- scmid: default
59
- spec:
60
- automerge: false
61
- draft: false
62
- labels:
63
- - "automation"
64
- description: |-
65
- ### What
66
- APM agent Gherkin specs automatic sync
67
-
68
- ### Why
69
- *Changeset*
70
- * {{ source "pull_request" }}
71
- * https://github.com/elastic/apm/commit/{{ source "sha" }}
72
- title: '[Automation] Update Gherkin specs'
73
-
74
- targets:
75
- agent-gherkin-specs:
76
- name: APM agent gherkin specs {{ source "sha" }}
77
- scmid: default
78
- disablesourceinput: true
79
- kind: shell
80
- spec:
81
- # git diff helps to print what it changed, If it is empty, then updatecli report a success with no changes applied.
82
- # See https://www.updatecli.io/docs/plugins/resource/shell/#_shell_target
83
- command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/gherkin-specs.tgz && git --no-pager diff'
84
- workdir: "{{ .apm_agent.gherkin_specs_path }}"
@@ -1,84 +0,0 @@
1
- name: update-json-specs
2
- pipelineid: update-json-specs
3
-
4
- scms:
5
- default:
6
- kind: github
7
- spec:
8
- user: '{{ requiredEnv "GIT_USER" }}'
9
- email: '{{ requiredEnv "GIT_EMAIL" }}'
10
- owner: "{{ .github.owner }}"
11
- repository: "{{ .github.repository }}"
12
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
13
- username: '{{ requiredEnv "GIT_USER" }}'
14
- branch: "{{ .github.branch }}"
15
- apm:
16
- kind: github
17
- spec:
18
- user: '{{ requiredEnv "GIT_USER" }}'
19
- email: '{{ requiredEnv "GIT_EMAIL" }}'
20
- owner: "{{ .github.owner }}"
21
- repository: "{{ .github.apm_repository }}"
22
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
23
- username: '{{ requiredEnv "GIT_USER" }}'
24
- branch: "{{ .github.branch }}"
25
-
26
- sources:
27
- sha:
28
- kind: file
29
- spec:
30
- file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ .github.branch }}.patch'
31
- matchpattern: "^From\\s([0-9a-f]{40})\\s"
32
- transformers:
33
- - findsubmatch:
34
- pattern: "[0-9a-f]{40}"
35
- pull_request:
36
- kind: shell
37
- dependson:
38
- - sha
39
- spec:
40
- command: gh api /repos/{{ .github.owner }}/{{ .github.apm_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url'
41
- environments:
42
- - name: GITHUB_TOKEN
43
- - name: PATH
44
- agents-json-specs-tarball:
45
- kind: shell
46
- scmid: apm
47
- dependson:
48
- - sha
49
- spec:
50
- command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz .
51
- environments:
52
- - name: PATH
53
- workdir: "{{ .specs.apm_json_path }}"
54
-
55
- actions:
56
- pr:
57
- kind: "github/pullrequest"
58
- scmid: default
59
- spec:
60
- automerge: false
61
- draft: false
62
- labels:
63
- - "automation"
64
- description: |-
65
- ### What
66
- APM agent specs automatic sync
67
-
68
- ### Why
69
- *Changeset*
70
- * {{ source "pull_request" }}
71
- * https://github.com/{{ .github.owner }}/{{ .github.apm_repository }}/commit/{{ source "sha" }}
72
- title: '[Automation] Update JSON specs'
73
-
74
- targets:
75
- agent-json-specs:
76
- name: APM agent json specs {{ source "sha" }}
77
- scmid: default
78
- disablesourceinput: true
79
- kind: shell
80
- spec:
81
- # git diff helps to print what it changed, If it is empty, then updatecli report a success with no changes applied.
82
- # See https://www.updatecli.io/docs/plugins/resource/shell/#_shell_target
83
- command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-specs.tgz && git --no-pager diff'
84
- workdir: "{{ .apm_agent.json_specs_path }}"
@@ -1,86 +0,0 @@
1
- name: update-specs
2
- pipelineid: update-schema-specs
3
-
4
- scms:
5
- default:
6
- kind: github
7
- spec:
8
- user: '{{ requiredEnv "GIT_USER" }}'
9
- email: '{{ requiredEnv "GIT_EMAIL" }}'
10
- owner: "{{ .github.owner }}"
11
- repository: "{{ .github.repository }}"
12
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
13
- username: '{{ requiredEnv "GIT_USER" }}'
14
- branch: "{{ .github.branch }}"
15
-
16
- apm-data:
17
- kind: github
18
- spec:
19
- user: '{{ requiredEnv "GIT_USER" }}'
20
- email: '{{ requiredEnv "GIT_EMAIL" }}'
21
- owner: "{{ .github.owner }}"
22
- repository: "{{ .github.apm_data_repository }}"
23
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
24
- username: '{{ requiredEnv "GIT_USER" }}'
25
- branch: "{{ .github.branch }}"
26
-
27
- sources:
28
- sha:
29
- kind: file
30
- spec:
31
- file: 'https://github.com/{{ .github.owner }}/{{ .github.apm_data_repository }}/commit/{{ .github.branch }}.patch'
32
- matchpattern: "^From\\s([0-9a-f]{40})\\s"
33
- transformers:
34
- - findsubmatch:
35
- pattern: "[0-9a-f]{40}"
36
- pull_request:
37
- kind: shell
38
- dependson:
39
- - sha
40
- spec:
41
- command: gh api /repos/{{ .github.owner }}/{{ .github.apm_data_repository }}/commits/{{ source "sha" }}/pulls --jq '.[].html_url'
42
- environments:
43
- - name: GITHUB_TOKEN
44
- - name: PATH
45
- agent-specs-tarball:
46
- kind: shell
47
- scmid: apm-data
48
- dependson:
49
- - sha
50
- spec:
51
- command: tar cvzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-schema.tgz .
52
- environments:
53
- - name: PATH
54
- workdir: "{{ .specs.apm_data_path }}"
55
-
56
- actions:
57
- pr:
58
- kind: "github/pullrequest"
59
- scmid: default
60
- sourceid: sha
61
- spec:
62
- automerge: false
63
- draft: false
64
- labels:
65
- - "automation"
66
- description: |-
67
- ### What
68
- APM agent json server schema automatic sync
69
-
70
- ### Why
71
- *Changeset*
72
- * {{ source "pull_request" }}
73
- * https://github.com/{{ .github.owner }}/{{ .github.apm_data_repository }}/commit/{{ source "sha" }}
74
- title: '[Automation] Update JSON server schema specs'
75
-
76
- targets:
77
- agent-json-schema:
78
- name: APM agent json server schema {{ source "sha" }}
79
- scmid: default
80
- disablesourceinput: true
81
- kind: shell
82
- spec:
83
- # git diff helps to print what it changed, If it is empty, then updatecli report a success with no changes applied.
84
- # See https://www.updatecli.io/docs/plugins/resource/shell/#_shell_target
85
- command: 'tar -xzf {{ requiredEnv "GITHUB_WORKSPACE" }}/json-schema.tgz && git --no-pager diff'
86
- workdir: "{{ .apm_agent.server_schema_specs_path }}"
@@ -1,14 +0,0 @@
1
- github:
2
- owner: "elastic"
3
- repository: "apm-agent-ruby"
4
- apm_repository: "apm"
5
- apm_data_repository: "apm-data"
6
- branch: "main"
7
- specs:
8
- apm_data_path: "input/elasticapm/docs/spec/v2"
9
- apm_json_path: "tests/agents/json-specs"
10
- apm_gherkin_path: "tests/agents/gherkin-specs"
11
- apm_agent:
12
- gherkin_specs_path: "features"
13
- json_specs_path: "spec/fixtures"
14
- server_schema_specs_path: "spec/fixtures"
@@ -1,34 +0,0 @@
1
- ---
2
- ## Workflow to process coverage report
3
- ## For now the coverage is not reported. This workflow is just here as preparation for
4
- ## https://github.com/elastic/observability-robots/issues/1546
5
- name: coverage-reporter
6
- on:
7
- workflow_run:
8
- workflows:
9
- - test
10
- types:
11
- - completed
12
-
13
- permissions:
14
- contents: read
15
-
16
- jobs:
17
- report:
18
- runs-on: ubuntu-latest
19
- steps:
20
- - uses: actions/checkout@v3
21
- - name: Download artifacts
22
- run: >
23
- gh run download ${{ github.event.workflow_run.id }}
24
- --name coverage
25
- --repo "${GITHUB_REPOSITORY}"
26
- --dir coverage
27
- env:
28
- GH_TOKEN: ${{ github.token }}
29
- - run: ls -l coverage/matrix_results
30
- # - run: ./spec/scripts/coverage_converge.sh
31
- # - uses: actions/upload-artifact@v3
32
- # with:
33
- # name: coverage-report
34
- # path: coverage/coverage.xml
@@ -1,22 +0,0 @@
1
- ---
2
- # Look up results at https://ela.st/oblt-ci-cd-stats.
3
- # There will be one service per GitHub repository, including the org name, and one Transaction per Workflow.
4
- name: OpenTelemetry Export Trace
5
-
6
- on:
7
- workflow_run:
8
- workflows: [ "*" ]
9
- types: [completed]
10
-
11
- permissions:
12
- contents: read
13
-
14
- jobs:
15
- otel-export-trace:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: elastic/apm-pipeline-library/.github/actions/opentelemetry@current
19
- with:
20
- vaultUrl: ${{ secrets.VAULT_ADDR }}
21
- vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
22
- vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
@@ -1,35 +0,0 @@
1
- name: snapshoty
2
-
3
- on:
4
- workflow_run:
5
- workflows:
6
- - ci
7
- types:
8
- - completed
9
- branches:
10
- - main
11
-
12
- permissions:
13
- contents: read
14
-
15
- jobs:
16
- publish:
17
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
18
- runs-on: ubuntu-latest
19
- steps:
20
- - uses: actions/checkout@v3
21
- - name: Download artifacts
22
- run: >
23
- gh run download ${{ github.event.workflow_run.id }}
24
- --name package
25
- --repo "${GITHUB_REPOSITORY}"
26
- --dir pkg
27
- env:
28
- GH_TOKEN: ${{ github.token }}
29
- - name: Publish snapshot
30
- uses: elastic/apm-pipeline-library/.github/actions/snapshoty-simple@current
31
- with:
32
- config: '.ci/snapshoty.yml'
33
- vaultUrl: ${{ secrets.VAULT_ADDR }}
34
- vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
35
- vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}