elastic-apm 4.6.2 → 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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/.ci/.exclude.yml +132 -0
  3. data/.ci/{.jenkins_framework.yml → .framework.yml} +1 -4
  4. data/.ci/.ruby.yml +10 -0
  5. data/.ci/scripts/bench.sh +52 -0
  6. data/.ci/scripts/install-build-system.sh +5 -0
  7. data/.ci/updatecli/values.d/apm-data-spec.yml +1 -0
  8. data/.ci/updatecli/values.d/apm-gherkin.yml +1 -0
  9. data/.ci/updatecli/values.d/apm-json-specs.yml +1 -0
  10. data/.ci/updatecli/values.d/scm.yml +10 -0
  11. data/.ci/updatecli/values.d/update-compose.yml +3 -0
  12. data/.github/PULL_REQUEST_TEMPLATE.md +2 -2
  13. data/.github/dependabot.yml +35 -14
  14. data/.github/workflows/README.md +57 -0
  15. data/.github/workflows/addToProject.yml +19 -2
  16. data/.github/workflows/ci-docs.yml +20 -0
  17. data/.github/workflows/ci.yml +70 -0
  18. data/.github/workflows/docs-build.yml +19 -0
  19. data/.github/workflows/docs-cleanup.yml +14 -0
  20. data/.github/workflows/github-commands-comment.yml +38 -0
  21. data/.github/workflows/labeler.yml +5 -0
  22. data/.github/workflows/microbenchmark.yml +31 -0
  23. data/.github/workflows/release.yml +86 -0
  24. data/.github/workflows/run-matrix.yml +68 -0
  25. data/.github/workflows/test-reporter.yml +25 -0
  26. data/.github/workflows/updatecli.yml +61 -0
  27. data/.pre-commit-config.yaml +0 -2
  28. data/Gemfile +29 -3
  29. data/README.md +1 -1
  30. data/bench/rubyprof.rb +1 -0
  31. data/bin/dev +2 -2
  32. data/bin/run-tests +10 -1
  33. data/docker-compose.yml +4 -1
  34. data/docs/docset.yml +9 -0
  35. data/docs/reference/advanced-topics.md +12 -0
  36. data/docs/reference/api-reference.md +422 -0
  37. data/docs/reference/configuration.md +734 -0
  38. data/docs/{context.asciidoc → reference/context.md} +21 -21
  39. data/docs/reference/custom-instrumentation.md +72 -0
  40. data/docs/{getting-started-rack.asciidoc → reference/getting-started-rack.md} +20 -29
  41. data/docs/reference/getting-started-rails.md +27 -0
  42. data/docs/reference/graphql.md +21 -0
  43. data/docs/reference/index.md +24 -0
  44. data/docs/{log-correlation.asciidoc → reference/logs.md} +50 -41
  45. data/docs/reference/metrics.md +199 -0
  46. data/docs/reference/opentracing-api.md +70 -0
  47. data/docs/reference/performance-tuning.md +71 -0
  48. data/docs/reference/set-up-apm-ruby-agent.md +16 -0
  49. data/docs/reference/supported-technologies.md +128 -0
  50. data/docs/reference/toc.yml +22 -0
  51. data/docs/reference/upgrading.md +19 -0
  52. data/docs/release-notes/index.md +166 -0
  53. data/docs/release-notes/known-issues.md +24 -0
  54. data/docs/release-notes/toc.yml +3 -0
  55. data/lib/elastic_apm/context_builder.rb +15 -7
  56. data/lib/elastic_apm/metadata/cloud_info.rb +9 -7
  57. data/lib/elastic_apm/metrics.rb +24 -20
  58. data/lib/elastic_apm/span_helpers.rb +6 -6
  59. data/lib/elastic_apm/spies/action_dispatch.rb +11 -3
  60. data/lib/elastic_apm/spies/faraday.rb +8 -1
  61. data/lib/elastic_apm/spies/sidekiq.rb +2 -1
  62. data/lib/elastic_apm/stacktrace_builder.rb +3 -3
  63. data/lib/elastic_apm/version.rb +1 -1
  64. data/updatecli-compose.yaml +23 -0
  65. metadata +52 -44
  66. data/.ci/.jenkins_exclude.yml +0 -191
  67. data/.ci/.jenkins_ruby.yml +0 -10
  68. data/.ci/.jenkins_ruby_benchmarks.yml +0 -6
  69. data/.ci/Jenkinsfile +0 -450
  70. data/.ci/jobs/apm-agent-ruby-downstream.yml +0 -38
  71. data/.ci/jobs/apm-agent-ruby-linting-mbp.yml +0 -39
  72. data/.ci/jobs/apm-agent-ruby-mbp.yml +0 -43
  73. data/.ci/jobs/apm-agent-ruby.yml +0 -4
  74. data/.ci/jobs/defaults.yml +0 -24
  75. data/.ci/linting.groovy +0 -32
  76. data/.ci/packer_cache.sh +0 -16
  77. data/.ci/snapshoty.yml +0 -34
  78. data/.ci/update-specs.yml +0 -108
  79. data/.github/workflows/update-specs.yml +0 -30
  80. data/CHANGELOG.asciidoc +0 -951
  81. data/docs/advanced.asciidoc +0 -14
  82. data/docs/api.asciidoc +0 -487
  83. data/docs/configuration.asciidoc +0 -888
  84. data/docs/custom-instrumentation.asciidoc +0 -80
  85. data/docs/debugging.asciidoc +0 -44
  86. data/docs/getting-started-rails.asciidoc +0 -30
  87. data/docs/graphql.asciidoc +0 -23
  88. data/docs/index.asciidoc +0 -38
  89. data/docs/introduction.asciidoc +0 -36
  90. data/docs/metrics.asciidoc +0 -235
  91. data/docs/opentracing.asciidoc +0 -94
  92. data/docs/performance-tuning.asciidoc +0 -106
  93. data/docs/release-notes.asciidoc +0 -15
  94. data/docs/set-up.asciidoc +0 -19
  95. data/docs/supported-technologies.asciidoc +0 -157
  96. data/docs/upgrading.asciidoc +0 -18
  97. /data/.ci/{.jenkins_codecov.yml → .codecov.yml} +0 -0
  98. /data/.ci/{.jenkins_main_framework.yml → .main_framework.yml} +0 -0
  99. /data/docs/{images → reference/images}/dynamic-config.svg +0 -0
