You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the code above to log a dependency call. The duration array is a result from process.hrtime() (the first element contains seconds, the second element contains nanoseconds which couldn't fit into seconds precision). I know the function is called, because the context.log above it is logged (with proper arguments). However, the dependency call isn't showing up in Application insights, while the tracing and everything else I'm logging through the SDK is.
Any suggestions on how to debug this problem or what might be causing it?
The text was updated successfully, but these errors were encountered:
I can reproduce this problem. The following error is returned from the backend: Field 'duration' on type 'RemoteDependencyData' is not a valid duration string. Expected: dd.hh:mm:ss.fffffff format not exceeding 1000 days, Actual: 21.17:03:44.372.2452609539032
You can workaround this issue by not giving non-integer millisecond values to trackDependency. For example, the following works:
OsvaldoRosado
changed the title
Dependency calls not showing up in insights
Fractional millisecond values are not sanitized or serialized properly on trackDependency
Jun 9, 2017
I use the code above to log a dependency call. The duration array is a result from
process.hrtime()
(the first element contains seconds, the second element contains nanoseconds which couldn't fit into seconds precision). I know the function is called, because the context.log above it is logged (with proper arguments). However, the dependency call isn't showing up in Application insights, while the tracing and everything else I'm logging through the SDK is.Any suggestions on how to debug this problem or what might be causing it?
The text was updated successfully, but these errors were encountered: