elastic-apm 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ci/Jenkinsfile +72 -32
- data/.ci/downstreamTests.groovy +27 -20
- data/.ci/jobs/defaults.yml +1 -1
- data/.rubocop.yml +3 -0
- data/CHANGELOG.asciidoc +27 -0
- data/Gemfile +18 -0
- data/Rakefile +28 -1
- data/docs/configuration.asciidoc +80 -16
- data/docs/getting-started-rails.asciidoc +2 -0
- data/docs/images/dynamic-config.svg +1 -0
- data/docs/index.asciidoc +2 -1
- data/docs/introduction.asciidoc +2 -1
- data/docs/performance-tuning.asciidoc +106 -0
- data/docs/set-up.asciidoc +5 -2
- data/docs/supported-technologies.asciidoc +16 -0
- data/elastic-apm.gemspec +17 -0
- data/lib/elastic-apm.rb +17 -0
- data/lib/elastic_apm.rb +18 -1
- data/lib/elastic_apm/agent.rb +48 -2
- data/lib/elastic_apm/central_config.rb +27 -8
- data/lib/elastic_apm/central_config/cache_control.rb +17 -0
- data/lib/elastic_apm/child_durations.rb +17 -0
- data/lib/elastic_apm/config.rb +47 -2
- data/lib/elastic_apm/config/bytes.rb +17 -0
- data/lib/elastic_apm/config/duration.rb +17 -0
- data/lib/elastic_apm/config/options.rb +18 -1
- data/lib/elastic_apm/config/regexp_list.rb +17 -0
- data/lib/elastic_apm/config/wildcard_pattern_list.rb +17 -0
- data/lib/elastic_apm/context.rb +17 -0
- data/lib/elastic_apm/context/request.rb +17 -0
- data/lib/elastic_apm/context/request/socket.rb +17 -0
- data/lib/elastic_apm/context/request/url.rb +17 -0
- data/lib/elastic_apm/context/response.rb +17 -0
- data/lib/elastic_apm/context/user.rb +17 -0
- data/lib/elastic_apm/context_builder.rb +17 -0
- data/lib/elastic_apm/deprecations.rb +17 -0
- data/lib/elastic_apm/error.rb +17 -0
- data/lib/elastic_apm/error/exception.rb +17 -0
- data/lib/elastic_apm/error/log.rb +17 -0
- data/lib/elastic_apm/error_builder.rb +17 -0
- data/lib/elastic_apm/grape.rb +17 -0
- data/lib/elastic_apm/graphql.rb +17 -0
- data/lib/elastic_apm/grpc.rb +17 -0
- data/lib/elastic_apm/instrumenter.rb +29 -4
- data/lib/elastic_apm/internal_error.rb +17 -0
- data/lib/elastic_apm/logging.rb +17 -0
- data/lib/elastic_apm/metadata.rb +17 -0
- data/lib/elastic_apm/metadata/process_info.rb +17 -0
- data/lib/elastic_apm/metadata/service_info.rb +17 -0
- data/lib/elastic_apm/metadata/system_info.rb +17 -0
- data/lib/elastic_apm/metadata/system_info/container_info.rb +17 -0
- data/lib/elastic_apm/metrics.rb +33 -1
- data/lib/elastic_apm/metrics/breakdown_set.rb +17 -0
- data/lib/elastic_apm/metrics/cpu_mem_set.rb +17 -0
- data/lib/elastic_apm/metrics/metric.rb +17 -0
- data/lib/elastic_apm/metrics/set.rb +17 -0
- data/lib/elastic_apm/metrics/span_scoped_set.rb +17 -0
- data/lib/elastic_apm/metrics/transaction_set.rb +17 -0
- data/lib/elastic_apm/metrics/vm_set.rb +17 -0
- data/lib/elastic_apm/metricset.rb +17 -0
- data/lib/elastic_apm/middleware.rb +17 -0
- data/lib/elastic_apm/naively_hashable.rb +17 -0
- data/lib/elastic_apm/normalizers.rb +17 -0
- data/lib/elastic_apm/normalizers/grape.rb +17 -0
- data/lib/elastic_apm/normalizers/grape/endpoint_run.rb +18 -1
- data/lib/elastic_apm/normalizers/rails.rb +17 -0
- data/lib/elastic_apm/normalizers/rails/action_controller.rb +17 -0
- data/lib/elastic_apm/normalizers/rails/action_mailer.rb +17 -0
- data/lib/elastic_apm/normalizers/rails/action_view.rb +17 -0
- data/lib/elastic_apm/normalizers/rails/active_record.rb +17 -0
- data/lib/elastic_apm/opentracing.rb +17 -0
- data/lib/elastic_apm/rails.rb +17 -0
- data/lib/elastic_apm/railtie.rb +17 -0
- data/lib/elastic_apm/resque.rb +17 -0
- data/lib/elastic_apm/sinatra.rb +17 -0
- data/lib/elastic_apm/span.rb +17 -0
- data/lib/elastic_apm/span/context.rb +17 -0
- data/lib/elastic_apm/span/context/db.rb +17 -0
- data/lib/elastic_apm/span/context/destination.rb +17 -0
- data/lib/elastic_apm/span/context/http.rb +17 -0
- data/lib/elastic_apm/span_helpers.rb +17 -0
- data/lib/elastic_apm/spies.rb +17 -0
- data/lib/elastic_apm/spies/action_dispatch.rb +17 -0
- data/lib/elastic_apm/spies/delayed_job.rb +17 -0
- data/lib/elastic_apm/spies/elasticsearch.rb +17 -0
- data/lib/elastic_apm/spies/faraday.rb +17 -0
- data/lib/elastic_apm/spies/http.rb +17 -0
- data/lib/elastic_apm/spies/json.rb +17 -0
- data/lib/elastic_apm/spies/mongo.rb +17 -0
- data/lib/elastic_apm/spies/net_http.rb +17 -0
- data/lib/elastic_apm/spies/rake.rb +17 -0
- data/lib/elastic_apm/spies/redis.rb +17 -0
- data/lib/elastic_apm/spies/resque.rb +19 -9
- data/lib/elastic_apm/spies/sequel.rb +17 -0
- data/lib/elastic_apm/spies/shoryuken.rb +17 -0
- data/lib/elastic_apm/spies/sidekiq.rb +17 -0
- data/lib/elastic_apm/spies/sinatra.rb +17 -0
- data/lib/elastic_apm/spies/sneakers.rb +17 -0
- data/lib/elastic_apm/spies/sucker_punch.rb +54 -0
- data/lib/elastic_apm/spies/tilt.rb +17 -0
- data/lib/elastic_apm/sql.rb +17 -0
- data/lib/elastic_apm/sql/signature.rb +17 -0
- data/lib/elastic_apm/sql/tokenizer.rb +17 -0
- data/lib/elastic_apm/sql/tokens.rb +17 -0
- data/lib/elastic_apm/sql_summarizer.rb +17 -0
- data/lib/elastic_apm/stacktrace.rb +17 -0
- data/lib/elastic_apm/stacktrace/frame.rb +17 -0
- data/lib/elastic_apm/stacktrace_builder.rb +17 -0
- data/lib/elastic_apm/subscriber.rb +17 -0
- data/lib/elastic_apm/trace_context.rb +17 -0
- data/lib/elastic_apm/trace_context/traceparent.rb +17 -0
- data/lib/elastic_apm/trace_context/tracestate.rb +17 -0
- data/lib/elastic_apm/transaction.rb +33 -5
- data/lib/elastic_apm/transport/base.rb +39 -23
- data/lib/elastic_apm/transport/connection.rb +17 -0
- data/lib/elastic_apm/transport/connection/http.rb +17 -0
- data/lib/elastic_apm/transport/connection/proxy_pipe.rb +22 -0
- data/lib/elastic_apm/transport/filters.rb +17 -0
- data/lib/elastic_apm/transport/filters/secrets_filter.rb +17 -0
- data/lib/elastic_apm/transport/headers.rb +17 -0
- data/lib/elastic_apm/transport/serializers.rb +17 -0
- data/lib/elastic_apm/transport/serializers/context_serializer.rb +17 -0
- data/lib/elastic_apm/transport/serializers/error_serializer.rb +17 -0
- data/lib/elastic_apm/transport/serializers/metadata_serializer.rb +17 -0
- data/lib/elastic_apm/transport/serializers/metricset_serializer.rb +17 -0
- data/lib/elastic_apm/transport/serializers/span_serializer.rb +17 -0
- data/lib/elastic_apm/transport/serializers/transaction_serializer.rb +17 -0
- data/lib/elastic_apm/transport/user_agent.rb +17 -0
- data/lib/elastic_apm/transport/worker.rb +17 -0
- data/lib/elastic_apm/util.rb +17 -0
- data/lib/elastic_apm/util/inflector.rb +17 -0
- data/lib/elastic_apm/util/lru_cache.rb +17 -0
- data/lib/elastic_apm/util/throttle.rb +17 -0
- data/lib/elastic_apm/version.rb +18 -1
- metadata +5 -5
- data/.ci/prepare-git-context.sh +0 -27
- data/codecov.yml +0 -32
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Malmberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -67,7 +67,6 @@ files:
|
|
67
67
|
- ".ci/jobs/defaults.yml"
|
68
68
|
- ".ci/linting.groovy"
|
69
69
|
- ".ci/packer_cache.sh"
|
70
|
-
- ".ci/prepare-git-context.sh"
|
71
70
|
- ".github/ISSUE_TEMPLATE/Bug_report.md"
|
72
71
|
- ".github/ISSUE_TEMPLATE/Feature_request.md"
|
73
72
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
@@ -97,7 +96,6 @@ files:
|
|
97
96
|
- bin/run-tests
|
98
97
|
- bin/setup
|
99
98
|
- bin/with_framework
|
100
|
-
- codecov.yml
|
101
99
|
- docker-compose.yml
|
102
100
|
- docs/advanced.asciidoc
|
103
101
|
- docs/api.asciidoc
|
@@ -108,11 +106,13 @@ files:
|
|
108
106
|
- docs/getting-started-rack.asciidoc
|
109
107
|
- docs/getting-started-rails.asciidoc
|
110
108
|
- docs/graphql.asciidoc
|
109
|
+
- docs/images/dynamic-config.svg
|
111
110
|
- docs/index.asciidoc
|
112
111
|
- docs/introduction.asciidoc
|
113
112
|
- docs/log-correlation.asciidoc
|
114
113
|
- docs/metrics.asciidoc
|
115
114
|
- docs/opentracing.asciidoc
|
115
|
+
- docs/performance-tuning.asciidoc
|
116
116
|
- docs/release-notes.asciidoc
|
117
117
|
- docs/set-up.asciidoc
|
118
118
|
- docs/supported-technologies.asciidoc
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/elastic_apm/spies/sidekiq.rb
|
201
201
|
- lib/elastic_apm/spies/sinatra.rb
|
202
202
|
- lib/elastic_apm/spies/sneakers.rb
|
203
|
+
- lib/elastic_apm/spies/sucker_punch.rb
|
203
204
|
- lib/elastic_apm/spies/tilt.rb
|
204
205
|
- lib/elastic_apm/sql.rb
|
205
206
|
- lib/elastic_apm/sql/signature.rb
|
@@ -235,7 +236,6 @@ files:
|
|
235
236
|
- lib/elastic_apm/util/lru_cache.rb
|
236
237
|
- lib/elastic_apm/util/throttle.rb
|
237
238
|
- lib/elastic_apm/version.rb
|
238
|
-
- vendor/.gitkeep
|
239
239
|
homepage: https://github.com/elastic/apm-agent-ruby
|
240
240
|
licenses:
|
241
241
|
- Apache-2.0
|
data/.ci/prepare-git-context.sh
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -exo pipefail
|
3
|
-
|
4
|
-
# Enable git+ssh. Env variables are created on the fly with the gitCheckout
|
5
|
-
git config remote.origin.url "git@github.com:${ORG_NAME}/${REPO_NAME}.git"
|
6
|
-
|
7
|
-
# Enable to fetch branches when cloning with a detached and shallow clone
|
8
|
-
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
|
9
|
-
|
10
|
-
# Force the git user details when pushing using the last commit details
|
11
|
-
USER_MAIL=$(git log -1 --pretty=format:'%ae')
|
12
|
-
USER_NAME=$(git log -1 --pretty=format:'%an')
|
13
|
-
git config user.email "${USER_MAIL}"
|
14
|
-
git config user.name "${USER_NAME}"
|
15
|
-
|
16
|
-
# Checkout the branch as it's detached based by default.
|
17
|
-
# See https://issues.jenkins-ci.org/browse/JENKINS-33171
|
18
|
-
git fetch --all
|
19
|
-
git checkout "${BRANCH_NAME}"
|
20
|
-
|
21
|
-
# Checkout the master branch to be able to rebase the *.x branch
|
22
|
-
git checkout master
|
23
|
-
|
24
|
-
# Ensure the master branch points to the original commit to avoid commit injection
|
25
|
-
# when running the release pipeline.
|
26
|
-
# used GIT_BASE_COMMIT instead GIT_COMMIT to support the MultiBranchPipelines.
|
27
|
-
git reset --hard "${GIT_BASE_COMMIT}"
|
data/codecov.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# Enable coverage report message for diff on commit
|
2
|
-
# Docs can be found here: https://docs.codecov.io/v4.3.0/docs/commit-status
|
3
|
-
coverage:
|
4
|
-
status:
|
5
|
-
project:
|
6
|
-
default:
|
7
|
-
target: 80%
|
8
|
-
threshold: 1
|
9
|
-
base: auto
|
10
|
-
branches: null
|
11
|
-
if_no_uploads: error
|
12
|
-
if_not_found: success
|
13
|
-
if_ci_failed: error
|
14
|
-
only_pulls: false
|
15
|
-
flags: null
|
16
|
-
paths: null
|
17
|
-
patch:
|
18
|
-
default:
|
19
|
-
target: auto
|
20
|
-
# Allows PRs without tests, overall stats count
|
21
|
-
threshold: 100
|
22
|
-
base: auto
|
23
|
-
branches: null
|
24
|
-
if_no_uploads: error
|
25
|
-
if_not_found: success
|
26
|
-
if_ci_failed: error
|
27
|
-
only_pulls: false
|
28
|
-
flags: null
|
29
|
-
paths: null
|
30
|
-
|
31
|
-
# Disable comments on Pull Requests
|
32
|
-
comment: false
|