Skip to content

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

@cijothomas

Description

@cijothomas

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) :

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions