main.go 771 B

1234567891011121314151617181920212223242526272829303132
  1. // Code generated by "go.opentelemetry.io/collector/cmd/builder". DO NOT EDIT.
  2. // Program obcol is an OpenTelemetry Collector binary.
  3. package main
  4. import (
  5. "log"
  6. "go.opentelemetry.io/collector/component"
  7. "go.opentelemetry.io/collector/otelcol"
  8. )
  9. func main() {
  10. info := component.BuildInfo{
  11. Command: "obcol",
  12. Description: "Local OpenTelemetry Collector Contrib binary, testing only.",
  13. Version: "0.90.0-dev",
  14. }
  15. if err := run(otelcol.CollectorSettings{BuildInfo: info, Factories: components}); err != nil {
  16. log.Fatal(err)
  17. }
  18. }
  19. func runInteractive(params otelcol.CollectorSettings) error {
  20. cmd := otelcol.NewCommand(params)
  21. if err := cmd.Execute(); err != nil {
  22. log.Fatalf("collector server run finished with error: %v", err)
  23. }
  24. return nil
  25. }