package
0.0.4
Repository: https://github.com/devigned/apmz-sdk.git
Documentation: pkg.go.dev

# Packages

Data contract definitions for telemetry submitted to Application Insights.

# Functions

GetCallstack generates a callstack suitable for inclusion in Application Insights exception telemetry for the current goroutine, skipping a number of frames specified by skip.
NewAggregateMetricTelemetry creates a new aggregated metric telemetry item with the specified name.
NewAvailabilityTelemetry creates a new availability telemetry item with the specified test name, duration and success code.
NewDiagnosticsMessageListener subscribes the specified handler to diagnostics messages from the SDK.
NewEventTelemetry creates an event telemetry item with the specified name.
NewExceptionTelemetry creates a new exception telemetry item with the specified error and the current callstack.
NewInMemoryChannel creates an InMemoryChannel instance and starts a background submission goroutine.
NewMetricTelemetry creates a metric telemetry sample with the specified name and value.
NewPageViewTelemetry creates a new page view telemetry item with the specified name and url.
NewRemoteDependencyTelemetry creates a new Remote Dependency telemetry item, with the specified name, dependency type, target site, and success status.
NewRequestTelemetry creates a new request telemetry item for HTTP requests.
NewTelemetryClient creates a new telemetry client instance that submits telemetry with the specified instrumentation key.
NewTelemetryClientFromConfig creates a new telemetry client instance configured by the specified TelemetryConfiguration object.
NewTelemetryConfiguration creates a new TelemetryConfiguration object with the specified instrumentation key and default values.
NewTelemetryContext creates a new, empty TelemetryContext.
NewTraceTelemetry creates a trace telemetry item with the specified message and severity level.
TrackPanic recovers from any active panics and tracks them to the specified TelemetryClient.

# Constants

Type of the metric data measurement.
Defines the level of severity for the event.
Defines the level of severity for the event.
Defines the level of severity for the event.
Type of the metric data measurement.
Defines the level of severity for the event.
Defines the level of severity for the event.

# Structs

AggregateMetricTelemetry items represent an aggregation of data points over time.
AvailabilityTelemetry items represent the result of executing an availability test.
BaseTelemetry is the common base struct for telemetry items.
BaseTelemetryMeasurements provides the Measurements field for telemetry items that support it.
BaseTelemetryNoMeasurements provides no Measurements field for telemetry items that omit it.
EventTelemetry items represent structured event records.
ExceptionTelemetry items represent an exception that has occurred during execution of the monitored application.
InMemoryChannel is a telemetry channel that stores events exclusively in memory.
MetricTelemetry items each represent a single data point.
PageViewTelemetry items represent generic actions on a page like a button click.
RemoteDependencyTelemetry items represent interactions of the monitored component with a remote component/service like SQL or an HTTP endpoint.
RequestTelemetry items represents completion of an external request to the application and contains a summary of that request execution and results.
TelemetryConfiguration is configuration data used to initialize a new TelemetryClient.
TelemetryContext encapsulates contextual data common to all telemetry submitted through a TelemetryClient instance such as including instrumentation key, tags, and common properties.
TraceTelemetry items represent printf-like trace statements that can be text searched.

# Interfaces

DiagnosticsMessageListener is a listener type returned by NewDiagnosticsMessageListener.
Telemetry is a common interface implemented by telemetry items that can be passed to TelemetryClient.Track.
TelemetryChannel is responsible for queueing and periodically submitting telemetry items.
TelemetryClient is the Application Insights telemetry client provides interface to track telemetry items.
TelemetryData is aommon interface implemented by telemetry data contracts.

# Type aliases

DiagnosticsMessageHandler is a handler function for receiving diagnostics messages.