From b16c2e760e9d085c83e1388bf2c8924e311a5008 Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Mon, 1 Jul 2024 17:29:38 -0700 Subject: [PATCH] minor stuff --- engine/baml-runtime/src/tracing/mod.rs | 2 +- engine/baml-runtime/src/types/trace_stats.rs | 2 +- tools/build | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/baml-runtime/src/tracing/mod.rs b/engine/baml-runtime/src/tracing/mod.rs index e7b5685fd..f22bb5502 100644 --- a/engine/baml-runtime/src/tracing/mod.rs +++ b/engine/baml-runtime/src/tracing/mod.rs @@ -106,7 +106,7 @@ impl BamlTracer { params: &BamlMap, ) -> (Option, RuntimeContext) { let span_id = ctx.enter(function_name); - log::trace!("Entering span: {:#?}:::{:?}", span_id, function_name); + log::trace!("Entering span {:#?} in {:?}", span_id, function_name); if !self.enabled { return (None, ctx.create_ctx(tb)); } diff --git a/engine/baml-runtime/src/types/trace_stats.rs b/engine/baml-runtime/src/types/trace_stats.rs index d70eec813..f17cc711b 100644 --- a/engine/baml-runtime/src/types/trace_stats.rs +++ b/engine/baml-runtime/src/types/trace_stats.rs @@ -7,7 +7,7 @@ /// TODO: return stats about the # of spans successfully sent #[derive(Clone)] pub struct TraceStats { - /// # of spans that we called finish_span or finisH_baml_span on + /// # of spans that we called finish_span or finish_baml_span on /// but did not submit due to an error pub n_spans_failed_before_submit: u32, } diff --git a/tools/build b/tools/build index 9dbf2b825..1d8f550d3 100755 --- a/tools/build +++ b/tools/build @@ -223,7 +223,8 @@ case "$_path" in ;; /integ-tests/typescript | /integ-tests/typescript/* ) - BAML_LOG="baml_runtime::tracing=trace,baml_runtime::types::context_manager=debug,baml_runtime=debug" + #BAML_LOG="baml_runtime::tracing=trace,baml_runtime::types::context_manager=debug,baml_runtime=debug" + BAML_LOG="baml_runtime=debug" command="(cd ${_repo_root}/engine/language_client_typescript && pnpm build:debug)" command="${command} && pnpm baml-cli generate --from ${_repo_root}/integ-tests/baml_src" if [ "$_test_mode" -eq 1 ]; then