Skip to content

Commit

Permalink
SNOW-1357377 Add request Id in all streaming ingest APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-japatel committed May 1, 2024
1 parent eb87281 commit 8c5dc97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,13 @@ public HttpPost generateStreamingIngestPostRequest(
URI uri = null;
try {
uri =
new URIBuilder().setScheme(scheme).setHost(host).setPort(port).setPath(endPoint).build();
new URIBuilder()
.setScheme(scheme)
.setHost(host)
.setPort(port)
.setPath(endPoint)
.setParameter(REQUEST_ID, UUID.randomUUID().toString())
.build();
} catch (URISyntaxException e) {
throw new SFException(e, ErrorCode.BUILD_REQUEST_FAILURE, message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ ChannelsStatusResponse getChannelsStatus(
.collect(Collectors.toList());
request.setChannels(requestDTOs);
request.setRole(this.role);
request.setRequestId(this.flushService.getClientPrefix() + "_" + counter.getAndIncrement());

String payload = objectMapper.writeValueAsString(request);

Expand Down

0 comments on commit 8c5dc97

Please sign in to comment.