elastic-apm 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of elastic-apm might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.rubocop.yml +0 -3
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/docs/index.asciidoc +4 -1
- data/lib/elastic_apm/railtie.rb +6 -1
- data/lib/elastic_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 534cd9137c9070d1997aca45e6906f872828bcc8915d24d728af8ffdde9196c0
|
4
|
+
data.tar.gz: ab8e7cc3fe4c402f16b3fa985a8f18c44643843121258a7f1595977bd2854f2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 878a346c2676ed61d1c983745b31fd6eb7a90e92d2e6f23a684b7f7d87eb2694db12ce5f3e194b51740e55bf6572bcbe6838473b185558a9d10458ecc975fcac
|
7
|
+
data.tar.gz: 00a6df2a7a69c945db62e20cd80b0a2b86104ef7213adede47713c82b9bf9ff9c0c705a2dc30a3863ab86a1a1c999c7d2cf682c1cb0ef64aa3d07921c86e7acc
|
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# elastic-apm
|
2
2
|
## Elastic APM agent for ♦️Ruby (🚧 BETA)
|
3
3
|
|
4
|
-
[![Jenkins](https://img.shields.io/jenkins/s/https/apm-ci.elastic.co/job/elastic+apm-agent-ruby+master.svg)](https://apm-ci.elastic.co/job/elastic+apm-agent-ruby+master/)
|
4
|
+
[![Jenkins](https://img.shields.io/jenkins/s/https/apm-ci.elastic.co/job/elastic+apm-agent-ruby+master.svg)](https://apm-ci.elastic.co/job/elastic+apm-agent-ruby+master/) [![Gem](https://img.shields.io/gem/v/elastic-apm.svg)](https://rubygems.org/gems/elastic-apm)
|
5
5
|
|
6
6
|
This is the official Rubygem for [Elastic][] [APM][].
|
7
7
|
|
data/docs/index.asciidoc
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
:branch: current
|
2
|
+
include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
|
3
|
+
|
1
4
|
ifdef::env-github[]
|
2
5
|
NOTE: For the best reading experience, please view this documentation at https://www.elastic.co/guide/en/apm/agent/ruby[elastic.co]
|
3
6
|
endif::[]
|
@@ -13,7 +16,7 @@ It has built-in support for <<getting-started-rails,Ruby on Rails>> and other <<
|
|
13
16
|
|
14
17
|
This agent is one of several components you need to get started collecting APM data. See also:
|
15
18
|
|
16
|
-
*
|
19
|
+
* {apm-server-ref}[APM Server]
|
17
20
|
|
18
21
|
[[framework-support]]
|
19
22
|
The Elastic APM Ruby Agent officially supports <<getting-started-rails,Ruby on Rails>> versions 4.x on onwards.
|
data/lib/elastic_apm/railtie.rb
CHANGED
@@ -10,7 +10,12 @@ module ElasticAPM
|
|
10
10
|
Config::DEFAULTS.each { |option, value| config.elastic_apm[option] = value }
|
11
11
|
|
12
12
|
initializer 'elastic_apm.initialize' do |app|
|
13
|
-
config = app.config.elastic_apm.merge(app: app)
|
13
|
+
config = app.config.elastic_apm.merge(app: app).tap do |c|
|
14
|
+
# Prepend Rails.root to log_path if present
|
15
|
+
if c.log_path && !c.log_path.start_with?('/')
|
16
|
+
c.log_path = Rails.root.join(c.log_path)
|
17
|
+
end
|
18
|
+
end
|
14
19
|
|
15
20
|
begin
|
16
21
|
agent = ElasticAPM.start config
|
data/lib/elastic_apm/version.rb
CHANGED
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: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Malmberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|