Skip to content

Commit

Permalink
chore: remove unused tracing code
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Tore Jensen <kimtjen@gmail.com>
  • Loading branch information
tronghn and kimtore committed Nov 18, 2024
1 parent bd18067 commit 0dad802
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,6 @@ fn init_tracer() -> Tracer {
provider.tracer("tracing-otel-subscriber")
}

#[instrument(skip_all)]
pub async fn test() {
info!("Hello, world!");
yolo("hello");
tracing::info!(monotonic_counter.foo = 1_u64, key_1 = "bar", key_2 = 10, "handle foo",);
}

#[instrument(fields(span.kind = "server", yoloparam=test), skip_all)]
fn yolo(test: &str) {
info!("yolo forever");
span!(Level::INFO, "yolo using span", test = test);
}

fn resource() -> Resource {
Resource::from_schema_url(
[
Expand Down

0 comments on commit 0dad802

Please sign in to comment.