daemon

package
v0.0.0-...-f1bff1d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveTraceDiff

type ActiveTraceDiff struct {
	ActivatedTraces   []LoggingOptions      `json:"activated_traces"`
	DeactivatedTraces []akid.LearnSessionID `json:"deactivated_traces"`
}

func NewActiveTraceDiff

func NewActiveTraceDiff(activatedTraces []LoggingOptions, deactivatedTraces []akid.LearnSessionID) *ActiveTraceDiff

func (ActiveTraceDiff) Size

func (diff ActiveTraceDiff) Size() int

type LoggingOptions

type LoggingOptions struct {
	// The trace to which logged events should be associated.
	TraceName string              `json:"trace_name"`
	TraceID   akid.LearnSessionID `json:"trace_id"`

	// The service ID to which the trace belongs.
	ServiceID akid.ServiceID `json:"service_id"`

	// A number in the range [0,1], indicating the fraction of events to log.
	SamplingRate float32 `json:"sampling_rate"`

	// Whether third-party trackers should be filtered from the trace before
	// being sent to the cloud.
	FilterThirdPartyTrackers bool `json:"filter_third_party_trackers"`
}

func NewLoggingOptions

func NewLoggingOptions(traceName string, traceID akid.LearnSessionID, serviceID akid.ServiceID, samplingRate float32, filterThirdPartyTrackers bool) *LoggingOptions

Jump to

Keyboard shortcuts

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