Documentation ¶
Index ¶
Constants ¶
View Source
const ( StartTime = "diagnosis_start_time" InstanceId = "server_instance_id" ServerStart = "server_start" ConfigProcessed = "config_processed" SourcesCount = "no_of_sources" DesitanationCount = "no_of_destinations" ServerStarted = "server_started" ConfigIdentify = "identify" GatewayEvents = "gateway_events" GatewaySuccess = "gateway_success" GatewayFailure = "gateway_failure" RouterEvents = "router_events" RouterAborted = "router_aborted" RouterRetries = "router_retries" RouterSuccess = "router_success" RouterFailed = "router_failed" RouterDestination = "router_destination" RouterAttemptNum = "router_attempt_num" RouterCompletedTime = "router_average_job_time" BatchRouterEvents = "batch_router_events" BatchRouterSuccess = "batch_router_success" BatchRouterFailed = "batch_router_failed" BatchRouterDestination = "batch_router_destination" UserID = "user_id" ErrorCode = "error_code" ErrorResponse = "error_response" )
Variables ¶
View Source
var ( EnableDiagnostics bool EnableServerStartMetric bool EnableConfigIdentifyMetric bool EnableServerStartedMetric bool EnableConfigProcessedMetric bool EnableGatewayMetric bool EnableRouterMetric bool EnableBatchRouterMetric bool EnableDestinationFailuresMetric bool )
View Source
var DefaultConfigDiagnostics = ConfigDiagnostics{EnableDiagnostics: true, Endpoint: "https://rudderstack-dataplane.rudderstack.com", Writekey: "1aWPBIROQvFYW9FHxgc03nUsLza", EnableServerStartMetric: true, EnableConfigIdentifyMetric: true, EnableServerStartedMetric: true, EnableConfigProcessedMetric: true, EnableGatewayMetric: true, EnableRouterMetric: true, EnableBatchRouterMetric: true, EnableDestinationFailuresMetric: true, InstanceID: "1"}
Functions ¶
func DisableMetrics ¶
func DisableMetrics(enableMetrics bool)
Deprecated! Use instance of diagnostics instead;
func Identify ¶
func Identify(properties map[string]interface{})
Deprecated! Use instance of diagnostics instead;
func LoadConfig ¶
func LoadConfig(configList ...interface{})
Types ¶
type ConfigDiagnostics ¶
type ConfigDiagnostics struct { EnableDiagnostics bool Endpoint string Writekey string EnableServerStartMetric bool EnableConfigIdentifyMetric bool EnableServerStartedMetric bool EnableConfigProcessedMetric bool EnableGatewayMetric bool EnableRouterMetric bool EnableBatchRouterMetric bool EnableDestinationFailuresMetric bool InstanceID string }
type DiagnosticsI ¶
type DiagnosticsI interface { Track(event string, properties map[string]interface{}) DisableMetrics(enableMetrics bool) Identify(properties map[string]interface{}) }
var Diagnostics DiagnosticsI
Click to show internal directories.
Click to hide internal directories.