Skip to content

Commit

Permalink
fix checks and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andybradshaw committed Sep 28, 2023
1 parent 4084d82 commit 638a1a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,20 @@ static EndpointChannel create(Config cf, EndpointChannel channel, Endpoint endpo
EndpointChannel delegate, String channelName, Endpoint endpoint, TaggedMetricRegistry registry) {
this.delegate = delegate;
DialogueClientMetrics dialogueClientMetrics = DialogueClientMetrics.of(registry);
DialogueClientMetrics.RequestsSizeBuilderRetryableStage requestSize = dialogueClientMetrics
this.retryableRequestSize = dialogueClientMetrics
.requestsSize()
.channelName(channelName)
.serviceName(endpoint.serviceName())
.endpoint(endpoint.endpointName());
this.retryableRequestSize = requestSize.retryable("true").build();
this.nonretryableRequestSize = requestSize.retryable("false").build();
.endpoint(endpoint.endpointName())
.retryable("true")
.build();
this.nonretryableRequestSize = dialogueClientMetrics
.requestsSize()
.channelName(channelName)
.serviceName(endpoint.serviceName())
.endpoint(endpoint.endpointName())
.retryable("false")
.build();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ public void close() {}
assertThat(response.get().code()).isEqualTo(200);
Snapshot snapshot = DialogueClientMetrics.of(registry)
.requestsSize()
.channelName("channelName")
.serviceName("service")
.endpoint("endpoint")
.retryable("true")
.build()
.getSnapshot();
assertThat(snapshot.size()).isEqualTo(1);
Expand Down

0 comments on commit 638a1a2

Please sign in to comment.