Skip to content

Commit

Permalink
add test for batch check telemetry is off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Feb 6, 2025
1 parent 95fdbb6 commit baedf12
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ void testDefaultMetrics() {
assertTrue(
defaultAttributes.containsKey(Attributes.USER_AGENT),
"The default attributes map should contain the USER_AGENT attribute.");
assertFalse(
defaultAttributes.containsKey(Attributes.FGA_CLIENT_REQUEST_BATCH_CHECK_SIZE),
"The default attribute map should not contain the FGA_CLIENT_REQUEST_BATCH_CHECK_SIZE attribute.");

defaultAttributes = metrics.get(Histograms.QUERY_DURATION);
assertNotNull(defaultAttributes, "The default attributes map should not be null.");
Expand Down Expand Up @@ -124,6 +127,9 @@ void testDefaultMetrics() {
assertTrue(
defaultAttributes.containsKey(Attributes.USER_AGENT),
"The default attributes map should contain the USER_AGENT attribute.");
assertFalse(
defaultAttributes.containsKey(Attributes.FGA_CLIENT_REQUEST_BATCH_CHECK_SIZE),
"The default attribute map should not contain the FGA_CLIENT_REQUEST_BATCH_CHECK_SIZE attribute.");
}

@Test
Expand Down

0 comments on commit baedf12

Please sign in to comment.