Raj Kamal Singh 0ad5d67140
QS: Collector simulator (#3656)
* feat: get collectorsimulator started and add inmemoryreceiver

* feat: add collectorsimulator/inmemoryexporter

* feat: add collectorsimulator.SimulateLogsProcessing

* chore: clean up collector simulator code a little

* chore: update go.sum entries for cors

* chore: add collectorsimulator tests to make cmd

* chore: move to latest dependency version for collectorsimulator

* chore: revert to dependency versions matching signoz-otel-col

* chore: cleanup: reorganize collectorsimulator logic

* chore: some more cleanup

* chore: some more cleanup

* chore: some more cleanup

* chore: redo go.mod
2023-10-05 14:27:41 +05:30

17 lines
351 B
Go

package inmemoryreceiver
import "fmt"
type Config struct {
// Unique id for the receiver.
// Useful for getting a hold of the receiver in code that doesn't control its instantiation.
Id string `mapstructure:"id"`
}
func (c *Config) Validate() error {
if len(c.Id) < 1 {
return fmt.Errorf("inmemory receiver: id is required")
}
return nil
}