Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert utcnow change #400

Merged
merged 1 commit into from
Nov 25, 2019
Merged

Revert utcnow change #400

merged 1 commit into from
Nov 25, 2019

Conversation

adamchainz
Copy link
Contributor

PR #397 has lead to timezone offsets being sent to the Core Agent, which it doesn't parse, logging this error and failing to return a full response to the client:

[2019-11-25T18:09:49][socket::server][INFO] Reading a command from stream: NoParse(Error("trailing input", line: 1, column: 70), "{\"ApplicationEvent\": {\"timestamp\": \"2019-11-25T18:09:49.328081+00:00Z\", \"event_type\": \"CPU/Utilization\", \"event_value\": 0.027687317280944007, \"source\": \"Pid: 69721\"}}")

I think the safest thing to do here is a pure revert. It would be better theoretically to track datetimes with timezone information but it seems too disruptive to the way the core agent works.

This has lead to timezone offsets being sent to the Core Agent, which it doesn't parse, logging this error and failing to return a full response to the client:

```
[2019-11-25T18:09:49][socket::server][INFO] Reading a command from stream: NoParse(Error("trailing input", line: 1, column: 70), "{\"ApplicationEvent\": {\"timestamp\": \"2019-11-25T18:09:49.328081+00:00Z\", \"event_type\": \"CPU/Utilization\", \"event_value\": 0.027687317280944007, \"source\": \"Pid: 69721\"}}")
```

I think the safest thing to do here is a pure revert. It would be better theoretically to track datetimes with timezone information but it seems too disruptive to the way the core agent works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant