Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Features

- Extract OpenTelemetry `URL_PATH` span attribute into description ([#3933](https://github.com/getsentry/sentry-java/pull/3933))

## 8.0.0-beta.3

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,19 @@ 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 (httpPath == null && urlPath != null) {
httpPath = urlPath;
}

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