data/.ci/update-specs.yml DELETED
@@ -1,108 +0,0 @@
1
- name: update-specs
2
-
3
- title: synchronize schema specs
4
-
5
- scms:
6
- default:
7
- kind: github
8
- spec:
9
- user: '{{ requiredEnv "GIT_USER" }}'
10
- email: '{{ requiredEnv "GIT_EMAIL" }}'
11
- owner: elastic
12
- repository: apm-agent-ruby
13
- token: '{{ requiredEnv "GITHUB_TOKEN" }}'
14
- username: '{{ requiredEnv "GIT_USER" }}'
15
- branch: main
16
-
17
- sources:
18
- sha:
19
- kind: file
20
- spec:
21
- file: 'https://github.com/elastic/apm-data/commit/main.patch'
22
- matchpattern: "^From\\s([0-9a-f]{40})\\s"
23
- transformers:
24
- - findsubmatch:
25
- pattern: "[0-9a-f]{40}"
26
- error.json:
27
- kind: file
28
- spec:
29
- file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/error.json
30
- metadata.json:
31
- kind: file
32
- spec:
33
- file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/metadata.json
34
- metricset.json:
35
- kind: file
36
- spec:
37
- file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/metricset.json
38
- span.json:
39
- kind: file
40
- spec:
41
- file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/span.json
42
- transaction.json:
43
- kind: file
44
- spec:
45
- file: https://raw.githubusercontent.com/elastic/apm-data/main/input/elasticapm/docs/spec/v2/transaction.json
46
-
47
-
48
-
49
-
50
-
51
- actions:
52
- pr:
53
- kind: "github/pullrequest"
54
- scmid: default
55
- sourceid: sha
56
- spec:
57
- automerge: false
58
- draft: false
59
- labels:
60
- - "automation"
61
- description: |-
62
- ### What
63
- APM agent json schema automatic sync
64
- ### Why
65
- *Changeset*
66
- * https://github.com/elastic/apm-data/commit/{{ source "sha" }}
67
-
68
- targets:
69
- error.json:
70
- name: error.json
71
- scmid: default
72
- sourceid: error.json
73
- kind: file
74
- spec:
75
- file: spec/fixtures/error.json
76
- forcecreate: true
77
- metadata.json:
78
- name: metadata.json
79
- scmid: default
80
- sourceid: metadata.json
81
- kind: file
82
- spec:
83
- file: spec/fixtures/metadata.json
84
- forcecreate: true
85
- metricset.json:
86
- name: metricset.json
87
- scmid: default
88
- sourceid: metricset.json
89
- kind: file
90
- spec:
91
- file: spec/fixtures/metricset.json
92
- forcecreate: true
93
- span.json:
94
- name: span.json
95
- scmid: default
96
- sourceid: span.json
97
- kind: file
98
- spec:
99
- file: spec/fixtures/span.json
100
- forcecreate: true
101
- transaction.json:
102
- name: transaction.json
103
- scmid: default
104
- sourceid: transaction.json
105
- kind: file
106
- spec:
107
- file: spec/fixtures/transaction.json
108
- forcecreate: true
@@ -1,30 +0,0 @@
1
- name: update-specs
2
-
3
- on:
4
- workflow_dispatch: ~
5
- schedule:
6
- - cron: '0 6 * * *'
7
-
8
- permissions:
9
- contents: read
10
-
11
- jobs:
12
- bump:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - uses: actions/checkout@v3
16
- - uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
17
- env:
18
- BRANCH_NAME: ${{ github.ref_name }}
19
- with:
20
- vaultUrl: ${{ secrets.VAULT_ADDR }}
21
- vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
22
- vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
23
- pipeline: ./.ci/update-specs.yml
24
- - if: failure()
25
- uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
26
- with:
27
- vaultUrl: ${{ secrets.VAULT_ADDR }}
28
- vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
29
- vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
30
- slackChannel: "#apm-agent-ruby"