{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/183","labels_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/183/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/183/events","html_url":"https://github.com/aws/aws-sdk-net/issues/183","id":62716855,"number":183,"title":"DynamoDBTraceListener, RangeKey timestamp is formatted as String with seconds precision","user":{"login":"mahoua","id":919809,"avatar_url":"https://avatars.githubusercontent.com/u/919809?v=3","gravatar_id":"","url":"https://api.github.com/users/mahoua","html_url":"https://github.com/mahoua","followers_url":"https://api.github.com/users/mahoua/followers","following_url":"https://api.github.com/users/mahoua/following{/other_user}","gists_url":"https://api.github.com/users/mahoua/gists{/gist_id}","starred_url":"https://api.github.com/users/mahoua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahoua/subscriptions","organizations_url":"https://api.github.com/users/mahoua/orgs","repos_url":"https://api.github.com/users/mahoua/repos","events_url":"https://api.github.com/users/mahoua/events{/privacy}","received_events_url":"https://api.github.com/users/mahoua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-net/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-18T15:06:11Z","updated_at":"2015-03-18T18:11:45Z","closed_at":null,"body":"DynamoDBTraceListener can only log one message per second. Every other log messages created during that second will overwrite the message.\r\n\r\nThe cause : \r\nIn the following file,\r\nhttps://github.com/aws/aws-sdk-net/blob/master/AWS.Extensions/TraceListener/DynamoDBTraceListener.cs\r\n\r\nLine 445 : return doc[key].AsString();\r\n\r\nIn the case where key is a DateTime (for example when used for the RangeKey with format {Timestamp}, as instructed in the sample documentation,) this gets rendered as \"2015-03-18 11:45:01\", which is a string without milliseconds. I think internally it does a simple ToString() on the DateTime, where it should do a ToString(\"o\") or some other alternative that would preserve at least milliseconds precision.\r\n\r\nThe problem with using this string format for dates is that I can only log one message per second. Every log happening during that second will overwrite the previous ones.\r\n\r\nThanks for your time!"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-net/issues/comments/83105462","html_url":"https://github.com/aws/aws-sdk-net/issues/183#issuecomment-83105462","issue_url":"https://api.github.com/repos/aws/aws-sdk-net/issues/183","id":83105462,"user":{"login":"PavelSafronov","id":1359724,"avatar_url":"https://avatars.githubusercontent.com/u/1359724?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelSafronov","html_url":"https://github.com/PavelSafronov","followers_url":"https://api.github.com/users/PavelSafronov/followers","following_url":"https://api.github.com/users/PavelSafronov/following{/other_user}","gists_url":"https://api.github.com/users/PavelSafronov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelSafronov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelSafronov/subscriptions","organizations_url":"https://api.github.com/users/PavelSafronov/orgs","repos_url":"https://api.github.com/users/PavelSafronov/repos","events_url":"https://api.github.com/users/PavelSafronov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelSafronov/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T18:11:45Z","updated_at":"2015-03-18T18:11:45Z","body":"Thanks for bringing this to our attention. This issue has been fixed in our internal repo and the fix will go out with the next release of the SDK."}}