in confgenerator/config.go [1205:1232]
func (uc *UnifiedConfig) ValidateTraces() error {
t := uc.Traces
subagent := "traces"
if t == nil || t.Service == nil {
return nil
}
receivers, err := uc.TracesReceivers()
if err != nil {
return err
}
for _, id := range sortedKeys(t.Service.Pipelines) {
p := t.Service.Pipelines[id]
if err := validateComponentKeys(receivers, p.ReceiverIDs, subagent, "receiver", id); err != nil {
return err
}
if len(p.ProcessorIDs) > 0 {
return fmt.Errorf("traces pipeline %q uses processors but traces pipelines do not support processors", id)
}
if _, err := validateComponentTypeCounts(receivers, p.ReceiverIDs, subagent, "receiver"); err != nil {
return err
}
if len(p.ExporterIDs) > 0 {
log.Printf(`The "traces.service.pipelines.%s.exporters" field is deprecated and will be ignored. Please remove it from your configuration.`, id)
}
}
return nil
}