Skip to content

Commit

Permalink
fix: Logging SDK not applying quota limits for project set using quot…
Browse files Browse the repository at this point in the history
…aProjectId (#1125)
  • Loading branch information
losalex committed Oct 7, 2022
1 parent 330eb88 commit 70fc6ee
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -122,6 +122,7 @@ public GrpcLoggingRpc(final LoggingOptions options) throws IOException {
.setDefaultCallContext(GrpcCallContext.of(managedChannel, CallOptions.DEFAULT))
.setBackgroundResources(
Collections.<BackgroundResource>singletonList(transportChannel))
.setQuotaProjectId(options.getQuotaProjectId())
.build();
} catch (Exception ex) {
throw new IOException(ex);
Expand All @@ -144,6 +145,7 @@ public GrpcLoggingRpc(final LoggingOptions options) throws IOException {
.build();
HeaderProvider headerProvider = options.getMergedHeaderProvider(internalHeaderProvider);
settingsBuilder.setInternalHeaderProvider(headerProvider);
settingsBuilder.setQuotaProjectId(options.getQuotaProjectId());

clientContext = ClientContext.create(settingsBuilder.build());
}
Expand Down

0 comments on commit 70fc6ee

Please sign in to comment.