-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from appsignal/streaming-examples
Add a streaming endpoint to Rails and Sinatra apps
- Loading branch information
Showing
12 changed files
with
170 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>Rails 6 mysql app</h1> | ||
|
||
<ul> | ||
<li><%= link_to "Slow request", slow_path %></li> | ||
<li><%= link_to "Error request", error_path %></li> | ||
<li><%= link_to "Slow streaming request", streaming_slow_path %></li> | ||
<li><%= link_to "Streaming request with error", streaming_error_path %></li> | ||
<li><%= link_to "Posts: resources with queies", posts_path %></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
Rails.application.routes.draw do | ||
get "/slow", to: "tests#slow" | ||
get "/error", to: "tests#error" | ||
get "/streaming/slow", to: "tests#streaming_slow" | ||
get "/streaming/error", to: "tests#streaming_error_in_body" | ||
|
||
resources :posts, :except => %i[edit update destroy] | ||
|
||
root to: "tests#index" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: /integration | ||
specs: | ||
appsignal (3.4.12) | ||
appsignal (3.5.5) | ||
rack | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
<h1>Go to <a href="/items">/items</a></h1> | ||
<h1>Rails 7 postgresql app</h1> | ||
|
||
<ul> | ||
<li><%= link_to "Slow request", slow_path %></li> | ||
<li><%= link_to "Error request", error_path %></li> | ||
<li><%= link_to "Slow streaming request", streaming_slow_path %></li> | ||
<li><%= link_to "Streaming request with error", streaming_error_path %></li> | ||
<li><%= link_to "Items: resources with queies", items_path %></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
PATH | ||
remote: /integration | ||
specs: | ||
appsignal (3.5.5) | ||
rack | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
base64 (0.2.0) | ||
multi_json (1.15.0) | ||
mustermann (3.0.0) | ||
ruby2_keywords (~> 0.0.1) | ||
nio4r (2.7.0) | ||
puma (6.4.2) | ||
nio4r (~> 2.0) | ||
rack (3.0.9) | ||
rack-protection (4.0.0) | ||
base64 (>= 0.1.0) | ||
rack (>= 3.0.0, < 4) | ||
rack-session (2.0.0) | ||
rack (>= 3.0.0) | ||
ruby2_keywords (0.0.5) | ||
sinatra (4.0.0) | ||
mustermann (~> 3.0) | ||
rack (>= 3.0.0, < 4) | ||
rack-protection (= 4.0.0) | ||
rack-session (>= 2.0.0, < 3) | ||
tilt (~> 2.0) | ||
sinatra-contrib (4.0.0) | ||
multi_json (>= 0.0.2) | ||
mustermann (~> 3.0) | ||
rack-protection (= 4.0.0) | ||
sinatra (= 4.0.0) | ||
tilt (~> 2.0) | ||
tilt (2.3.0) | ||
|
||
PLATFORMS | ||
aarch64-linux | ||
|
||
DEPENDENCIES | ||
appsignal! | ||
puma | ||
sinatra | ||
sinatra-contrib | ||
|
||
BUNDLED WITH | ||
2.2.33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters