elastic-apm 4.6.0 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.ci/.exclude.yml +193 -0
  3. data/.ci/.main_framework.yml +4 -0
  4. data/.ci/.ruby.yml +10 -0
  5. data/.ci/docker/jruby/11-jdk/Dockerfile +8 -3
  6. data/.ci/docker/jruby/12-jdk/Dockerfile +5 -2
  7. data/.ci/docker/jruby/13-jdk/Dockerfile +5 -2
  8. data/.ci/docker/jruby/7-jdk/Dockerfile +6 -3
  9. data/.ci/docker/jruby/8-jdk/Dockerfile +8 -3
  10. data/.ci/docker/jruby/README.md +1 -1
  11. data/.ci/docker/jruby/run.sh +33 -9
  12. data/.ci/docker/jruby/test.sh +17 -2
  13. data/.ci/scripts/bench.sh +52 -0
  14. data/.ci/scripts/install-build-system.sh +5 -0
  15. data/.ci/snapshoty.yml +33 -0
  16. data/.ci/updatecli.d/update-gherkin-specs.yml +117 -0
  17. data/.ci/updatecli.d/update-json-specs.yml +121 -0
  18. data/.ci/updatecli.d/update-specs.yml +108 -0
  19. data/.github/workflows/ci-docs.yml +20 -0
  20. data/.github/workflows/ci.yml +70 -0
  21. data/.github/workflows/coverage-reporter.yml +34 -0
  22. data/.github/workflows/microbenchmark.yml +48 -0
  23. data/.github/workflows/opentelemetry.yml +27 -0
  24. data/.github/workflows/release.yml +71 -0
  25. data/.github/workflows/run-matrix.yml +56 -0
  26. data/.github/workflows/snapshoty.yml +35 -0
  27. data/.github/workflows/test-reporter.yml +24 -0
  28. data/.github/workflows/updatecli.yml +28 -0
  29. data/.pre-commit-config.yaml +0 -2
  30. data/CHANGELOG.asciidoc +29 -1
  31. data/CONTRIBUTING.md +1 -1
  32. data/Gemfile +8 -2
  33. data/README.md +1 -1
  34. data/Rakefile +2 -2
  35. data/bench/rubyprof.rb +1 -0
  36. data/bin/run-tests +10 -1
  37. data/docker-compose.yml +10 -1
  38. data/docs/configuration.asciidoc +6 -5
  39. data/docs/index.asciidoc +2 -2
  40. data/docs/{log-correlation.asciidoc → logs.asciidoc} +29 -2
  41. data/docs/opentracing.asciidoc +1 -1
  42. data/docs/redirects.asciidoc +9 -0
  43. data/lib/elastic_apm/context_builder.rb +3 -3
  44. data/lib/elastic_apm/metrics.rb +24 -20
  45. data/lib/elastic_apm/span_helpers.rb +6 -6
  46. data/lib/elastic_apm/spies/faraday.rb +13 -4
  47. data/lib/elastic_apm/trace_context/tracestate.rb +3 -1
  48. data/lib/elastic_apm/transport/connection/http.rb +9 -3
  49. data/lib/elastic_apm/version.rb +1 -1
  50. metadata +25 -17
  51. data/.ci/.jenkins_exclude.yml +0 -191
  52. data/.ci/.jenkins_main_framework.yml +0 -4
  53. data/.ci/.jenkins_ruby.yml +0 -10
  54. data/.ci/.jenkins_ruby_benchmarks.yml +0 -6
  55. data/.ci/Jenkinsfile +0 -419
  56. data/.ci/jobs/apm-agent-ruby-downstream.yml +0 -38
  57. data/.ci/jobs/apm-agent-ruby-linting-mbp.yml +0 -39
  58. data/.ci/jobs/apm-agent-ruby-mbp.yml +0 -43
  59. data/.ci/jobs/apm-agent-ruby.yml +0 -4
  60. data/.ci/jobs/defaults.yml +0 -24
  61. data/.ci/linting.groovy +0 -32
  62. data/.ci/packer_cache.sh +0 -16
  63. /data/.ci/{.jenkins_codecov.yml → .codecov.yml} +0 -0
  64. /data/.ci/{.jenkins_framework.yml → .framework.yml} +0 -0
