Sitelet https://github.com/microsoft/ApplicationInsights-dotnet/issues/927#issue-365686691
Skip to content

Change Duration from string to TimeSpan in autogenerated internal class. #927

Description

DependencyTelemetry has a public field Duration of type TimeSpan. This field is served by a string field leading to conversion between String and TimeSpan throughout the system.
https://github.com/Microsoft/ApplicationInsights-dotnet/blob/develop/src/Microsoft.ApplicationInsights/DataContracts/DependencyTelemetry.cs#L216

Proposal is to change the internal auto-generated code (https://github.com/Microsoft/ApplicationInsights-dotnet/blob/develop/Schema/PublicSchema/RemoteDependencyData.bond#L27) to use TimeSpan to avoid conversion between String and TimeSpan.

Applicable to DependencyTelemetry and RequestTelemetry.

Version Info

SDK Version :
.NET Version :
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS :
Hosting Info (IIS/Azure WebApps/ etc) :

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions