Пример #1
0
 public TelemetryActivity(Guid parentId, Guid operationId, TelemetryEvent telemetryEvent) :
     this(parentId, telemetryEvent, operationId)
 {
 }
Пример #2
0
 /// <summary> Creates a TelemetryActivity. </summary>
 /// <param name="telemetryEvent"> Telemetry event. </param>
 /// <returns> TelemetryActivity with an empty parentId, new operationId, and given TelemetryEvent. </returns>
 public static TelemetryActivity Create(TelemetryEvent telemetryEvent)
 {
     return(Create(Guid.Empty, telemetryEvent));
 }
Пример #3
0
 /// <summary> Creates a TelemetryActivity. </summary>
 /// <param name="parentId"> OperationId of the parent event. </param>
 /// <param name="telemetryEvent"> Telemetry event. </param>
 /// <returns> TelemetryActivity with a given parentId, new operationId, and given TelemetryEvent. </returns>
 public static TelemetryActivity Create(Guid parentId, TelemetryEvent telemetryEvent)
 {
     return(new TelemetryActivity(parentId, telemetryEvent, Guid.NewGuid()));
 }
Пример #4
0
 /// <summary> Emit a singular telemetry event. </summary>
 /// <param name="TelemetryEvent"> Telemetry event. </param>
 public static void EmitTelemetryEvent(TelemetryEvent TelemetryEvent)
 {
     NuGetTelemetryService?.EmitTelemetryEvent(TelemetryEvent);
 }