@@ -1,39 +0,0 @@
1
- ---
2
- - job:
3
- name: apm-agent-ruby/apm-agent-ruby-linting-mbp
4
- display-name: APM Agent Ruby Linting
5
- description: APM Agent Ruby Linting
6
- script-path: .ci/linting.groovy
7
- scm:
8
- - github:
9
- branch-discovery: no-pr
10
- discover-pr-forks-strategy: merge-current
11
- discover-pr-forks-trust: permission
12
- discover-pr-origin: merge-current
13
- discover-tags: false
14
- notification-context: 'apm-ci/linting'
15
- head-filter-regex: '^PR-.*$'
16
- repo: apm-agent-ruby
17
- repo-owner: elastic
18
- credentials-id: 2a9602aa-ab9f-4e52-baf3-b71ca88469c7-UserAndToken
19
- ssh-checkout:
20
- credentials: f6c7695a-671e-4f4f-a331-acdce44ff9ba
21
- build-strategies:
22
- - change-request:
23
- ignore-target-only-changes: false
24
- clean:
25
- after: true
26
- before: true
27
- prune: true
28
- shallow-clone: true
29
- depth: 3
30
- do-not-fetch-tags: true
31
- submodule:
32
- disable: false
33
- recursive: true
34
- parent-credentials: true
35
- timeout: 100
36
- reference-repo: /var/lib/jenkins/.git-references/apm-agent-ruby.git
37
- timeout: '15'
38
- use-author: true
39
- wipe-workspace: 'True'
@@ -1,43 +0,0 @@
1
- ---
2
- - job:
3
- name: apm-agent-ruby/apm-agent-ruby-mbp
4
- display-name: APM Agent Ruby
5
- description: APM Agent Ruby
6
- script-path: .ci/Jenkinsfile
7
- scm:
8
- - github:
9
- branch-discovery: no-pr
10
- discover-pr-forks-strategy: merge-current
11
- discover-pr-forks-trust: permission
12
- discover-pr-origin: merge-current
13
- discover-tags: true
14
- notification-context: 'apm-ci'
15
- repo: apm-agent-ruby
16
- repo-owner: elastic
17
- credentials-id: 2a9602aa-ab9f-4e52-baf3-b71ca88469c7-UserAndToken
18
- head-filter-regex: '^(main|PR-.*|[3-9]\.x|v4\.[5-9]+.*|v[5-9]+.*)$'
19
- ssh-checkout:
20
- credentials: f6c7695a-671e-4f4f-a331-acdce44ff9ba
21
- build-strategies:
22
- - tags:
23
- ignore-tags-older-than: -1
24
- ignore-tags-newer-than: -1
25
- - regular-branches: true
26
- - change-request:
27
- ignore-target-only-changes: false
28
- clean:
29
- after: true
30
- before: true
31
- prune: true
32
- shallow-clone: true
33
- depth: 3
34
- do-not-fetch-tags: true
35
- submodule:
36
- disable: false
37
- recursive: true
38
- parent-credentials: true
39
- timeout: 100
40
- reference-repo: /var/lib/jenkins/.git-references/apm-agent-ruby.git
41
- timeout: '15'
42
- use-author: true
43
- wipe-workspace: 'True'
@@ -1,4 +0,0 @@
1
- ---
2
- - job:
3
- name: apm-agent-ruby
4
- project-type: folder
@@ -1,24 +0,0 @@
1
- ---
2
-
3
- ##### GLOBAL METADATA
4
-
5
- - meta:
6
- cluster: apm-ci
7
-
8
- ##### JOB DEFAULTS
9
-
10
- - job:
11
- view: APM-CI
12
- project-type: multibranch
13
- logrotate:
14
- daysToKeep: 30
15
- numToKeep: 300
16
- number-to-keep: '100'
17
- days-to-keep: '30'
18
- concurrent: true
19
- node: linux
20
- periodic-folder-trigger: 1w
21
- prune-dead-branches: true
22
- publishers:
23
- - email:
24
- recipients: infra-root+build@elastic.co
data/.ci/linting.groovy DELETED
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env groovy
2
- @Library('apm@current') _
3
-
4
- pipeline {
5
- agent { label 'docker && linux && immutable' }
6
- options {
7
- buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20', daysToKeepStr: '30'))
8
- timestamps()
9
- ansiColor('xterm')
10
- disableResume()
11
- durabilityHint('PERFORMANCE_OPTIMIZED')
12
- rateLimitBuilds(throttle: [count: 60, durationName: 'hour', userBoost: true])
13
- quietPeriod(10)
14
- }
15
- triggers {
16
- issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?linters(?:\\W+please)?.*')
17
- }
18
- stages {
19
- stage('Sanity checks') {
20
- environment {
21
- HOME = "${env.WORKSPACE}"
22
- PATH = "${env.WORKSPACE}/bin:${env.PATH}"
23
- }
24
- steps {
25
- script {
26
- def sha = getGitCommitSha()
27
- preCommit(commit: "${sha}", junit: true)
28
- }
29
- }
30
- }
31
- }
32
- }
data/.ci/packer_cache.sh DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- source /usr/local/bin/bash_standard_lib.sh
4
-
5
- if [ -x "$(command -v docker)" ]; then
6
- grep "-" .ci/.jenkins_ruby.yml | grep -v 'observability-ci' | cut -d'-' -f2- | \
7
- while read -r version;
8
- do
9
- transformedName=${version/:/-}
10
- transformedVersion=$(echo "${version}" | cut -d":" -f2)
11
- imageName="apm-agent-ruby"
12
- registryImageName="docker.elastic.co/observability-ci/${imageName}:${transformedName}"
13
- (retry 2 docker pull "${registryImageName}")
14
- docker tag "${registryImageName}" "${imageName}:${transformedVersion}"
15
- done
16
- fi
File without changes
File without changes