Subject: [bug#71076] [PATCH 21/81] gnu: Add rust-opentelemetry-sdk-0.18.

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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d0240ef937..4c1ec789ce 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51076,6 +51076,51 @@ (define-public rust-opentelemetry-proto-0.4
 transformations.")
     (license license:asl2.0)))
 
+(define-public rust-opentelemetry-sdk-0.18
+  (package
+    (name "rust-opentelemetry-sdk")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "opentelemetry_sdk" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "04wiq0jsdxr8r1760hq5r57az68ljcbby57jlb1626rp6d4ir90w"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:tests? #f ; Requires additional features/dependencies.
+      #:cargo-inputs (list rust-async-std-1
+                           rust-async-trait-0.1
+                           rust-crossbeam-channel-0.5
+                           rust-dashmap-5
+                           rust-fnv-1
+                           rust-futures-channel-0.3
+                           rust-futures-executor-0.3
+                           rust-futures-util-0.3
+                           rust-http-0.2
+                           rust-once-cell-1
+                           rust-opentelemetry-http-0.7
+                           rust-opentelemetry-api-0.18
+                           rust-percent-encoding-2
+                           rust-rand-0.8
+                           rust-serde-1
+                           rust-serde-json-1
+                           rust-thiserror-1
+                           rust-tokio-1
+                           rust-tokio-stream-0.1
+                           rust-url-2)
+      #:cargo-development-inputs (list rust-bincode-1
+                                       rust-criterion-0.3
+                                       rust-rand-distr-0.4)))
+    (home-page "https://github.com/open-telemetry/opentelemetry-rust")
+    (synopsis "SDK for OpenTelemetry")
+    (description
+     "This package provides the SDK for @code{OpenTelemetry}, a metrics
+collection and distributed tracing framework.")
+    (license license:asl2.0)))
+
 (define-public rust-opentelemetry-sdk-0.21
   (package
     (name "rust-opentelemetry-sdk")
-- 
2.41.0