azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Diagnostic for FunctionAppLogs does sends datetime using "bad" format

Open ilya-scale opened this issue 2 years ago • 1 comments

Investigative information

  • Timestamp: 2022-06-22
  • Function App version: 4.6.1.1
  • Region: North Europe

Repro steps

  1. Set up diagnostic settings to send FunctionAppLogs (in my case it is logz.io integration provided by Microsoft)
  2. Invoke a function to produce logs
  3. check the msg.time property, it looks like that: "06/22/2022 10:24:59"

Expected behavior

I expect msg.time to be more precise and use ISO8601 format and not this custom format (which is probably US format): "time": "2022-06-22T10:20:22.1973786Z"

Actual behavior

msg.time property looks like that: "06/22/2022 10:24:59"

Known workarounds

Unknown

Related information

  • Programming language used : net6/C#

Other azure resources with diagnostic settings use the standard format, e.g. Azure Api Management, this is an example: "time": "2022-06-22T10:20:22.1973786Z",

ilya-scale avatar Jun 22 '22 10:06 ilya-scale

Hi @ilya-scale Thank you for the feedback, we will discuss this issue internally and let you know about the findings soon.

Ved2806 avatar Jun 27 '22 09:06 Ved2806