Skip to content

Conversation

@End-rey
Copy link
Contributor

@End-rey End-rey commented Aug 15, 2025

Part of #3466.

@codecov
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

❌ Patch coverage is 66.26506% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 24.39%. Comparing base (c6a9bed) to head (49a0d6f).
⚠️ Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/get/util.go 0.00% 11 Missing ⚠️
pkg/local_object_storage/engine/get.go 71.42% 4 Missing and 2 partials ⚠️
pkg/local_object_storage/shard/get.go 80.64% 4 Missing and 2 partials ⚠️
pkg/local_object_storage/writecache/get.go 66.66% 2 Missing and 1 partial ⚠️
pkg/metrics/engine.go 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3532      +/-   ##
==========================================
+ Coverage   24.21%   24.39%   +0.17%     
==========================================
  Files         677      678       +1     
  Lines       50538    50678     +140     
==========================================
+ Hits        12237    12361     +124     
- Misses      37311    37324      +13     
- Partials      990      993       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Help: "Engine 'head' operations handling time",
})

streamDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, i look at it and think if it can be useful as a metric that just answers how long we were acquiring an object stream, but not a streaming duration itself. mb that is ok

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reasonable mention, especcially taking into account how similar metrics are split in https://pkg.go.dev/github.com/nspcc-dev/[email protected]/stat#Method. Reader usage duration is very tied to the use-case. For example, with #3439 the data will be copied to the GET channel

so for now we'll start with the call duration, then extend it if necessary

Make `GetStream` API in writecache, shard and engine. Expose `GetStream` metric.

Signed-off-by: Andrey Butusov <[email protected]>
Refactor the code for using the storage 'GetStream' in the 'Get' object service
to further implement its logic.

Signed-off-by: Andrey Butusov <[email protected]>
@End-rey End-rey force-pushed the storage-stream-api branch from 253009f to 49a0d6f Compare August 18, 2025 13:20
@End-rey End-rey requested a review from cthulhu-rider August 18, 2025 13:23
@cthulhu-rider cthulhu-rider merged commit 17e3c07 into master Aug 18, 2025
21 of 22 checks passed
@cthulhu-rider cthulhu-rider deleted the storage-stream-api branch August 18, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants