Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Support limiting tracing helper's scope #26

Open
st0012 opened this issue Jan 7, 2020 · 0 comments
Open

Support limiting tracing helper's scope #26

st0012 opened this issue Jan 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@st0012
Copy link
Owner

st0012 commented Jan 7, 2020

With a Block

print_calls_in_detail(ActionDispatch::Http::URL) do
  ActionDispatch::Http::URL.url_for(host: "www.ror.co.uk", subdomain: "api", tld_length: 2)
end

# ignore what happens outside the block

With stop_tracing

print_calls_in_detail(ActionDispatch::Http::URL)
result = ActionDispatch::Http::URL.url_for(host: "www.ror.co.uk", subdomain: "api", tld_length: 2)

stop_tracing # ignore what happens after this line
@st0012 st0012 added the Feature label Jan 7, 2020
@st0012 st0012 added this to the v0.4.9 milestone Jan 7, 2020
@st0012 st0012 self-assigned this Jan 7, 2020
@st0012 st0012 changed the title Support scoping tracing helper with a block Support limiting tracing helper's scope Jan 7, 2020
@st0012 st0012 modified the milestones: v0.4.9, v0.5.0 Jan 27, 2020
@st0012 st0012 removed this from the v0.5.0 milestone May 24, 2020
@st0012 st0012 added enhancement New feature or request and removed Feature labels Apr 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant