-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Span timestamps are being recorded incorrectly after the laptop resumes from sleep. Specifically, both the span start time and span end time are shifted into the past — close to the time when the laptop lid was closed. After a full system restart, the issue disappears and timestamps are correct again.
Environment
- OS: Ubuntu 20.04
- Go Version: 1.22.0
- Version: opentelemetry-go-instrumentation 0.22.1
To Reproduce
- Open the laptop and generate any trace (timestamps are correct at this point).
- Close the laptop lid and let the system enter sleep mode.
- Resume the system the next morning (or after several hours).
- Generate another trace immediately after waking the system.
- Observe that the span start/end timestamps are near the time the laptop went to sleep, instead of the current time.
- Restart the system.
- Generate another trace and see that timestamps are now correct.
Expected behavior
Span start and end times should reflect the real current system time when the trace is generated, regardless of whether the system recently resumed from sleep.
Actual behaviour
After waking from sleep, spans are assigned timestamps far in the past, typically close to the moment when the system entered sleep mode.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working