File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
airbyte-metrics/metrics-lib/src/main/java/io/airbyte/metrics/lib Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,18 @@ public class MetricTags {
22
22
public static final String WORKFLOW_TYPE = "workflow_type" ;
23
23
public static final String ATTEMPT_QUEUE = "attempt_queue" ;
24
24
public static final String GEOGRAPHY = "geography" ;
25
+ public static final String UNKNOWN = "unknown" ;
25
26
26
27
public static String getReleaseStage (final ReleaseStage stage ) {
27
- return stage .getLiteral ();
28
+ return stage != null ? stage .getLiteral () : UNKNOWN ;
28
29
}
29
30
30
31
public static String getFailureOrigin (final FailureOrigin origin ) {
31
- return origin .value ();
32
+ return origin != null ? origin .value () : UNKNOWN ;
32
33
}
33
34
34
35
public static String getJobStatus (final JobStatus status ) {
35
- return status .getLiteral ();
36
+ return status != null ? status .getLiteral () : UNKNOWN ;
36
37
}
37
38
38
39
}
You can’t perform that action at this time.
0 commit comments