Correlations: Add better handling to correlation type and update documentation (#109922)

* Add better type handling when correlation is created from provisioning and fix documentation

* add external example

* change error when deprecated key is used
This commit is contained in:
Kristina
2025-08-26 10:14:05 -05:00
committed by GitHub
parent fc739de01d
commit 1c587a983f
5 changed files with 24 additions and 13 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func (s CorrelationsService) createCorrelation(ctx context.Context, cmd CreateCo
if correlation.Config.Type == CorrelationType("query") {
correlation.Type = CorrelationType("query")
} else if correlation.Config.Type != "" {
return correlation, ErrInvalidConfigType
return correlation, ErrConfigTypeDeprecated
}
err := s.SQLStore.WithTransactionalDbSession(ctx, func(session *db.Session) error {