FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Take in a module name when creating a span by sydney-munro · Pull Request #2811 · googleapis/java-storage · GitHub

feat: Take in a module name when creating a span - #2811

Merged
sydney-munro merged 6 commits into
otel-v1-branchfrom
http-instrument
Nov 8, 2024
Merged

feat: Take in a module name when creating a span#2811
sydney-munro merged 6 commits into
otel-v1-branchfrom
http-instrument

Conversation

sydney-munro commented Nov 8, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

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

sydney-munro requested a review from a team November 8, 2024 17:20
product-auto-label Bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Nov 8, 2024
product-auto-label Bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels 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());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Do you have an example trace with these new spans that you can add to PR description?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

posted a span from one of the tests

sydney-munro merged commit dc5a734 into otel-v1-branch Nov 8, 2024
sydney-munro deleted the http-instrument branch November 8, 2024 22:47
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

Labels

api: storage Issues related to the googleapis/java-storage API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL