cloudy

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a wrapper of telemetry client for Azure Application Insights.

func NewClient

func NewClient(insKey, endpoint string, cfgMaps ...map[string]string) *Client

NewClient returns a wrapper client for Azure Application Insights.

func (*Client) Close

func (t *Client) Close()

Close flushes and tears down the current queue of telemetry client.

func (*Client) Enabled

func (t *Client) Enabled() bool

Enabled indicates if the client is enabled and will accept telemetry.

func (*Client) Flush

func (t *Client) Flush()

Flush forces the current queue of telemetry client to be sent. It's non-blocking, and not recommended.

func (*Client) Origin

func (t *Client) Origin() ais.TelemetryClient

Origin returns the original client.

func (*Client) SetEnabled

func (t *Client) SetEnabled(enabled bool)

SetEnabled enables or disables the telemetry client.

func (*Client) Track

func (t *Client) Track(tel ais.Telemetry)

Track submits the specified telemetry item.

func (*Client) TrackPanic

func (t *Client) TrackPanic(rethrow bool)

TrackPanic is a helper method for recovery and submit exceptions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL