mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 04:40:40 +08:00

* 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
17 lines
351 B
Go
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
|
|
}
|