Subject: [PATCH 103/228] gnu: Add rust-opentelemetry-otlp-0.14.

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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c78cde3ffa..36b534e767 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44434,6 +44434,49 @@ (define-public rust-opentelemetry-jaeger-0.20
 @code{OpenTelemetry}.")
     (license license:asl2.0)))
 
+(define-public rust-opentelemetry-otlp-0.14
+  (package
+    (name "rust-opentelemetry-otlp")
+    (version "0.14.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "opentelemetry-otlp" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0c59bh4wa824mf89ayivsjqwipkg1y6r27r4d0y47lhfna1xlk7j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-async-trait" ,rust-async-trait-0.1)
+        ("rust-futures-core" ,rust-futures-core-0.3)
+        ("rust-grpcio" ,rust-grpcio-0.12)
+        ("rust-http" ,rust-http-0.2)
+        ("rust-opentelemetry" ,rust-opentelemetry-0.21)
+        ("rust-opentelemetry-http" ,rust-opentelemetry-http-0.10)
+        ("rust-opentelemetry-proto" ,rust-opentelemetry-proto-0.4)
+        ("rust-opentelemetry-semantic-conventions"
+         ,rust-opentelemetry-semantic-conventions-0.13)
+        ("rust-opentelemetry-sdk" ,rust-opentelemetry-sdk-0.21)
+        ("rust-prost" ,rust-prost-0.11)
+        ("rust-reqwest" ,rust-reqwest-0.11)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-surf" ,rust-surf-2)
+        ("rust-thiserror" ,rust-thiserror-1)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-tonic" ,rust-tonic-0.9))
+       #:cargo-development-inputs
+       (("rust-futures-util" ,rust-futures-util-0.3)
+        ("rust-time" ,rust-time-0.3)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-tokio-stream" ,rust-tokio-stream-0.1))))
+    (home-page
+     "https://github.com/open-telemetry/opentelemetry-rust/tree/main/opentelemetry-otlp")
+    (synopsis "Exporter for the OpenTelemetry Collector")
+    (description "This package provides an exporter for the
+@code{OpenTelemetry} Collector.")
+    (license license:asl2.0)))
+
 (define-public rust-opentelemetry-proto-0.4
   (package
     (name "rust-opentelemetry-proto")
-- 
2.41.0