Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public ExecutorProvider traceExecutorProvider(@Qualifier("traceSenderThreadPool"
@Bean(destroyMethod = "shutdownNow")
@ConditionalOnMissingBean(name = "stackdriverSenderChannel")
public ManagedChannel stackdriverSenderChannel() {
return ManagedChannelBuilder.forTarget("cloudtrace.googleapis.com")
return ManagedChannelBuilder.forTarget("dns:///cloudtrace.googleapis.com")
.userAgent(this.headerProvider.getUserAgent())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void setupTraceClient() throws IOException {
.getService();

ManagedChannel channel = ManagedChannelBuilder
.forTarget("cloudtrace.googleapis.com")
.forTarget("dns:///cloudtrace.googleapis.com")
.build();

this.traceServiceStub = TraceServiceGrpc.newBlockingStub(channel)
Expand Down