Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TimedTrace #476

Merged
merged 1 commit into from
Apr 30, 2019
Merged

Add TimedTrace #476

merged 1 commit into from
Apr 30, 2019

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Apr 25, 2019

TimedTrace represents a chunk of code performance of which was measured and
stored under a label. The chunk is called a "span".

timed_trace = TimedTrace.new
timed_trace.span('http request') do
  http.get('example.com')
end
timed_trace.spans #=> { 'http request' => 0.123 }

@kyrylo kyrylo force-pushed the custom-performance-group branch 2 times, most recently from 9961f64 to 8e87b3e Compare April 26, 2019 11:46
@kyrylo kyrylo changed the title Add RouteTrace Add TimedTrace Apr 26, 2019
@kyrylo kyrylo force-pushed the custom-performance-group branch 3 times, most recently from 3c980ea to 7a9552e Compare April 26, 2019 16:29
TimedTrace represents a chunk of code performance of which was measured and
stored under a label. The chunk is called a "span".

```ruby
timed_trace = TimedTrace.new
timed_trace.span('http request') do
  http.get('example.com')
end
timed_trace.spans #=> { 'http request' => 0.123 }
```
@kyrylo kyrylo force-pushed the custom-performance-group branch from 7a9552e to 74d8397 Compare April 26, 2019 16:39
@kyrylo kyrylo merged commit 214f25b into master Apr 30, 2019
@kyrylo kyrylo deleted the custom-performance-group branch April 30, 2019 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant