Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInsightsExporter ¶
type AppInsightsExporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func NewExporter( instrumentationKey string, logger func(msg string) error, ) (*AppInsightsExporter, error)
NewExporter creates a new App Insights Exporter with an app insights telemetry client created from an instrumentation key. The exporter uses a logger function provided as a callback for logging events.
func NewExporterFromConfig ¶ added in v0.4.1
func NewExporterFromConfig( cfg *appinsights.TelemetryConfiguration, logger func(msg string) error, ) (*AppInsightsExporter, error)
NewExporterFromConfig creates a new App Insights Exporter with an app insights telemetry client created from a telemetry configuration. The exporter uses a logger function provided as a callback for logging events.
func (*AppInsightsExporter) ExportSpans ¶
func (exp *AppInsightsExporter) ExportSpans( ctx context.Context, spans []sdktrace.ReadOnlySpan, ) error
ExportSpans processes and dispatches an array of Open Telemetry spans to Application Insights.
func (*AppInsightsExporter) Shutdown ¶
func (exp *AppInsightsExporter) Shutdown( ctx context.Context, ) error
Shutdown closes the exporter and waits until the pending messages are sent with up to one minute grace period, or until the context is canceled. Grace period might change in the future to be optionable