sharlatan pushed a commit to branch go-team in repository guix. commit 2df80fa1d26a8fd53316fd6af80c63ef096dc332 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Fri Feb 28 10:50:06 2025 +0000
gnu: Add go-go-opencensus-io. * gnu/packages/golang-web.scm (go-go-opencensus-io): New variable. Change-Id: I1568485f766bd0a9e711d7a4d6ce60ede531200a --- gnu/packages/golang-web.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2549cb455a..78ad6a6280 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -9716,6 +9716,63 @@ lists) @end itemize") (license license:mpl2.0))) +(define-public go-go-opencensus-io + (package + (name "go-go-opencensus-io") + (version "0.24.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/census-instrumentation/opencensus-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1923j8v214fyk9qlw0lfva6ah8p7s8cfkrysiada5pp4jim4k4xi")))) + (build-system go-build-system) + (arguments + (list + #:import-path "go.opencensus.io" + #:test-flags + #~(list "-skip" + (string-join + ;; Tests requiring networking. + (list "TestAgainstSpecs/Successful_GET_call_to_https.*" + "TestAgainstSpecs/Successfully_POST_call_to_https.*") + "|")) + #:test-subdirs + #~(list "exporter/..." + "internal" + ;; "internal/testpb/..." ; missing packages + "metric/..." + ;; "plugin/ocgrpc/..." ; missing packages + "plugin/ochttp/..." + "plugin/runmetrics/..." + "resource/..." + "stats/..." + "tag" + "trace/..." + ;; "zpages" ; missing packages + "zpages/internal/...") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (propagated-inputs + (list go-github-com-golang-groupcache + go-github-com-golang-protobuf + go-github-com-google-go-cmp + go-github-com-stretchr-testify + go-golang-org-x-net + #; go-google-golang-org-grpc)) ; not packaged, long journey + (home-page "https://opencensus.io/") + (synopsis "Stats collection and distributed tracing framework") + (description + "Package opencensus contains Go support for @code{OpenCensus}.") + (license license:asl2.0))) + (define-public go-go-opentelemetry-io-otel (package (name "go-go-opentelemetry-io-otel")