Subject: [bug#71076] [PATCH 27/81] gnu: Add rust-tracing-opentelemtry-0.18.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:32 +0200

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 29529963f6..f170b04efb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -86516,6 +86516,36 @@ (define-public rust-tracing-opentelemetry-0.22
       "This package provides @code{OpenTelemetry} integration for tracing.")
     (license license:expat)))
 
+(define-public rust-tracing-opentelemetry-0.18
+  (package
+    (inherit rust-tracing-opentelemetry-0.22)
+    (name "rust-tracing-opentelemetry")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tracing-opentelemetry" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "1pj8mnxkpp4jwkb45jipavdhpdrsa4h901nz689jf4zajmxbisr1"))))
+    (arguments
+     (list
+      #:cargo-inputs (list rust-async-trait-0.1
+                           rust-once-cell-1
+                           rust-opentelemetry-0.18
+                           rust-thiserror-1
+                           rust-tracing-0.1
+                           rust-tracing-core-0.1
+                           rust-tracing-log-0.1
+                           rust-tracing-subscriber-0.3)
+      #:cargo-development-inputs (list rust-async-trait-0.1
+                                       rust-criterion-0.3
+                                       rust-futures-util-0.3
+                                       rust-opentelemetry-jaeger-0.17
+                                       rust-tokio-1
+                                       rust-tokio-stream-0.1)))))
+
 (define-public rust-tracing-serde-0.1
   (package
     (name "rust-tracing-serde")
-- 
2.41.0