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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All significant changes to this project will be documented in this file.

## Unreleased

## v0.7.18

### Notable Changes

* Upgraded MSRV to 1.91.
Expand Down
164 changes: 106 additions & 58 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ rust-version = "1.91.0"

[workspace.dependencies]
# Workspace dependencies
fastrace = { version = "0.7.17", path = "fastrace" }
fastrace-macro = { version = "0.7.17", path = "fastrace-macro" }
fastrace = { version = "0.7.18", path = "fastrace" }
fastrace-macro = { version = "0.7.18", path = "fastrace-macro" }

# Workspace leaves
fastrace-datadog = { path = "fastrace-datadog" }
Expand Down
6 changes: 5 additions & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ fastrace-jaeger = { workspace = true }
fastrace-opentelemetry = { workspace = true }
log = { workspace = true }
logcall = { version = "0.2.0" }
logforth = { version = "0.24.0", features = ["fastrace"] }
logforth = { version = "0.30.1", features = [
"append-fastrace",
"diagnostic-fastrace",
"starter-log",
] }
opentelemetry = { workspace = true }
opentelemetry-otlp = { workspace = true }
opentelemetry_sdk = { workspace = true }
Expand Down
9 changes: 7 additions & 2 deletions examples/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ use fastrace::collector::ConsoleReporter;
use fastrace::prelude::*;
use log::info;
use logforth::append;
use logforth::diagnostic;
use logforth::layout;

/// An example of automatically logging function arguments and return values.
#[logcall::logcall("debug")]
Expand All @@ -31,8 +33,11 @@ fn main() {
// Set up a custom logger.
//
// Logforth (https://docs.rs/logforth/) is easy to start and integrated with Fastrace.
logforth::builder()
.dispatch(|d| d.append(append::Stderr::default()))
logforth::starter_log::builder()
.dispatch(|d| {
d.diagnostic(diagnostic::FastraceDiagnostic::default())
.append(append::Stderr::default().with_layout(layout::TextLayout::default()))
})
.dispatch(|d| d.append(append::FastraceEvent::default()))
.apply();

Expand Down
2 changes: 1 addition & 1 deletion fastrace-datadog/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-datadog"
version = "0.7.17"
version = "0.7.18"

categories = ["development-tools::debugging"]
description = "Datadog reporter for fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-futures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-futures"
version = "0.7.17"
version = "0.7.18"

categories = ["development-tools::debugging"]
description = "Utilities for tracing `futures` with fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-jaeger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-jaeger"
version = "0.7.17"
version = "0.7.18"

categories = ["development-tools::debugging"]
description = "Jaeger reporter for fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-macro"
version = "0.7.17"
version = "0.7.18"

categories = ["development-tools::debugging"]
description = "Attribute procedural macro for fastrace"
Expand Down
2 changes: 2 additions & 0 deletions fastrace-opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All significant changes to this project will be documented in this file.

## Unreleased

## v0.18.1

### Notable Changes

* Upgraded MSRV to 1.91.
Expand Down
2 changes: 1 addition & 1 deletion fastrace-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-opentelemetry"
version = "0.18.0"
version = "0.18.1"

categories = ["development-tools::debugging"]
description = "Opentelemetry reporter for fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace"
version = "0.7.17"
version = "0.7.18"

categories = ["development-tools::debugging"]
description = "A high-performance timeline tracing library for Rust"
Expand Down
Loading