Subject: [PATCH rust-team v2 005/117] gnu: Add rust-opentelemetry-semantic-conventions-0.13.

From: Herman Rimm <[email-masked]>
Date: Sun, 28 Apr 2024 20:54:31 +0200

* gnu/packages/crates-io.scm
(rust-opentelemetry-semantic-conventions-0.13): Add variable.

Change-Id: I836880e1cd72b5ba1f5919144daf30f9a56e4b1b
---
 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 ac8ec15e66..86bd4a3f38 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48996,6 +48996,36 @@ (define-public rust-opentelemetry-sdk-0.21
 collection and distributed tracing framework.")
     (license license:asl2.0)))
 
+(define-public rust-opentelemetry-semantic-conventions-0.13
+  (package
+    (name "rust-opentelemetry-semantic-conventions")
+    (version "0.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "opentelemetry-semantic-conventions" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "115wbgk840dklyhpg3lwp4x1m643qd7f0vkz8hmfz0pry4g4yxzm"))
+       (modules '((guix build utils)))
+       (snippet '(substitute* "Cargo.toml"
+                   (("\\[dev-dependencies\\]" all)
+                    (string-append
+                      all "\nopentelemetry_sdk = { features = "
+                      "[\"trace\"], version = \"0.21\" }"))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-opentelemetry" ,rust-opentelemetry-0.21))
+       #:cargo-development-inputs
+       (("rust-opentelemetry-sdk" ,rust-opentelemetry-sdk-0.21))))
+    (home-page (string-append
+                 "https://github.com/open-telemetry/opentelemetry-"
+                 "rust/tree/main/opentelemetry-semantic-conventions"))
+    (synopsis "Semantic conventions for OpenTelemetry")
+    (description "This package provides semantic conventions for
+@code{OpenTelemetry}.")
+    (license license:asl2.0)))
+
 (define-public rust-opml-1
   (package
     (name "rust-opml")
-- 
2.41.0