ApplicationInsights-Java icon indicating copy to clipboard operation
ApplicationInsights-Java copied to clipboard

Should there be constructor with URL argument too?

Open krnkhanna opened this issue 1 year ago • 0 comments

I am trying to use TelemetryClient to track a request and found that I can add a URL only via a setter method. I think there should also be a method with URL like:

public RequestTelemetry( String name, URL url, Date timestamp, long duration, String responseCode, boolean success)

https://github.com/microsoft/ApplicationInsights-Java/blob/f0a41702ac7cdb49f8efbc452b7951303b82bd86/classic-sdk/core/src/main/java/com/microsoft/applicationinsights/telemetry/RequestTelemetry.java#L36

krnkhanna avatar Jul 01 '24 14:07 krnkhanna