Skip to content

Commit afa5a59

Browse files
goffrieConvex, Inc.
authored andcommitted
Trace some component call things (#37527)
GitOrigin-RevId: 0a381b90c4884f4e023125d4ef425526d39ac574
1 parent 1836b4b commit afa5a59

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

crates/model/src/components/handles.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ impl<'a, RT: Runtime> FunctionHandlesModel<'a, RT> {
102102
Self { tx }
103103
}
104104

105+
#[fastrace::trace]
105106
pub async fn lookup(
106107
&mut self,
107108
handle: FunctionHandle,

crates/model/src/components/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl<'a, RT: Runtime> ComponentsModel<'a, RT> {
6060
}
6161

6262
#[async_recursion]
63+
#[fastrace::trace]
6364
pub async fn resolve(
6465
&mut self,
6566
component_id: ComponentId,
@@ -211,6 +212,7 @@ impl<'a, RT: Runtime> ComponentsModel<'a, RT> {
211212
Ok(None)
212213
}
213214

215+
#[fastrace::trace]
214216
pub async fn resolve_public_export_path(
215217
&mut self,
216218
path: ExportPath,

crates/udf/src/validation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ pub const SUSPENDED_ERROR_MESSAGE: &str = "Cannot run functions while this deplo
8989
/// Fails with an error if the backend is not running. We have to return a
9090
/// result of a result of () and a JSError because we use them to
9191
/// differentiate between system and user errors.
92+
#[fastrace::trace]
9293
pub async fn fail_while_not_running<RT: Runtime>(
9394
tx: &mut Transaction<RT>,
9495
) -> anyhow::Result<Result<(), JsError>> {
@@ -210,6 +211,7 @@ fn missing_or_internal_error(path: PublicFunctionPath) -> anyhow::Result<String>
210211
))
211212
}
212213

214+
#[fastrace::trace]
213215
async fn udf_version<RT: Runtime>(
214216
path: &ResolvedComponentFunctionPath,
215217
tx: &mut Transaction<RT>,

0 commit comments

Comments
 (0)