phet commented on code in PR #3962:
URL: https://github.com/apache/gobblin/pull/3962#discussion_r1628835470


##########
gobblin-service/src/test/java/org/apache/gobblin/service/monitoring/GaaSJobObservabilityProducerTest.java:
##########
@@ -195,6 +197,48 @@ public void 
testCreateGaaSObservabilityEventWithPartialMetadata() throws Excepti
     serializer.serializeRecord(event);
   }
 
+  @Test
+  public void testCreateGaaSObservabilityFlowEvent() throws Exception {
+    String flowGroup = "testFlowGroup3";
+    String flowName = "testFlowName3";
+    String jobName = JobStatusRetriever.NA_KEY;
+    String flowExecutionId = "1";
+    this.issueRepository.put(
+        TroubleshooterUtils.getContextIdForJob(flowGroup, flowName, 
flowExecutionId, jobName),
+        createTestIssue("issueSummary", "issueCode", IssueSeverity.INFO)
+    );
+    MockGaaSJobObservabilityEventProducer
+        producer = new MockGaaSJobObservabilityEventProducer(new State(), 
this.issueRepository, false);

Review Comment:
   FSR, I thought that empty `State()` would adopt the default of `false` for 
`emitFlowObservabilityEvent`, which means to emit a job-schema event at the 
flow-level (w/ `"NA"` values for some fields).  I thought explicit enablement 
would be needed to actually convert to and produce a flow-schema event.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to