Subject: [bug#69257] [PATCH 105/228] gnu: Add rust-tracing-opentelemetry-0.22.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:07:55 +0100

* gnu/packages/crates-io.scm (rust-tracing-opentelemetry-0.22): Add
variable.

Change-Id: I7438b5a9a13ffd5e3e8f2d470e7cf613d8d5429c
---
 gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 667ca26cec..edde32486a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74805,6 +74805,54 @@ (define-public rust-tracing-log-0.1
        #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3)
                                    ("rust-tracing" ,rust-tracing-0.1))))))
 
+(define-public rust-tracing-opentelemetry-0.22
+  (package
+    (name "rust-tracing-opentelemetry")
+    (version "0.22.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tracing-opentelemetry" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "15jmwmbp6wz15bx20bfsmabx53wmlnd7wvzwz9hvkrq7aifc4yn6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-async-trait" ,rust-async-trait-0.1)
+        ("rust-js-sys" ,rust-js-sys-0.3)
+        ("rust-once-cell" ,rust-once-cell-1)
+        ("rust-opentelemetry" ,rust-opentelemetry-0.21)
+        ("rust-opentelemetry-sdk" ,rust-opentelemetry-sdk-0.21)
+        ("rust-smallvec" ,rust-smallvec-1)
+        ("rust-thiserror" ,rust-thiserror-1)
+        ("rust-tracing" ,rust-tracing-0.1)
+        ("rust-tracing-core" ,rust-tracing-core-0.1)
+        ("rust-tracing-log" ,rust-tracing-log-0.2)
+        ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)
+        ("rust-web-time" ,rust-web-time-0.2))
+       #:cargo-development-inputs
+       (("rust-async-trait" ,rust-async-trait-0.1)
+        ("rust-criterion" ,rust-criterion-0.5)
+        ("rust-futures-util" ,rust-futures-util-0.3)
+        ("rust-opentelemetry" ,rust-opentelemetry-0.21)
+        ("rust-opentelemetry-jaeger" ,rust-opentelemetry-jaeger-0.20)
+        ("rust-opentelemetry-otlp" ,rust-opentelemetry-otlp-0.14)
+        ("rust-opentelemetry-semantic-conventions"
+         ,rust-opentelemetry-semantic-conventions-0.13)
+        ("rust-opentelemetry-stdout" ,rust-opentelemetry-stdout-0.2)
+        ("rust-opentelemetry-sdk" ,rust-opentelemetry-sdk-0.21)
+        ("rust-pprof" ,rust-pprof-0.13)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+        ("rust-tracing" ,rust-tracing-0.1)
+        ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3))))
+    (home-page "https://github.com/tokio-rs/tracing-opentelemetry")
+    (synopsis "OpenTelemetry integration for tracing")
+    (description
+      "This package provides @code{OpenTelemetry} integration for tracing.")
+    (license license:expat)))
+
 (define-public rust-tracing-serde-0.1
   (package
     (name "rust-tracing-serde")
-- 
2.41.0