Help us shape the future of Go! Take the 2026 Go Developer Survey

telemetry

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInsightClient

type AppInsightClient struct {
	appinsights.TelemetryClient
	// contains filtered or unexported fields
}

func (AppInsightClient) Close

func (c AppInsightClient) Close()

func (AppInsightClient) Trace

func (c AppInsightClient) Trace(level Level, payload string)

type ApplicationInsightMessage

type ApplicationInsightMessage struct {
	SubscriptionId string `json:"subscription_id"`
	InstallationId string `json:"installation_id"`
	SessionId      string `json:"session_id"`
	Payload        string `json:"payload"`
}

type Client

type Client interface {
	Trace(level Level, msg string)
	Close()
}

func NewAppInsight

func NewAppInsight(subscriptionId string, installId string, sessionid string) Client

func NewNullClient

func NewNullClient() Client

type Level

type Level int
const (
	Verbose Level = iota
	Info
	Warn
	Error
	Critical
)

type NullClient

type NullClient struct{}

func (NullClient) Close

func (NullClient) Close()

func (NullClient) Trace

func (NullClient) Trace(Level, string)

Jump to

Keyboard shortcuts

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