public TelemetryActivity(Guid parentId, Guid operationId, TelemetryEvent telemetryEvent) : this(parentId, telemetryEvent, operationId) { }
/// <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)); }
/// <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())); }
/// <summary> Emit a singular telemetry event. </summary> /// <param name="TelemetryEvent"> Telemetry event. </param> public static void EmitTelemetryEvent(TelemetryEvent TelemetryEvent) { NuGetTelemetryService?.EmitTelemetryEvent(TelemetryEvent); }