Skip to content

Commit

Permalink
init subrepo
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <igxnon@gmail.com>
  • Loading branch information
iGxnon committed Feb 4, 2024
1 parent a85001f commit 36f3263
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"minitrace-jaeger",
"minitrace-datadog",
"minitrace-opentelemetry",
"minitrace-futures",
"test-statically-disable",
]

Expand Down
14 changes: 14 additions & 0 deletions minitrace-futures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "minitrace-futures"
version = "0.6.3"
edition = "2021"
license = "Apache-2.0"
description = "Utilities for instrumenting `futures` with minitrace-rust"
homepage = "https://github.com/tikv/minitrace-rust"
repository = "https://github.com/tikv/minitrace-rust"
documentation = "https://docs.rs/minitrace-futures"
readme = "README.md"
categories = ["development-tools::debugging"]
keywords = ["tracing", "span", "datadog", "jaeger", "opentelemetry"]

[dependencies]
7 changes: 7 additions & 0 deletions minitrace-futures/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# minitrace-futures

[![Documentation](https://docs.rs/minitrace-futures/badge.svg)](https://docs.rs/minitrace-futures/)
[![Crates.io](https://img.shields.io/crates/v/minitrace-futures.svg)](https://crates.io/crates/minitrace-futures)
[![LICENSE](https://img.shields.io/github/license/tikv/minitrace-rust.svg)](https://github.com/tikv/minitrace-rust/blob/master/LICENSE)

Some utilities for instrumenting `futures` with [`minitrace`](https://crates.io/crates/minitrace).
14 changes: 14 additions & 0 deletions minitrace-futures/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}

0 comments on commit 36f3263

Please sign in to comment.