public RequestEnvelope(RequestTelemetry requestTelemetry) : base(kType)
 {
     this.data = new RequestData(requestTelemetry);
 }
Beispiel #2
0
 public void TrackRequest(RequestTelemetry requestTelemetry)
 {
     SendTelemetry(requestTelemetry);
 }
Beispiel #3
0
        /// <summary>
        /// Logging the frequency and duration of server requests for performance analysis.
        /// </summary>
        public void TrackRequest(UnityWebRequest www, DateTimeOffset startTime, TimeSpan duration, bool success)
        {
            var t = new RequestTelemetry(www.url, startTime, duration, www.responseCode.ToString(), success);

            TrackRequest(t);
        }