Skip to content

Commit

Permalink
Merge 25b57d1 into 6de95f1
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer authored Nov 27, 2024
2 parents 6de95f1 + 25b57d1 commit 14ed750
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,21 @@ private OtelSpanInfo descriptionForHttpMethod(
httpPath = httpTarget;
}
final @NotNull String op = opBuilder.toString();

final @Nullable String urlFull = attributes.get(UrlAttributes.URL_FULL);
if (urlFull != null) {
if (httpPath == null) {
httpPath = urlFull;
}
}

final @Nullable String urlPath = attributes.get(UrlAttributes.URL_PATH);
if (urlPath != null) {
if (httpPath == null) {
httpPath = urlPath;
}
}

if (httpPath == null) {
return new OtelSpanInfo(op, name, TransactionNameSource.CUSTOM);
}
Expand Down

0 comments on commit 14ed750

Please sign in to comment.