Skip to content

Commit 9ea7cd4

Browse files
authored
Merge branch '8.x.x' into feat/okhttp-removal
2 parents 53a5915 + aaf7418 commit 9ea7cd4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
- Change OkHttp sub-spans to span attributes ([#3556](https://github.com/getsentry/sentry-java/pull/3556))
88
- This will reduce the number of spans created by the SDK
99

10+
### Fixes
11+
12+
- Use OpenTelemetry span name as fallback for transaction name ([#3557](https://github.com/getsentry/sentry-java/pull/3557))
13+
- In certain cases we were sending transactions as "<unlabeled transaction>" when using OpenTelemetry
14+
1015
## 8.0.0-alpha.4
1116

1217
### Fixes

sentry-opentelemetry/sentry-opentelemetry-core/src/main/java/io/sentry/opentelemetry/SpanDescriptionExtractor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ private OtelSpanInfo extractSpanDescription(
6666
}
6767

6868
final @NotNull String name = otelSpan.getName();
69-
final @Nullable String description = sentrySpan != null ? sentrySpan.getDescription() : name;
69+
final @Nullable String maybeDescription =
70+
sentrySpan != null ? sentrySpan.getDescription() : name;
71+
final @NotNull String description = maybeDescription != null ? maybeDescription : name;
7072
return new OtelSpanInfo(name, description, TransactionNameSource.CUSTOM);
7173
}
7274

0 commit comments

Comments
 (0)