Skip to content

Commit 930bea4

Browse files
committed
Add Grape.start documentation to API docs
1 parent 0adf364 commit 930bea4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/api.asciidoc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,27 @@ Returns the built context.
193193

194194
[float]
195195
[[rails-start]]
196-
=== Manually hooking into Rails
196+
=== Rails
197197

198-
Start the agent and hook into Rails explicitly. This is useful if you skip requiring
198+
Start the agent and hook into Rails manually. This is useful if you skip requiring
199199
the gem and using the `Railtie`.
200200

201201
[source,ruby]
202202
----
203203
ElasticAPM::Rails.start(server_url: 'http://localhost:8200')
204204
----
205205

206+
[float]
207+
[[grape-start]]
208+
=== Grape
209+
210+
Start the agent and hook into Grape.
211+
212+
[source,ruby]
213+
----
214+
ElasticAPM::Grape.start(MyGrapeApp, server_url: 'http://localhost:8200')
215+
----
216+
206217
[float]
207218
=== Errors
208219

0 commit comments

Comments
 (0)