Skip to content

Commit 6ec8e1b

Browse files
committed
Format code
1 parent e94e24d commit 6ec8e1b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public final class SpanDescriptionExtractor {
3131
return descriptionForDbSystem(otelSpan);
3232
}
3333

34-
final @Nullable String graphqlOperationType = attributes.get(GraphqlIncubatingAttributes.GRAPHQL_OPERATION_TYPE);
34+
final @Nullable String graphqlOperationType =
35+
attributes.get(GraphqlIncubatingAttributes.GRAPHQL_OPERATION_TYPE);
3536
if (graphqlOperationType != null) {
3637
return descriptionForGraphql(otelSpan);
3738
}
@@ -114,8 +115,12 @@ private OtelSpanInfo descriptionForDbSystem(final @NotNull SpanData otelSpan) {
114115

115116
private OtelSpanInfo descriptionForGraphql(final @NotNull SpanData otelSpan) {
116117
final @NotNull Attributes attributes = otelSpan.getAttributes();
117-
@Nullable String graphqlOperationType = attributes.get(GraphqlIncubatingAttributes.GRAPHQL_OPERATION_TYPE);
118-
@Nullable String graphqlOperationName = attributes.get(GraphqlIncubatingAttributes.GRAPHQL_OPERATION_NAME);
118+
@Nullable
119+
String graphqlOperationType =
120+
attributes.get(GraphqlIncubatingAttributes.GRAPHQL_OPERATION_TYPE);
121+
@Nullable
122+
String graphqlOperationName =
123+
attributes.get(GraphqlIncubatingAttributes.GRAPHQL_OPERATION_NAME);
119124
if (graphqlOperationType != null && graphqlOperationName != null) {
120125
String description = graphqlOperationType + " " + graphqlOperationName;
121126
return new OtelSpanInfo(description, description, TransactionNameSource.TASK);

0 commit comments

Comments
 (0)