A simple middleware for tide using the tracing crate for logging

A simple middleware for tracing crate for logging

tide-tracing

A simple middleware for tide using the tracing crate for logging.

Why

tide uses log in its default logging middleware. When using tracing-log most of the information from tide is lost. This crate provides a middleware that exposes all that information to tracing directly while also improving the structure of the logs using span!.

tide-tracing uses opentelemetry conventional trace field names by default.

Docs

  • API docs
  • Example
Versions

Find the latest versions by id

0.0.11 - May 23, 2021

Thanks again to @joshtriplett for the changes in this release.

tide-tracing now uses opentelemetry conventional trace field names.

before after
status http.status_code
duration http.duration
method http.method
path http.target

0.0.10 - May 08, 2021

Huge thanks to @joshtriplett for the changes in this release.

Output is now shorter and should be simpler to reason about by hand and with tracing tools.

Before before

After after

0.0.9 - Apr 12, 2021

Thanks to @edmellum for the change in this release.

Non-breaking

  • Only depend on the bare minimum tide features so dependents don't pull in any extra unneeded features #6

0.0.8 - Feb 03, 2021

Breaking

  • Update tide version used 0.15 -> 0.16

0.0.7 - Nov 16, 2020

Breaking

  • Update tide version used 0.14 -> 0.15

0.0.6 - Oct 18, 2020

Breaking

  • Update tide version used 0.13 -> 0.14

0.0.5 - Aug 03, 2020

Breaking

  • Update tide version used 0.12 -> 0.13

Non-breaking

  • Improve example image
  • Exclude image from crates.io release.

Internal

  • Add CI

0.0.4 - Jul 27, 2020

  • The span on client error was set up in an unreliable way. This has been fixed.

  • TraceMiddleware::new is now const fn

0.0.3 - Jul 26, 2020

  • Improved example

  • Changed the way internal errors are reported resulting in a very small change in the logs output.

0.0.2 - Jul 26, 2020

  • Fix issues with badges not showing on readme

0.0.1 - Jul 26, 2020

First release :rocket:

Information - Updated May 23, 2022

Stars: 33
Forks: 8
Issues: 0

Repositories & Extras

A Rust library providing a lightweight logging facade

A logging facade provides a single logging API that abstracts over the actual

A Rust library providing a lightweight logging facade

slog-rs is one of Rusts premier logging frameworks

Output log data to JSON, terminal out and many more options

slog-rs is one of Rusts premier logging frameworks

log4rs is a highly configurable logging framework modeled after Java's Logback

If you are using the file rotation in your configuration there is a known substantial performance issue so listen up!

log4rs is a highly configurable logging framework modeled after Java's Logback

defmt rust based logging framework

Fast and lightweight logging framework for rust

defmt rust based logging framework

Simple, efficient logging for Rust

Simple, efficient logging for log crate

Simple, efficient logging for Rust

Simple logging library

just another logging library for others to explore and use

Simple logging library

A simple and minimal error logging library

Errox is a minimal error logging library to log Err return types and print them to stderr, with an optional timestamp

A simple and minimal error logging library

This crate provides a cargo subcommand to work with embedded targets

It can flash targets, just like cargo-flash but can do much more, such as logging RTT output from the target, opening a GDB server connected...

This crate provides a cargo subcommand to work with embedded targets

aya-log - a logging library for eBPF programs

aya-log is a logging library for eBPF programs written using log crate for eBPF

aya-log - a logging library for eBPF programs

Rust crate for logging to LogDNA

Bug reports and pull requests are welcome on GitHub at

Rust crate for logging to LogDNA

A Rust library providing a lightweight logging facade

A logging facade provides a single logging API that abstracts over the actual

A Rust library providing a lightweight logging facade
Facebook Instagram Twitter GitHub Dribbble
Privacy