File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ secret_token: <%= ENV["VERY_SECRET_TOKEN"] %>
21
21
22
22
Options are applied in the following order (last one wins):
23
23
24
+ 1. Arguments to `ElasticAPM::<framework>.start`
24
25
1. Defaults
25
- 2. Arguments to `ElasticAPM.start` / `ElasticAPM::Grape.start` / `ElasticAPM::Rails.start` / ` Config.new`
26
+ 2. Arguments to `ElasticAPM.start` / `Config.new`
26
27
3. Config file eg. `config/elastic_apm.yml`
27
28
4. Environment variables
28
29
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module Grape
13
13
# @param app [Grape::API] A Grape app.
14
14
# @param config [Config, Hash] An instance of Config or a Hash config.
15
15
# @return [true, nil] true if the agent was started, nil otherwise.
16
- def start ( app , config )
16
+ def start ( app , config = { } )
17
17
config = Config . new ( config ) unless config . is_a? ( Config )
18
18
configure_app ( app , config )
19
19
You can’t perform that action at this time.
0 commit comments