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
Click to show internal directories.
Click to hide internal directories.