Skip to content

Commit

Permalink
Update TeamCityBuildListener.java
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson authored Sep 10, 2024
1 parent f476067 commit 916f68c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void buildStarted(@NotNull SRunningBuild build) {
var parentBuildId = parentBuild.getId();
LOG.debug(String.format("Root build of build id %d is %d", build.getBuildId(), parentBuildId));

Span parentSpan = otelHelper.getParentSpan(String.valueOf(parentBuildId));
Span parentSpan = otelHelper.getOrCreateParentSpan(String.valueOf(parentBuildId));
Span span = otelHelper.createSpan(getBuildId(build), parentSpan);
LOG.debug(String.format("Span created for %s, id %d", getBuildName(build), build.getBuildId()));

Expand Down

0 comments on commit 916f68c

Please sign in to comment.