Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(storage): Create OTel tracing decorator forclient:: WriteObject()#15290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
shubham-up-47 wants to merge9 commits intogoogleapis:main
base:main
Choose a base branch
Loading
fromshubham-up-47:otel_traces_for_write_object

Conversation

@shubham-up-47
Copy link
Contributor

@shubham-up-47shubham-up-47 commentedJul 19, 2025
edited by scotthart
Loading

Moving some implementation logic of the method WriteObjectImpl fromclient.cc file toconnection_impl.cc file, so that complate tracing of client:: WriteObject can be enabled (#11394).

Trace screenshot:https://screenshot.googleplex.com/3FS8Z5pR67ZNx3i


This change is Reviewable

@shubham-up-47shubham-up-47 requested review froma team ascode ownersJuly 19, 2025 20:51
@product-auto-labelproduct-auto-labelbot added the api: storageIssues related to the Cloud Storage API. labelJul 19, 2025
@codecov
Copy link

codecovbot commentedJul 20, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.97%. Comparing base (677354c) to head (af3f6e5).

Additional details and impacted files
@@            Coverage Diff             @@##             main   #15290      +/-   ##==========================================- Coverage   92.98%   92.97%   -0.01%==========================================  Files        2402     2402                Lines      217996   218045      +49     ==========================================+ Hits       202694   202721      +27- Misses      15302    15324      +22

☔ 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.

@shubham-up-47
Copy link
ContributorAuthor

Hi@ddelgrosso1, I raised this PR for the feature request#11394.

In this, I am logging a newtraceWriteObject/WriteObjectBufferSize from theWriteObjectImpl implementation (along with the existing traces ofWriteObject api).

Does this trace look okay for that feature request?

@shubham-up-47shubham-up-47 marked this pull request as draftJuly 20, 2025 11:22
@shubham-up-47
Copy link
ContributorAuthor

Hi@ddelgrosso1, I raised this PR for the feature request#11394.

In this, I am logging a newtraceWriteObject/WriteObjectBufferSize from theWriteObjectImpl implementation (along with the existing traces ofWriteObject api).

Does this trace look okay for that feature request?

Including@bajajneha27 too. WDYT?

@bajajneha27
Copy link
Contributor

Hi@ddelgrosso1, I raised this PR for the feature request#11394.
In this, I am logging a newtraceWriteObject/WriteObjectBufferSize from theWriteObjectImpl implementation (along with the existing traces ofWriteObject api).
Does this trace look okay for that feature request?

Including@bajajneha27 too. WDYT?

Looks like you're only moving the implementation ofWriteObjectBufferSize. Is that intentional?

@shubham-up-47
Copy link
ContributorAuthor

shubham-up-47 commentedJul 29, 2025
edited
Loading

Hi@ddelgrosso1, I raised this PR for the feature request#11394.
In this, I am logging a newtraceWriteObject/WriteObjectBufferSize from theWriteObjectImpl implementation (along with the existing traces ofWriteObject api).
Does this trace look okay for that feature request?

Including@bajajneha27 too. WDYT?

Looks like you're only moving the implementation ofWriteObjectBufferSize. Is that intentional?

Yes, It is intentional so that we can have a unique trace which is emitted by theWriteObject api call only.

The traces (likeUploadChunk,CreateResumableUpload) which are emitted by theWriteObject api call currently, are emitted in other api calls too, that's why there is no unique otel trace emitted by WriteObject api call.

To have that, i was proposing the trace WriteObjectBufferSize here. If this doesn't look good, we can have another method something like SetupObjectWriteStream or InitializeObjectWriteStreamParams to initialize all the params of the next function call (i.e. ObjectWriteStream), currently i was initializing only one param of the next method call.

@shubham-up-47shubham-up-47 marked this pull request as ready for reviewJuly 31, 2025 10:18
@shubham-up-47
Copy link
ContributorAuthor

Hi@ddelgrosso1, I raised this PR for the feature request#11394.
In this, I am logging a newtraceWriteObject/WriteObjectBufferSize from theWriteObjectImpl implementation (along with the existing traces ofWriteObject api).
Does this trace look okay for that feature request?

Including@bajajneha27 too. WDYT?

Looks like you're only moving the implementation ofWriteObjectBufferSize. Is that intentional?

Yes, It is intentional so that we can have a unique trace which is emitted by theWriteObject api call only.

The traces (likeUploadChunk,CreateResumableUpload) which are emitted by theWriteObject api call currently, are emitted in other api calls too, that's why there is no unique otel trace emitted by WriteObject api call.

To have that, i was proposing the trace WriteObjectBufferSize here. If this doesn't look good, we can have another method something like SetupObjectWriteStream or InitializeObjectWriteStreamParams to initialize all the params of the next function call (i.e. ObjectWriteStream), currently i was initializing only one param of the next method call.

Created a struct ObjectWriteStreamParams and using method SetupObjectWriteStream to initialize all the params of the next function which emits theWriteObject/SetupObjectWriteStream trace. This approach looks better to me, please have a look.

@bajajneha27
Copy link
Contributor

@shubham-up-47 As discussed offline, I think the task is to add a span for theWriteObject as a whole operation which we're missing right now.

@shubham-up-47shubham-up-47 marked this pull request as draftAugust 18, 2025 06:29
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@bajajneha27bajajneha27Awaiting requested review from bajajneha27

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

api: storageIssues related to the Cloud Storage API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@shubham-up-47@bajajneha27

[8]ページ先頭

©2009-2025 Movatter.jp