Skip to content

Commit

Permalink
Try to fix Cucumber instrumentation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-tkachenko-datadog committed Sep 12, 2024
1 parent c457e5e commit c8f1363
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ public Collection<? extends MutableSpan> onTraceComplete(
span.setTag(Tags.TEST_MODULE_ID, (Number) null);
span.setTag(Tags.TEST_SUITE_ID, (Number) null);

span.setTag(Tags.RUNTIME_NAME, wellKnownTags.getRuntimeName().toString());
span.setTag(Tags.RUNTIME_VENDOR, wellKnownTags.getRuntimeVendor().toString());
span.setTag(Tags.RUNTIME_VERSION, wellKnownTags.getRuntimeVersion().toString());
span.setTag(Tags.OS_ARCHITECTURE, wellKnownTags.getOsArch().toString());
span.setTag(Tags.OS_PLATFORM, wellKnownTags.getOsPlatform().toString());
span.setTag(Tags.OS_VERSION, wellKnownTags.getOsVersion().toString());
String spanType = span.getSpanType();
if (DDSpanTypes.TEST.equals(spanType)) {
span.setTag(Tags.RUNTIME_NAME, wellKnownTags.getRuntimeName().toString());
span.setTag(Tags.RUNTIME_VENDOR, wellKnownTags.getRuntimeVendor().toString());
span.setTag(Tags.RUNTIME_VERSION, wellKnownTags.getRuntimeVersion().toString());
span.setTag(Tags.OS_ARCHITECTURE, wellKnownTags.getOsArch().toString());
span.setTag(Tags.OS_PLATFORM, wellKnownTags.getOsPlatform().toString());
span.setTag(Tags.OS_VERSION, wellKnownTags.getOsVersion().toString());
}
}
return filteredTrace;
}
Expand Down

0 comments on commit c8f1363

Please sign in to comment.