GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: introductory beta level support for OpenTelemetry tracing on c.g.c.storage.Storage methods by sydney-munro · Pull Request #2837 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@sydney-munro

@sydney-munro sydney-munro commented Dec 6, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Introducing OpenTelemetry Tracing

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sydney-munro and others added 12 commits October 17, 2024 10:51
@sydney-munro
feat: Instrument HTTP with OpenTelemetry (#2780)
f6dd4ab
@sydney-munro
feat: Add OpenTelemetry Traces to GRPC (#2783)
5e6eb84
* feat: Add OpenTelemetry to GRPC

* adding rpc.system value

* refactor test for both transports

* lint

* add branch protection rules to otel feature branch

* pr comment
@sydney-munro
feat: create(Blob) instrumentation (#2792)
c0abdf9
@sydney-munro
feat: Add CreateBlob for HTTP (#2803)
d9fd4bd
@sydney-munro
feat: Instrument HTTP Reads and Rewrites (#2808)
4538213
* feat: Instrument HTTP Reads and Writes
@sydney-munro
feat: Take in a module name when creating a span (#2811)
dc5a734
@sydney-munro
feat: Instrument HTTP readAllBytes (#2812)
d7243f4
* feat: instrument HTTP readAllBytes
@sydney-munro
feat: Instrument ReadAllBytes and CreateFrom in gRPC (#2815)
2a85338
@sydney-munro
feat: Instrument gRPC downloadTo and Copy (#2818)
57aeade
@sydney-munro
feat: Instrument HTTP createFrom (#2824)
bd2fd5e
* feat: Instrument HTTP createFrom

* make exception handling more generic
@BenWhitehead
chore: misc otel internalization/cleanup (#2835)
6a2b3ca
@sydney-munro
feat: Instrument Reader and Writer methods (#2829)
125fc4e
* feat: Instrument Reader and Writer methods
@sydney-munro
sydney-munro requested review from a team December 6, 2024 22:02
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. api: storage Issues related to the googleapis/java-storage API. labels Dec 6, 2024
@BenWhitehead BenWhitehead added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 9, 2024
@sydney-munro sydney-munro added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2024
sydney-munro added 2 commits December 17, 2024 10:06
@sydney-munro
chore: remove unnecessary context propagation (#2853)
56af555
@sydney-munro
Merge branch 'main' into otel-v1-branch
3f8cb0f
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2024
@sydney-munro
lint
156b643
@sydney-munro sydney-munro removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 17, 2024
sydney-munro added 2 commits December 17, 2024 10:49
@sydney-munro
fix test failures
cf94763
@sydney-munro
remove otel-v1-branch sync repo settings and fix integ test
55e5770
@sydney-munro sydney-munro added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2024
@sydney-munro
sydney-munro requested review from BenWhitehead and JesseLovelace December 17, 2024 22:34
@googleapis googleapis deleted a comment from generated-files-bot Bot Dec 17, 2024
@sydney-munro sydney-munro changed the title Feat: OpenTelemetry Trace Support feat: OpenTelemetry Trace Support Dec 17, 2024
@BenWhitehead
fix: cleanup span names for reader and writer (#2855)
7c19e78
BenWhitehead
BenWhitehead suggested changes Dec 18, 2024
View reviewed changes
Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcStorageOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcStorageOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageOptions.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/test/java/com/google/cloud/storage/ITOpenTelemetryTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/test/java/com/google/cloud/storage/ITOpenTelemetryTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/test/java/com/google/cloud/storage/ITOpenTelemetryTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry/TestBench.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/test/java/com/google/cloud/storage/otel/TestExporter.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

sydney-munro added 8 commits December 18, 2024 15:10
@sydney-munro
pr comments
92989f5
@sydney-munro
pr comments
588b1c6
@sydney-munro
pr comments/fix typo
499a95c
@sydney-munro
remove duplicated logic
0776746
@sydney-munro
add back testbench deleted lines
f623d67
@sydney-munro
testbench formatting
3236dea
@sydney-munro
fixing tests and adding top level http spans
3bb8a5c
@sydney-munro
add uuid to bucket create test
1780daa
@sydney-munro
sydney-munro requested a review from BenWhitehead December 30, 2024 20:27
sydney-munro and others added 2 commits January 2, 2025 10:17
@sydney-munro
remove HttpStorageRpc tracing layer
e5dfebc
@BenWhitehead
chore: refactor otel tracing of Storage to be a decorator rather than…
6faf5ec
… in method modification (#2856)

Refactor com.google.cloud.storage.Storage otel tracing to be based on a decorating instance of Storage rather than modifying the implementations of StorageImpl and GrpcStorageImpl directly.

This simplifies things by ensuring any otel tracing for c.g.c.s.Storage is implemented for both http and grpc at the same time and with the same metadata.

As a side effect, the previous com.google.cloud.storage.otel package has been removed.

The number of lines appears daunting, however a high level overview of the actual modifications:
1. Remove otel tracing from StorageImpl
2. Remove otel tracing from GrpcStorageImpl
3. Cleanup StorageOption 
   1. classes to specify `@BetaApi` on all otel related methods
   2. Add `{Http,Grpc}StorageDefaults.getDefaultOpenTelemetry` default which points at `OpenTelemetry.noop()`
   3. Relax dependency on OpenTelemetrySdk to only OpenTelemetry
4. Add OtelStorageDecorator (~1700 Lines of the PR) to decorate nearly all public api methods (excluding batch())
   * Each method is "logicless" for the most part, and was generated with the help of IntelliJ live templates
   * Each method is generally: Define span, and scope invoke delegate catch any exception and complete the span
   * There are sub decorators for ReadChannel, WriteChannel, BlobWriteSession and CopyWriter which carry the originating span along for their lifetimes
5. Remote `com.google.cloud.storage.otel` package and helpers
6. Update assertions in ITOpenTelemetryTest to be wrapped in an `assertAll`
@BenWhitehead BenWhitehead changed the title feat: OpenTelemetry Trace Support feat: introductory beta level support for OpenTelemetry tracing on c.g.c.storage.Storage methods Jan 6, 2025
@BenWhitehead
chore: fix copy test
114a960
BenWhitehead
BenWhitehead approved these changes Jan 6, 2025
View reviewed changes
@sydney-munro
sydney-munro merged commit dd889ea into main Jan 6, 2025
@release-please release-please Bot mentioned this pull request Jan 6, 2025
chore(main): release 2.47.0 #2854
Merged
@BenWhitehead
BenWhitehead deleted the otel-v1-branch branch January 7, 2025 17:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@JesseLovelace JesseLovelace Awaiting requested review from JesseLovelace
1 more reviewer
@BenWhitehead BenWhitehead BenWhitehead approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/java-storage API. size: xl Pull request size is extra large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@sydney-munro @BenWhitehead @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.