components.go 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // Code generated by "go.opentelemetry.io/collector/cmd/builder". DO NOT EDIT.
  2. package main
  3. import (
  4. "go.opentelemetry.io/collector/connector"
  5. "go.opentelemetry.io/collector/exporter"
  6. debugexporter "go.opentelemetry.io/collector/exporter/debugexporter"
  7. loggingexporter "go.opentelemetry.io/collector/exporter/loggingexporter"
  8. otlpexporter "go.opentelemetry.io/collector/exporter/otlpexporter"
  9. otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"
  10. "go.opentelemetry.io/collector/extension"
  11. ballastextension "go.opentelemetry.io/collector/extension/ballastextension"
  12. zpagesextension "go.opentelemetry.io/collector/extension/zpagesextension"
  13. "go.opentelemetry.io/collector/otelcol"
  14. "go.opentelemetry.io/collector/processor"
  15. batchprocessor "go.opentelemetry.io/collector/processor/batchprocessor"
  16. memorylimiterprocessor "go.opentelemetry.io/collector/processor/memorylimiterprocessor"
  17. "go.opentelemetry.io/collector/receiver"
  18. otlpreceiver "go.opentelemetry.io/collector/receiver/otlpreceiver"
  19. carbonexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter"
  20. opencensusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter"
  21. opensearchexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter"
  22. prometheusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter"
  23. sapmexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sapmexporter"
  24. signalfxexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter"
  25. splunkhecexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter"
  26. syslogexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/syslogexporter"
  27. zipkinexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter"
  28. pprofextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension"
  29. filestorage "github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage"
  30. attributesprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor"
  31. resourceprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
  32. carbonreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/carbonreceiver"
  33. filelogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver"
  34. fluentforwardreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver"
  35. jaegerreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jaegerreceiver"
  36. opencensusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver"
  37. prometheusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver"
  38. sapmreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sapmreceiver"
  39. signalfxreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/signalfxreceiver"
  40. splunkhecreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/splunkhecreceiver"
  41. syslogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver"
  42. tcplogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcplogreceiver"
  43. udplogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/udplogreceiver"
  44. zipkinreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver"
  45. )
  46. func components() (otelcol.Factories, error) {
  47. var err error
  48. factories := otelcol.Factories{}
  49. factories.Extensions, err = extension.MakeFactoryMap(
  50. ballastextension.NewFactory(),
  51. zpagesextension.NewFactory(),
  52. pprofextension.NewFactory(),
  53. filestorage.NewFactory(),
  54. )
  55. if err != nil {
  56. return otelcol.Factories{}, err
  57. }
  58. factories.Receivers, err = receiver.MakeFactoryMap(
  59. otlpreceiver.NewFactory(),
  60. carbonreceiver.NewFactory(),
  61. filelogreceiver.NewFactory(),
  62. fluentforwardreceiver.NewFactory(),
  63. jaegerreceiver.NewFactory(),
  64. opencensusreceiver.NewFactory(),
  65. prometheusreceiver.NewFactory(),
  66. sapmreceiver.NewFactory(),
  67. signalfxreceiver.NewFactory(),
  68. splunkhecreceiver.NewFactory(),
  69. syslogreceiver.NewFactory(),
  70. tcplogreceiver.NewFactory(),
  71. udplogreceiver.NewFactory(),
  72. zipkinreceiver.NewFactory(),
  73. )
  74. if err != nil {
  75. return otelcol.Factories{}, err
  76. }
  77. factories.Exporters, err = exporter.MakeFactoryMap(
  78. debugexporter.NewFactory(),
  79. loggingexporter.NewFactory(),
  80. otlpexporter.NewFactory(),
  81. otlphttpexporter.NewFactory(),
  82. carbonexporter.NewFactory(),
  83. opencensusexporter.NewFactory(),
  84. opensearchexporter.NewFactory(),
  85. prometheusexporter.NewFactory(),
  86. sapmexporter.NewFactory(),
  87. signalfxexporter.NewFactory(),
  88. splunkhecexporter.NewFactory(),
  89. syslogexporter.NewFactory(),
  90. zipkinexporter.NewFactory(),
  91. )
  92. if err != nil {
  93. return otelcol.Factories{}, err
  94. }
  95. factories.Processors, err = processor.MakeFactoryMap(
  96. batchprocessor.NewFactory(),
  97. memorylimiterprocessor.NewFactory(),
  98. attributesprocessor.NewFactory(),
  99. resourceprocessor.NewFactory(),
  100. )
  101. if err != nil {
  102. return otelcol.Factories{}, err
  103. }
  104. factories.Connectors, err = connector.MakeFactoryMap()
  105. if err != nil {
  106. return otelcol.Factories{}, err
  107. }
  108. return factories, nil
  109. }