Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "0.3.16"
version = "0.3.17"

description = "Tower is the best way to host Python data apps in production"
rust-version = "1.77"
authors = ["Brad Heller <brad@tower.dev>"]
Expand Down
4 changes: 2 additions & 2 deletions crates/tower-telemetry/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ pub struct Context {
}

impl Context {
pub fn from_runid(runid: String) -> Self {
pub fn from_runid(runid: &str) -> Self {
Self {
runid: Some(runid),
runid: Some(runid.to_string()),
}
}

Expand Down
12 changes: 6 additions & 6 deletions crates/tower-telemetry/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ macro_rules! debug {
macro_rules! info {
// With context, format string and arguments
(ctx: $ctx:expr, $fmt:expr, $($arg:tt)*) => {
$crate::event_with_level!($crate::tracing::Level::INFO, $ctx, $fmt, $($arg)*)
$crate::event_with_level!($crate::tracing::Level::INFO, ctx: $ctx, $fmt, $($arg)*)
};

// With context, just message
(ctx: $ctx:expr, $msg:expr) => {
$crate::event_with_level!($crate::tracing::Level::INFO, $ctx, "{}", $msg)
$crate::event_with_level!($crate::tracing::Level::INFO, ctx: $ctx, "{}", $msg)
};

// Without context, format string and arguments
Expand All @@ -65,12 +65,12 @@ macro_rules! info {
macro_rules! warn {
// With context, format string and arguments
(ctx: $ctx:expr, $fmt:expr, $($arg:tt)*) => {
$crate::event_with_level!($crate::tracing::Level::WARN, $ctx, $fmt, $($arg)*)
$crate::event_with_level!($crate::tracing::Level::WARN, ctx: $ctx, $fmt, $($arg)*)
};

// With context, just message
(ctx: $ctx:expr, $msg:expr) => {
$crate::event_with_level!($crate::tracing::Level::WARN, $ctx, "{}", $msg)
$crate::event_with_level!($crate::tracing::Level::WARN, ctx: $ctx, "{}", $msg)
};

// Without context, format string and arguments
Expand All @@ -88,12 +88,12 @@ macro_rules! warn {
macro_rules! error {
// With context, format string and arguments
(ctx: $ctx:expr, $fmt:expr, $($arg:tt)*) => {
$crate::event_with_level!($crate::tracing::Level::ERROR, $ctx, $fmt, $($arg)*)
$crate::event_with_level!($crate::tracing::Level::ERROR, ctx: $ctx, $fmt, $($arg)*)
};

// With context, just message
(ctx: $ctx:expr, $msg:expr) => {
$crate::event_with_level!($crate::tracing::Level::ERROR, $ctx, "{}", $msg)
$crate::event_with_level!($crate::tracing::Level::ERROR, ctx: $ctx, "{}", $msg)
};

// Without context, format string and arguments
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ build-backend = "maturin"

[project]
name = "tower"
version = "0.3.16"
version = "0.3.17"

description = "Tower CLI and runtime environment for Tower."
authors = [{ name = "Tower Computing Inc.", email = "brad@tower.dev" }]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading