remove redundant synchronization (#3855)

This commit is contained in:
Eugene R 2021-11-11 12:35:46 +02:00 committed by GitHub
parent d6d81b43d1
commit 90bd4afa21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -203,7 +203,7 @@ final class RecordEventsReadableSpan implements ReadWriteSpan {
getImmutableAttributes(),
(attributes == null) ? 0 : attributes.getTotalAddedValues(),
totalRecordedEvents,
getSpanDataStatus(),
status,
name,
endEpochNanos,
hasEnded);
@ -467,13 +467,6 @@ final class RecordEventsReadableSpan implements ReadWriteSpan {
}
}
@GuardedBy("lock")
private StatusData getSpanDataStatus() {
synchronized (lock) {
return status;
}
}
Resource getResource() {
return resource;
}