[
https://issues.apache.org/jira/browse/GOBBLIN-2209?focusedWorklogId=976487&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-976487
]
ASF GitHub Bot logged work on GOBBLIN-2209:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 28/Jul/25 06:00
Start Date: 28/Jul/25 06:00
Worklog Time Spent: 10m
Work Description: Blazer-007 commented on code in PR #4118:
URL: https://github.com/apache/gobblin/pull/4118#discussion_r2234788884
##########
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/ddm/launcher/ExecuteGobblinJobLauncher.java:
##########
@@ -96,8 +103,21 @@ public void submitJob(List<WorkUnit> workunits) {
EventSubmitterContext eventSubmitterContext = new
EventSubmitterContext.Builder(eventSubmitter)
.withGaaSJobProps(finalProps)
.build();
+
+ Map<String, String> attributes = new HashMap<>();
+ attributes.put(CURR_STATE, JOB_START);
+ EmitOTelMetricsImpl emitOTelMetrics = new EmitOTelMetricsImpl();
+
emitOTelMetrics.emitLongCounterMetric(GaaSOpenTelemetryMetrics.GAAS_JOB_STATUS,
1L, attributes, finalProps);
+
+ long startTimeMillis = System.currentTimeMillis();
ExecGobblinStats execGobblinStats = workflow.execute(finalProps,
eventSubmitterContext);
+ double timeTaken = (System.currentTimeMillis() - startTimeMillis) /
1000.0;
log.info("FINISHED - ExecuteGobblinWorkflow.execute = {}",
execGobblinStats);
+ attributes.put(CURR_STATE, JOB_COMPLETE);
+
emitOTelMetrics.emitLongCounterMetric(GaaSOpenTelemetryMetrics.GAAS_JOB_STATUS,
1L, attributes, finalProps);
+ attributes.remove(CURR_STATE);
Review Comment:
Nothing specific, just avoiding creating a new Map object
Issue Time Tracking
-------------------
Worklog Id: (was: 976487)
Time Spent: 3h 40m (was: 3.5h)
> Emit GaaS Executor OTel Metrics
> -------------------------------
>
> Key: GOBBLIN-2209
> URL: https://issues.apache.org/jira/browse/GOBBLIN-2209
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-metrics
> Reporter: Vivek Rai
> Assignee: Issac Buenrostro
> Priority: Major
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> Emit GaaS Executor OTel Metrics
--
This message was sent by Atlassian Jira
(v8.20.10#820010)