Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Instrument ReadAllBytes and CreateFrom in gRPC #2815

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

sydney-munro
Copy link
Collaborator

No description provided.

@sydney-munro sydney-munro requested a review from a team as a code owner November 12, 2024 20:21
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Nov 12, 2024
@@ -372,37 +388,46 @@ public Blob createFrom(BlobInfo blobInfo, InputStream content, BlobWriteOption..
public Blob createFrom(
BlobInfo blobInfo, InputStream in, int bufferSize, BlobWriteOption... options)
throws IOException {
requireNonNull(blobInfo, "blobInfo must be non null");
OpenTelemetryTraceUtil.Span otelSpan =
openTelemetryTraceUtil.startSpan("createFrom", this.getClass().getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

since createFrom has a few different signatures, does which signature we're working with need to be captured in the span?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we are only concerned with the method not the parameters.

@sydney-munro sydney-munro merged commit 2a85338 into otel-v1-branch Nov 14, 2024
17 checks passed
@sydney-munro sydney-munro deleted the grpc-instrument branch November 14, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants