<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsModule.PortalDiagnosticsSender

This class is responsible for sending diagnostics information into portal.
public string DiagnosticsInstrumentationKey { get; set; }

Gets or sets instrumentation key for diagnostics (optional).

Initializes a new instance of the PortalDiagnosticsSender class.

public void Send(TraceEvent eventData)