Skip to content

Commit

Permalink
NH-35062: confirm reporting to AppOptics uses correct trusted cert
Browse files Browse the repository at this point in the history
- [JIRA](https://swicloud.atlassian.net/browse/NH-35062)
- add else scope for set `sw.is_error`
  • Loading branch information
cleverchuk committed Mar 15, 2023
1 parent 318695f commit aeefbf9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ private void reportMetrics(SpanData spanData) {
if (hasError) {
aoSecondaryKey.put("Errors", "true");
swoTags.put("sw.is_error", "true");

} else {
swoTags.put("sw.is_error", "false");
}

final long duration = (spanData.getEndEpochNanos() - spanData.getStartEpochNanos()) / 1000;
Expand Down

0 comments on commit aeefbf9

Please sign in to comment.