Skip to content

Commit

Permalink
feat: Make OTel classes/methods package-private and remove non-generi…
Browse files Browse the repository at this point in the history
…c PubsubTracer interface
  • Loading branch information
michaelpri10 committed Sep 25, 2024
1 parent 79dd118 commit fe4753f
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 326 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class MessageDispatcher {

private final String subscriptionName;
private final boolean enableOpenTelemetryTracing;
private PubsubTracer tracer = new BasePubsubTracer();
private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false);

/** Internal representation of a reply to a Pubsub message, to be sent back to the service. */
public enum AckReply {
Expand Down Expand Up @@ -688,7 +688,7 @@ public static final class Builder {

private String subscriptionName;
private boolean enableOpenTelemetryTracing;
private PubsubTracer tracer;
private OpenTelemetryPubsubTracer tracer;

protected Builder(MessageReceiver receiver) {
this.receiver = receiver;
Expand Down Expand Up @@ -770,7 +770,7 @@ public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing)
return this;
}

public Builder setTracer(PubsubTracer tracer) {
public Builder setTracer(OpenTelemetryPubsubTracer tracer) {
this.tracer = tracer;
return this;
}
Expand Down
Loading

0 comments on commit fe4753f

Please sign in to comment.