Skip to content

Commit 047f1b5

Browse files
committed
Add changeset for PR #1037
Add changeset so the change can be released and is shown in the CHANGELOG.md file upon release.
1 parent a45ab0d commit 047f1b5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
bump: "minor"
3+
type: "add"
4+
---
5+
6+
Add instrumentation for all Rack responses, including streaming responses. New `response_body_each.rack`, `response_body_call.rack` and `response_body_to_ary.rack` events will be shown in the event timeline. This will show how long it takes to complete responses, depending on the response implementation.
7+
8+
This Sinatra route with a streaming response will be better instrumented, for example:
9+
10+
```ruby
11+
get "/stream" do
12+
stream do |out|
13+
sleep 1
14+
out << "1"
15+
sleep 1
16+
out << "2"
17+
sleep 1
18+
out << "3"
19+
end
20+
end
21+
```

0 commit comments

Comments
 (0)