in config/kusto_config.go [49:67]
func (kc *KustoConfig) Validate() error {
if kc.Database == "" {
return errors.New("missing database in kusto configuration")
}
if kc.Endpoint == "" {
return errors.New("missing endpoint in kusto configuration")
}
// If the config indicates a non ManagedIdentity or WorkloadIdentity, then the ClientID, ClientSecret, and TenantID must be provided.
if !kc.UseManagedIdentity && !kc.UseWorkloadIdentity {
if kc.ClientID == "" || kc.ClientSecret == "" || kc.TenantID == "" {
return errors.New("missing client configuration (ClientId, ClientSecret, TenantId) & ManagedIdentity is missing for kusto")
}
}
//if no Tracetable name provided, default to OTELTraces.
if kc.TraceTableName == "" {
kc.TraceTableName = "OTELTraces"
}
return nil
}