You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Inline config in the macro**: `#[dial9_tokio_telemetry::main]` now accepts a closure, so simple setups no longer need a separate config function.
13
-
-**Fluent config builder**: `Dial9Config::builder()` with named setters, `with_tokio`/`with_runtime` closures, and `.enabled(bool)`. The original positional API under `dial9_tokio_telemetry::config` is unchanged.
14
-
-**`build_or_disabled()`**: on config validation or writer I/O failure, logs an error and starts a plain tokio runtime instead of crashing. Use `build()` to handle failures explicitly.
12
+
### Added
15
13
16
-
All three in action:
14
+
- Include CPU id in CPU profile samples ([#338](https://github.com/dial9-rs/dial9-tokio-telemetry/pull/338))
15
+
-**New config API** ([#256](https://github.com/dial9-rs/dial9-tokio-telemetry/pull/256)): `Dial9Config::builder()` replaces the positional `Dial9ConfigBuilder::new(path, file_size, total_size)` with a fluent builder. Inline closures are now supported in the macro, and `build_or_disabled()` gracefully falls back to a plain tokio runtime on config/IO failure:
17
16
18
17
```rust
19
18
#[dial9_tokio_telemetry::main(config =|| {
@@ -25,10 +24,25 @@ All three in action:
25
24
})]
26
25
asyncfnmain() { /* ... */ }
27
26
```
27
+
- free `dial9_tokio_telemetry::spawn()` function ([#343](https://github.com/dial9-rs/dial9-tokio-telemetry/pull/343))
28
28
29
29
### Changed
30
30
31
-
-`TelemetryHandle::current()` no longer panics off-runtime. It returns an inert handle whose `spawn` falls through to `tokio::spawn`. Use `TelemetryHandle::is_enabled()` to check whether telemetry is live.
31
+
-`TelemetryHandle::current()` no longer panics off-runtime — it returns an inert handle whose `spawn` falls through to `tokio::spawn`. Use `TelemetryHandle::is_enabled()` to check whether telemetry is live. ([#256](https://github.com/dial9-rs/dial9-tokio-telemetry/pull/256))
0 commit comments