Skip to content

Commit

Permalink
minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Jul 2, 2024
1 parent 920d94b commit b16c2e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/baml-runtime/src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl BamlTracer {
params: &BamlMap<String, BamlValue>,
) -> (Option<TracingSpan>, 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));
}
Expand Down
2 changes: 1 addition & 1 deletion engine/baml-runtime/src/types/trace_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
3 changes: 2 additions & 1 deletion tools/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b16c2e7

Please sign in to comment.