Skip to content

connection 存続期間 監視

Choose a tag to compare

@nabapadma nabapadma released this 26 Feb 03:36
· 8 commits to master since this release

コード追加:

v2.1.0...v2.1.1

module building:

以下の URL に 1 回だけリクエストを送信します。
making request to the bellow url only once.
https://proxy.golang.org/github.com/mnes/nds/v2/@v/v2.1.1.info
output:

{"Version":"v2.1.1","Time":"2025-02-25T10:56:28Z","Origin":{"VCS":"git","URL":"https://github.com/mnes/nds","Hash":"94ac4b995fc70650b03a791bee55dca961a053f4","Ref":"refs/tags/v2.1.1"}}

replace old version module with new version:

go mod edit -replace github.com/qedus/nds/v2=github.com/mnes/nds/v2@v2.1.1
go mod tidy

monitor /監視

closecontext:

Operation: CloseContext, Connection Id: 8038d109, Connection createdAt: 2025-02-26 03:22:17.609171388, Connection LastUsed: 2025-02-26 03:22:21.729787354, LastUsedAfterDuration: 2m24.107501903s, Existence Time: 2m28.228117823s

other operations like MGET:

Operation: MGET, Connection Id: 07d0ef97, Connection createdAt: 2025-02-26 03:24:45.841522929, Connection LastUsed: 2025-02-26 03:24:45.849976124, LastUsedAfterDuration: 293ns, Existence Time: 8.453421ms

ここでは主に LastUsedAfterDuration と Existence Time を監視します LastUsedAfterDuration: 2m24.107501903s、Existence Time: 2m28.228117823s。そして、時間パターンに関するエラーが見つかることを期待しています。

here mainly we will monitor LastUsedAfterDuration and Existence Time LastUsedAfterDuration: 2m24.107501903s, Existence Time: 2m28.228117823s. and we are hoping to find some errors regarding the time pattern.