devlogbus 1.3.1

Rust SDK for publishing records to DevLogBus.
Documentation
  • Coverage
  • 0%
    0 out of 36 items documented0 out of 14 items with examples
  • Size
  • Source code size: 18.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 862.15 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • dan-sherwin/DevLogBus
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dan-sherwin

DevLogBus Rust SDK

Small Rust SDK for publishing records to the DevLogBus HTTP API.

Scope:

  • synchronous HTTP publish
  • dependency-free std::net::TcpStream transport
  • caller-provided attrs_json
  • filter hook
  • redactor hook

The default endpoint is:

http://127.0.0.1:7423

Build And Test

cargo test --manifest-path sdk/rust/Cargo.toml

Use

use devlogbus::{Client, ClientOptions};

let client = Client::new(ClientOptions {
    source: Some("checkout_worker".to_string()),
    ..Default::default()
});

client.publish_message("INFO", "worker started", Some("{\"queue\":\"demo\"}".to_string()))?;

attrs_json must be a JSON object string. The SDK escapes the core record fields itself but does not parse nested attributes.