Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Conversation

@songy23
Copy link
Contributor

@songy23 songy23 commented May 4, 2019

Fixes #1876.

protected void finalize() throws Throwable {
synchronized (this) {
if (!hasBeenEnded) {
logger.log(Level.WARNING, "Span " + name + " is GC'ed without being ended.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG, updated.

@songy23 songy23 merged commit 282d742 into census-instrumentation:master May 4, 2019
@songy23 songy23 deleted the handle-span-gc branch May 4, 2019 18:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log error if Spans are gc-ed without being closed.

4 participants