From e4e7dffdb79e52dca8e3efc78f5a479a49ac2431 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Mar 2025 14:28:48 +0000 Subject: [PATCH] build(deps): bump github.com/riandyrn/otelchi from 0.12.0 to 0.12.1 Bumps [github.com/riandyrn/otelchi](https://github.com/riandyrn/otelchi) from 0.12.0 to 0.12.1. - [Release notes](https://github.com/riandyrn/otelchi/releases) - [Changelog](https://github.com/riandyrn/otelchi/blob/master/CHANGELOG.md) - [Commits](https://github.com/riandyrn/otelchi/compare/v0.12.0...v0.12.1) --- updated-dependencies: - dependency-name: github.com/riandyrn/otelchi dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/riandyrn/otelchi/CHANGELOG.md | 10 +++++++++- vendor/github.com/riandyrn/otelchi/middleware.go | 4 +++- vendor/github.com/riandyrn/otelchi/version/version.go | 2 +- vendor/modules.txt | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index e70ee8186..88361d1b8 100644 --- a/go.mod +++ b/go.mod @@ -70,7 +70,7 @@ require ( github.com/pkg/xattr v0.4.10 github.com/prometheus/client_golang v1.21.1 github.com/r3labs/sse/v2 v2.10.0 - github.com/riandyrn/otelchi v0.12.0 + github.com/riandyrn/otelchi v0.12.1 github.com/rogpeppe/go-internal v1.14.1 github.com/rs/cors v1.11.1 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index f1b4dc435..2d466b94c 100644 --- a/go.sum +++ b/go.sum @@ -969,8 +969,8 @@ github.com/rainycape/memcache v0.0.0-20150622160815-1031fa0ce2f2/go.mod h1:7tZKc github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo5oJ0jf870itWm3D0Sjh7+Za9gazKc5LQ= github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/riandyrn/otelchi v0.12.0 h1:7aXphKyzut8849DDb/0LWyCPq4mfnikpggEmmW3b38U= -github.com/riandyrn/otelchi v0.12.0/go.mod h1:weZZeUJURvtCcbWsdb7Y6F8KFZGedJlSrgUjq9VirV8= +github.com/riandyrn/otelchi v0.12.1 h1:FdRKK3/RgZ/T+d+qTH5Uw3MFx0KwRF38SkdfTMMq/m8= +github.com/riandyrn/otelchi v0.12.1/go.mod h1:weZZeUJURvtCcbWsdb7Y6F8KFZGedJlSrgUjq9VirV8= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= diff --git a/vendor/github.com/riandyrn/otelchi/CHANGELOG.md b/vendor/github.com/riandyrn/otelchi/CHANGELOG.md index dc1efee74..a5cada73d 100644 --- a/vendor/github.com/riandyrn/otelchi/CHANGELOG.md +++ b/vendor/github.com/riandyrn/otelchi/CHANGELOG.md @@ -8,6 +8,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +## [0.12.1] - 2025-02-12 + +### Fixed + +- Fix superfluous header writer ([#89]) + ## [0.12.0] - 2025-01-18 ### Changed @@ -222,6 +228,7 @@ It contains instrumentation for trace and depends on: - Example code for a basic usage. - Apache-2.0 license. +[#89]: https://github.com/riandyrn/otelchi/pull/89 [#88]: https://github.com/riandyrn/otelchi/pull/88 [#87]: https://github.com/riandyrn/otelchi/pull/87 [#74]: https://github.com/riandyrn/otelchi/pull/74 @@ -253,7 +260,8 @@ It contains instrumentation for trace and depends on: [#2]: https://github.com/riandyrn/otelchi/pull/2 [#1]: https://github.com/riandyrn/otelchi/pull/1 -[Unreleased]: https://github.com/riandyrn/otelchi/compare/v0.12.0...HEAD +[Unreleased]: https://github.com/riandyrn/otelchi/compare/v0.12.1...HEAD +[0.12.1]: https://github.com/riandyrn/otelchi/releases/tag/v0.12.1 [0.12.0]: https://github.com/riandyrn/otelchi/releases/tag/v0.12.0 [0.11.0]: https://github.com/riandyrn/otelchi/releases/tag/v0.11.0 [0.10.1]: https://github.com/riandyrn/otelchi/releases/tag/v0.10.1 diff --git a/vendor/github.com/riandyrn/otelchi/middleware.go b/vendor/github.com/riandyrn/otelchi/middleware.go index 0cc9ca9bb..bb3d4b09a 100644 --- a/vendor/github.com/riandyrn/otelchi/middleware.go +++ b/vendor/github.com/riandyrn/otelchi/middleware.go @@ -89,8 +89,10 @@ func getRRW(writer http.ResponseWriter) *recordingResponseWriter { if !rrw.written { rrw.written = true rrw.status = statusCode + // only call next WriteHeader when header is not written yet + // this is to prevent superfluous WriteHeader call + next(statusCode) } - next(statusCode) } }, }) diff --git a/vendor/github.com/riandyrn/otelchi/version/version.go b/vendor/github.com/riandyrn/otelchi/version/version.go index e7a0e5f21..366119da9 100644 --- a/vendor/github.com/riandyrn/otelchi/version/version.go +++ b/vendor/github.com/riandyrn/otelchi/version/version.go @@ -2,5 +2,5 @@ package version // Version is the current release version of otelchi in use. func Version() string { - return "0.12.0" + return "0.12.1" } diff --git a/vendor/modules.txt b/vendor/modules.txt index 3ee297f4e..c7c522a0d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1669,7 +1669,7 @@ github.com/r3labs/sse/v2 # github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 ## explicit github.com/rcrowley/go-metrics -# github.com/riandyrn/otelchi v0.12.0 +# github.com/riandyrn/otelchi v0.12.1 ## explicit; go 1.22.0 github.com/riandyrn/otelchi github.com/riandyrn/otelchi/version