appinsightstrace

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInsightsCore

type AppInsightsCore struct {
	Client   *appinsights.TelemetryClient
	ServName string
}

func NewAppInsightsCore

func NewAppInsightsCore(
	optn *AppInsightsOptions,
	lgr *zap.Logger,
) *AppInsightsCore

func (*AppInsightsCore) Close

func (insights *AppInsightsCore) Close()

type AppInsightsOptions added in v0.1.1

type AppInsightsOptions struct {
	InstrumentationKey string
	ServiceName        string
}

type AppInsightsTrace

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

func NewAppInsightsTrace

func NewAppInsightsTrace(core *AppInsightsCore, tid string, pid string, rid string) *AppInsightsTrace

func (*AppInsightsTrace) TraceDependency

func (tracer *AppInsightsTrace) TraceDependency(
	spanId string,
	dependencyType string,
	serviceName string,
	commandName string,
	success bool,
	startTimestamp time.Time,
	eventTimestamp time.Time,
	fields map[string]string,
)

func (*AppInsightsTrace) TraceRequest

func (tracer *AppInsightsTrace) TraceRequest(
	isParent bool,
	method string,
	path string,
	query string,
	statusCode int,
	bodySize int,
	ip string,
	userAgent string,
	startTimestamp time.Time,
	eventTimestamp time.Time,
	fields map[string]string,
)

Jump to

Keyboard shortcuts

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