Skip to content

Commit ef15827

Browse files
jordanhunt22Convex, Inc.
authored andcommitted
[Tracing] Add tracing to functions in Isolate::run (#24558)
There are some missing spans in `Isolate::run` so this aims to capture some of the missing execution time. GitOrigin-RevId: baea64010a124a53fac037cfaa4e3069490f2189
1 parent f363edc commit ef15827

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/isolate/src/isolate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ impl<RT: Runtime> Isolate<RT> {
262262
Ok(())
263263
}
264264

265+
#[minitrace::trace]
265266
pub async fn start_request<E: IsolateEnvironment<RT>>(
266267
&mut self,
267268
environment: E,

crates/isolate/src/request_scope.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ impl<RT: Runtime, E: IsolateEnvironment<RT>> RequestState<RT, E> {
148148
}
149149

150150
impl<'a, 'b: 'a, RT: Runtime, E: IsolateEnvironment<RT>> RequestScope<'a, 'b, RT, E> {
151+
#[minitrace::trace]
151152
pub async fn new(
152153
scope: &'a mut v8::HandleScope<'b>,
153154
handle: IsolateHandle,

0 commit comments

Comments
 (0)