feat: Take in a module name when creating a span#2811
Merged
sydney-munro merged 6 commits intootel-v1-branchfrom Nov 8, 2024
Merged
feat: Take in a module name when creating a span#2811sydney-munro merged 6 commits intootel-v1-branchfrom
sydney-munro merged 6 commits intootel-v1-branchfrom
Conversation
frankyn
reviewed
Nov 8, 2024
google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcStorageImpl.java
Outdated
Show resolved
Hide resolved
frankyn
reviewed
Nov 8, 2024
google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcStorageImpl.java
Outdated
Show resolved
Hide resolved
frankyn
approved these changes
Nov 8, 2024
| public Bucket create(BucketInfo bucketInfo, BucketTargetOption... options) { | ||
| OpenTelemetryTraceUtil.Span otelSpan = openTelemetryTraceUtil.startSpan("create"); | ||
| OpenTelemetryTraceUtil.Span otelSpan = | ||
| openTelemetryTraceUtil.startSpan("create", this.getClass().getName()); |
Contributor
There was a problem hiding this comment.
Do you have an example trace with these new spans that you can add to PR description?
Contributor
Author
There was a problem hiding this comment.
posted a span from one of the tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
SpanData{spanContext=ImmutableSpanContext{traceId=c49154a1f7a6a4adb7188e566fcd7d12, spanId=7dd45a835177a216, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, resource=Resource{schemaUrl=null, attributes={service.name="unknown_service:java", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.42.1"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=cloud.google.com/java/storage, version=, schemaUrl=null, attributes={}}, name=com.google.cloud.storage.GrpcStorageImpl/create, kind=CLIENT, startEpochNanos=1731105737865150000, endEpochNanos=1731105739962999167, attributes=AttributesMap{data={gcp.client.repo=googleapis/java-storage, gcp.client.service=Storage, gcp.client.version=, gcp.client.artifact=com.google.cloud.google-cloud-storage, rpc.system=grpc}, capacity=128, totalAddedValues=5}, totalAttributeCount=5, events=[], totalRecordedEvents=0, links=[], totalRecordedLinks=0, status=ImmutableStatusData{statusCode=UNSET, description=}, hasEnded=true}notable change seen here
name=com.google.cloud.storage.GrpcStorageImpl/create