abhishekmjain commented on code in PR #4167:
URL: https://github.com/apache/gobblin/pull/4167#discussion_r2910784364


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/proc/ServiceLayerIssueEmitter.java:
##########
@@ -0,0 +1,116 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.gobblin.service.modules.orchestration.proc;
+
+import java.time.ZoneOffset;
+import java.time.ZonedDateTime;
+import java.util.Collections;
+
+import org.apache.commons.codec.digest.DigestUtils;
+
+import lombok.extern.slf4j.Slf4j;
+
+import org.apache.gobblin.metrics.event.EventSubmitter;
+import org.apache.gobblin.metrics.event.TimingEvent;
+import org.apache.gobblin.runtime.troubleshooter.Issue;
+import org.apache.gobblin.runtime.troubleshooter.IssueEventBuilder;
+import org.apache.gobblin.runtime.troubleshooter.IssueSeverity;
+import org.apache.gobblin.service.modules.flowgraph.Dag;
+import org.apache.gobblin.service.monitoring.JobStatusRetriever;
+
+
+/**
+ * Emits orchestration-layer issues through the existing issue pipeline:
+ * {@link IssueEventBuilder} -> Kafka -> {@link 
org.apache.gobblin.runtime.troubleshooter.JobIssueEventHandler}
+ * -> {@link 
org.apache.gobblin.runtime.troubleshooter.MultiContextIssueRepository}.
+ *
+ * Issue codes use {@code S} prefix + 6-char hex hash (service-layer), 
matching the executor-side {@code T} prefix convention.
+ * Thread-safe: no shared mutable state; flow/job context passed explicitly to 
prevent cross-flow contamination.
+ */
+@Slf4j
+public final class ServiceLayerIssueEmitter {

Review Comment:
   nit: let's rename this to `OrchestratorIssueEmitter`



-- 
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