elastic-apm 4.7.3 → 4.8.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/.ci/.exclude.yml +21 -82
- data/.ci/.framework.yml +1 -4
- data/.ci/.ruby.yml +1 -1
- data/.ci/updatecli/values.d/apm-data-spec.yml +1 -0
- data/.ci/updatecli/values.d/apm-gherkin.yml +1 -0
- data/.ci/updatecli/values.d/apm-json-specs.yml +1 -0
- data/.ci/updatecli/values.d/scm.yml +10 -0
- data/.ci/updatecli/values.d/update-compose.yml +3 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +2 -2
- data/.github/dependabot.yml +24 -19
- data/.github/workflows/README.md +1 -2
- data/.github/workflows/addToProject.yml +16 -2
- data/.github/workflows/ci.yml +6 -6
- data/.github/workflows/docs-build.yml +19 -0
- data/.github/workflows/docs-cleanup.yml +14 -0
- data/.github/workflows/github-commands-comment.yml +38 -0
- data/.github/workflows/microbenchmark.yml +7 -24
- data/.github/workflows/release.yml +39 -24
- data/.github/workflows/run-matrix.yml +21 -12
- data/.github/workflows/test-reporter.yml +4 -3
- data/.github/workflows/updatecli.yml +45 -13
- data/Gemfile +13 -0
- data/bin/dev +2 -2
- data/docs/docset.yml +9 -0
- data/docs/reference/advanced-topics.md +12 -0
- data/docs/reference/api-reference.md +422 -0
- data/docs/reference/configuration.md +734 -0
- data/docs/{context.asciidoc → reference/context.md} +21 -21
- data/docs/reference/custom-instrumentation.md +72 -0
- data/docs/{getting-started-rack.asciidoc → reference/getting-started-rack.md} +20 -29
- data/docs/reference/getting-started-rails.md +27 -0
- data/docs/reference/graphql.md +21 -0
- data/docs/reference/index.md +24 -0
- data/docs/{logs.asciidoc → reference/logs.md} +38 -56
- data/docs/reference/metrics.md +199 -0
- data/docs/reference/opentracing-api.md +70 -0
- data/docs/reference/performance-tuning.md +71 -0
- data/docs/reference/set-up-apm-ruby-agent.md +16 -0
- data/docs/reference/supported-technologies.md +128 -0
- data/docs/reference/toc.yml +22 -0
- data/docs/reference/upgrading.md +19 -0
- data/docs/release-notes/index.md +166 -0
- data/docs/release-notes/known-issues.md +24 -0
- data/docs/release-notes/toc.yml +3 -0
- data/lib/elastic_apm/context_builder.rb +5 -2
- data/lib/elastic_apm/spies/sidekiq.rb +2 -1
- data/lib/elastic_apm/stacktrace_builder.rb +3 -3
- data/lib/elastic_apm/version.rb +1 -1
- data/updatecli-compose.yaml +23 -0
- metadata +37 -36
- data/.ci/snapshoty.yml +0 -33
- data/.ci/updatecli/updatecli.d/update-gherkin-specs.yml +0 -84
- data/.ci/updatecli/updatecli.d/update-json-specs.yml +0 -84
- data/.ci/updatecli/updatecli.d/update-specs.yml +0 -86
- data/.ci/updatecli/values.yml +0 -14
- data/.github/workflows/coverage-reporter.yml +0 -34
- data/.github/workflows/opentelemetry.yml +0 -22
- data/.github/workflows/snapshoty.yml +0 -35
- data/CHANGELOG.asciidoc +0 -990
- data/docs/advanced.asciidoc +0 -14
- data/docs/api.asciidoc +0 -487
- data/docs/configuration.asciidoc +0 -889
- data/docs/custom-instrumentation.asciidoc +0 -80
- data/docs/debugging.asciidoc +0 -44
- data/docs/getting-started-rails.asciidoc +0 -30
- data/docs/graphql.asciidoc +0 -23
- data/docs/index.asciidoc +0 -38
- data/docs/introduction.asciidoc +0 -36
- data/docs/metrics.asciidoc +0 -235
- data/docs/opentracing.asciidoc +0 -94
- data/docs/performance-tuning.asciidoc +0 -106
- data/docs/redirects.asciidoc +0 -9
- data/docs/release-notes.asciidoc +0 -15
- data/docs/set-up.asciidoc +0 -19
- data/docs/supported-technologies.asciidoc +0 -157
- data/docs/upgrading.asciidoc +0 -18
- /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.
|
4
|
+
version: 4.8.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:
|
12
|
+
date: 2025-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
-
description:
|
56
|
+
description:
|
57
57
|
email:
|
58
58
|
- info@elastic.co
|
59
59
|
executables: []
|
@@ -75,11 +75,11 @@ files:
|
|
75
75
|
- ".ci/docker/jruby/test.sh"
|
76
76
|
- ".ci/scripts/bench.sh"
|
77
77
|
- ".ci/scripts/install-build-system.sh"
|
78
|
-
- ".ci/
|
79
|
-
- ".ci/updatecli/
|
80
|
-
- ".ci/updatecli/
|
81
|
-
- ".ci/updatecli/
|
82
|
-
- ".ci/updatecli/values.yml"
|
78
|
+
- ".ci/updatecli/values.d/apm-data-spec.yml"
|
79
|
+
- ".ci/updatecli/values.d/apm-gherkin.yml"
|
80
|
+
- ".ci/updatecli/values.d/apm-json-specs.yml"
|
81
|
+
- ".ci/updatecli/values.d/scm.yml"
|
82
|
+
- ".ci/updatecli/values.d/update-compose.yml"
|
83
83
|
- ".github/ISSUE_TEMPLATE/Bug_report.md"
|
84
84
|
- ".github/ISSUE_TEMPLATE/Feature_request.md"
|
85
85
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
@@ -89,20 +89,19 @@ files:
|
|
89
89
|
- ".github/workflows/addToProject.yml"
|
90
90
|
- ".github/workflows/ci-docs.yml"
|
91
91
|
- ".github/workflows/ci.yml"
|
92
|
-
- ".github/workflows/
|
92
|
+
- ".github/workflows/docs-build.yml"
|
93
|
+
- ".github/workflows/docs-cleanup.yml"
|
94
|
+
- ".github/workflows/github-commands-comment.yml"
|
93
95
|
- ".github/workflows/labeler.yml"
|
94
96
|
- ".github/workflows/microbenchmark.yml"
|
95
|
-
- ".github/workflows/opentelemetry.yml"
|
96
97
|
- ".github/workflows/release.yml"
|
97
98
|
- ".github/workflows/run-matrix.yml"
|
98
|
-
- ".github/workflows/snapshoty.yml"
|
99
99
|
- ".github/workflows/test-reporter.yml"
|
100
100
|
- ".github/workflows/updatecli.yml"
|
101
101
|
- ".gitignore"
|
102
102
|
- ".pre-commit-config.yaml"
|
103
103
|
- ".rspec"
|
104
104
|
- ".rubocop.yml"
|
105
|
-
- CHANGELOG.asciidoc
|
106
105
|
- CODE_OF_CONDUCT.md
|
107
106
|
- CONTRIBUTING.md
|
108
107
|
- Dockerfile
|
@@ -127,27 +126,28 @@ files:
|
|
127
126
|
- bin/setup
|
128
127
|
- bin/with_framework
|
129
128
|
- docker-compose.yml
|
130
|
-
- docs/
|
131
|
-
- docs/
|
132
|
-
- docs/
|
133
|
-
- docs/
|
134
|
-
- docs/
|
135
|
-
- docs/
|
136
|
-
- docs/getting-started-rack.
|
137
|
-
- docs/getting-started-rails.
|
138
|
-
- docs/graphql.
|
139
|
-
- docs/images/dynamic-config.svg
|
140
|
-
- docs/index.
|
141
|
-
- docs/
|
142
|
-
- docs/
|
143
|
-
- docs/
|
144
|
-
- docs/
|
145
|
-
- docs/
|
146
|
-
- docs/
|
147
|
-
- docs/
|
148
|
-
- docs/
|
149
|
-
- docs/
|
150
|
-
- docs/
|
129
|
+
- docs/docset.yml
|
130
|
+
- docs/reference/advanced-topics.md
|
131
|
+
- docs/reference/api-reference.md
|
132
|
+
- docs/reference/configuration.md
|
133
|
+
- docs/reference/context.md
|
134
|
+
- docs/reference/custom-instrumentation.md
|
135
|
+
- docs/reference/getting-started-rack.md
|
136
|
+
- docs/reference/getting-started-rails.md
|
137
|
+
- docs/reference/graphql.md
|
138
|
+
- docs/reference/images/dynamic-config.svg
|
139
|
+
- docs/reference/index.md
|
140
|
+
- docs/reference/logs.md
|
141
|
+
- docs/reference/metrics.md
|
142
|
+
- docs/reference/opentracing-api.md
|
143
|
+
- docs/reference/performance-tuning.md
|
144
|
+
- docs/reference/set-up-apm-ruby-agent.md
|
145
|
+
- docs/reference/supported-technologies.md
|
146
|
+
- docs/reference/toc.yml
|
147
|
+
- docs/reference/upgrading.md
|
148
|
+
- docs/release-notes/index.md
|
149
|
+
- docs/release-notes/known-issues.md
|
150
|
+
- docs/release-notes/toc.yml
|
151
151
|
- elastic-apm.gemspec
|
152
152
|
- lib/elastic-apm.rb
|
153
153
|
- lib/elastic_apm.rb
|
@@ -283,12 +283,13 @@ files:
|
|
283
283
|
- lib/elastic_apm/util/precision_validator.rb
|
284
284
|
- lib/elastic_apm/util/throttle.rb
|
285
285
|
- lib/elastic_apm/version.rb
|
286
|
+
- updatecli-compose.yaml
|
286
287
|
homepage: https://github.com/elastic/apm-agent-ruby
|
287
288
|
licenses:
|
288
289
|
- Apache-2.0
|
289
290
|
metadata:
|
290
291
|
source_code_uri: https://github.com/elastic/apm-agent-ruby
|
291
|
-
post_install_message:
|
292
|
+
post_install_message:
|
292
293
|
rdoc_options: []
|
293
294
|
require_paths:
|
294
295
|
- lib
|
@@ -304,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
305
|
version: '0'
|
305
306
|
requirements: []
|
306
307
|
rubygems_version: 3.0.3.1
|
307
|
-
signing_key:
|
308
|
+
signing_key:
|
308
309
|
specification_version: 4
|
309
310
|
summary: The official Elastic APM agent for Ruby
|
310
311
|
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 }}"
|
data/.ci/updatecli/values.yml
DELETED
@@ -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 }}
|