components.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. forwardconnector "go.opentelemetry.io/collector/connector/forwardconnector"
  6. "go.opentelemetry.io/collector/exporter"
  7. debugexporter "go.opentelemetry.io/collector/exporter/debugexporter"
  8. loggingexporter "go.opentelemetry.io/collector/exporter/loggingexporter"
  9. otlpexporter "go.opentelemetry.io/collector/exporter/otlpexporter"
  10. otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"
  11. "go.opentelemetry.io/collector/extension"
  12. ballastextension "go.opentelemetry.io/collector/extension/ballastextension"
  13. zpagesextension "go.opentelemetry.io/collector/extension/zpagesextension"
  14. "go.opentelemetry.io/collector/otelcol"
  15. "go.opentelemetry.io/collector/processor"
  16. batchprocessor "go.opentelemetry.io/collector/processor/batchprocessor"
  17. memorylimiterprocessor "go.opentelemetry.io/collector/processor/memorylimiterprocessor"
  18. "go.opentelemetry.io/collector/receiver"
  19. otlpreceiver "go.opentelemetry.io/collector/receiver/otlpreceiver"
  20. countconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/countconnector"
  21. exceptionsconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/exceptionsconnector"
  22. routingconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector"
  23. servicegraphconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector"
  24. spanmetricsconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector"
  25. cassandraexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/cassandraexporter"
  26. clickhouseexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/clickhouseexporter"
  27. fileexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter"
  28. influxdbexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/influxdbexporter"
  29. kafkaexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter"
  30. loadbalancingexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/loadbalancingexporter"
  31. lokiexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter"
  32. obkafka "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/obkafka"
  33. opencensusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter"
  34. prometheusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter"
  35. prometheusremotewriteexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter"
  36. asapauthextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension"
  37. basicauthextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension"
  38. bearertokenauthextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension"
  39. headerssetterextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension"
  40. healthcheckextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension"
  41. httpforwarder "github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder"
  42. oauth2clientauthextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/oauth2clientauthextension"
  43. dockerobserver "github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/dockerobserver"
  44. hostobserver "github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/hostobserver"
  45. k8sobserver "github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/k8sobserver"
  46. oidcauthextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/oidcauthextension"
  47. pprofextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension"
  48. sigv4authextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/sigv4authextension"
  49. dbstorage "github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/dbstorage"
  50. filestorage "github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage"
  51. attributesprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor"
  52. cumulativetodeltaprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor"
  53. datadogprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/datadogprocessor"
  54. deltatorateprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/deltatorateprocessor"
  55. filterprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor"
  56. groupbyattrsprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbyattrsprocessor"
  57. groupbytraceprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/groupbytraceprocessor"
  58. k8sattributesprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor"
  59. metricsgenerationprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricsgenerationprocessor"
  60. metricstransformprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor"
  61. probabilisticsamplerprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor"
  62. redactionprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor"
  63. remotetapprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/remotetapprocessor"
  64. resourcedetectionprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
  65. resourceprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
  66. routingprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor"
  67. servicegraphprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor"
  68. spanmetricsprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor"
  69. spanprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor"
  70. sumologicprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor"
  71. tailsamplingprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor"
  72. transformprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor"
  73. activedirectorydsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/activedirectorydsreceiver"
  74. collectdreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/collectdreceiver"
  75. dockerstatsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dockerstatsreceiver"
  76. filelogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver"
  77. filereceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filereceiver"
  78. filestatsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filestatsreceiver"
  79. flinkmetricsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/flinkmetricsreceiver"
  80. hostmetricsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver"
  81. httpcheckreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver"
  82. jmxreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jmxreceiver"
  83. k8sclusterreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver"
  84. k8seventsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8seventsreceiver"
  85. k8sobjectsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver"
  86. kafkametricsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkametricsreceiver"
  87. kafkareceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkareceiver"
  88. kubeletstatsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver"
  89. lokireceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/lokireceiver"
  90. mysqlreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver"
  91. nginxreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/nginxreceiver"
  92. opencensusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver"
  93. otlpjsonfilereceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/otlpjsonfilereceiver"
  94. postgresqlreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver"
  95. prometheusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver"
  96. receivercreator "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/receivercreator"
  97. redisreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver"
  98. sqlqueryreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver"
  99. statsdreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver"
  100. syslogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver"
  101. tcplogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcplogreceiver"
  102. udplogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/udplogreceiver"
  103. webhookeventreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/webhookeventreceiver"
  104. zookeeperreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zookeeperreceiver"
  105. )
  106. func components() (otelcol.Factories, error) {
  107. var err error
  108. factories := otelcol.Factories{}
  109. factories.Extensions, err = extension.MakeFactoryMap(
  110. zpagesextension.NewFactory(),
  111. ballastextension.NewFactory(),
  112. asapauthextension.NewFactory(),
  113. basicauthextension.NewFactory(),
  114. bearertokenauthextension.NewFactory(),
  115. headerssetterextension.NewFactory(),
  116. healthcheckextension.NewFactory(),
  117. httpforwarder.NewFactory(),
  118. oauth2clientauthextension.NewFactory(),
  119. hostobserver.NewFactory(),
  120. k8sobserver.NewFactory(),
  121. dockerobserver.NewFactory(),
  122. oidcauthextension.NewFactory(),
  123. pprofextension.NewFactory(),
  124. sigv4authextension.NewFactory(),
  125. filestorage.NewFactory(),
  126. dbstorage.NewFactory(),
  127. )
  128. if err != nil {
  129. return otelcol.Factories{}, err
  130. }
  131. factories.Receivers, err = receiver.MakeFactoryMap(
  132. otlpreceiver.NewFactory(),
  133. activedirectorydsreceiver.NewFactory(),
  134. collectdreceiver.NewFactory(),
  135. dockerstatsreceiver.NewFactory(),
  136. filelogreceiver.NewFactory(),
  137. filestatsreceiver.NewFactory(),
  138. filereceiver.NewFactory(),
  139. flinkmetricsreceiver.NewFactory(),
  140. hostmetricsreceiver.NewFactory(),
  141. httpcheckreceiver.NewFactory(),
  142. jmxreceiver.NewFactory(),
  143. k8sclusterreceiver.NewFactory(),
  144. k8seventsreceiver.NewFactory(),
  145. k8sobjectsreceiver.NewFactory(),
  146. kafkametricsreceiver.NewFactory(),
  147. kafkareceiver.NewFactory(),
  148. kubeletstatsreceiver.NewFactory(),
  149. lokireceiver.NewFactory(),
  150. mysqlreceiver.NewFactory(),
  151. nginxreceiver.NewFactory(),
  152. opencensusreceiver.NewFactory(),
  153. otlpjsonfilereceiver.NewFactory(),
  154. postgresqlreceiver.NewFactory(),
  155. prometheusreceiver.NewFactory(),
  156. receivercreator.NewFactory(),
  157. redisreceiver.NewFactory(),
  158. sqlqueryreceiver.NewFactory(),
  159. statsdreceiver.NewFactory(),
  160. syslogreceiver.NewFactory(),
  161. tcplogreceiver.NewFactory(),
  162. udplogreceiver.NewFactory(),
  163. webhookeventreceiver.NewFactory(),
  164. zookeeperreceiver.NewFactory(),
  165. )
  166. if err != nil {
  167. return otelcol.Factories{}, err
  168. }
  169. factories.Exporters, err = exporter.MakeFactoryMap(
  170. debugexporter.NewFactory(),
  171. loggingexporter.NewFactory(),
  172. otlpexporter.NewFactory(),
  173. otlphttpexporter.NewFactory(),
  174. clickhouseexporter.NewFactory(),
  175. cassandraexporter.NewFactory(),
  176. fileexporter.NewFactory(),
  177. influxdbexporter.NewFactory(),
  178. kafkaexporter.NewFactory(),
  179. obkafka.NewFactory(),
  180. loadbalancingexporter.NewFactory(),
  181. lokiexporter.NewFactory(),
  182. opencensusexporter.NewFactory(),
  183. prometheusexporter.NewFactory(),
  184. prometheusremotewriteexporter.NewFactory(),
  185. )
  186. if err != nil {
  187. return otelcol.Factories{}, err
  188. }
  189. factories.Processors, err = processor.MakeFactoryMap(
  190. batchprocessor.NewFactory(),
  191. memorylimiterprocessor.NewFactory(),
  192. attributesprocessor.NewFactory(),
  193. cumulativetodeltaprocessor.NewFactory(),
  194. datadogprocessor.NewFactory(),
  195. deltatorateprocessor.NewFactory(),
  196. filterprocessor.NewFactory(),
  197. groupbyattrsprocessor.NewFactory(),
  198. groupbytraceprocessor.NewFactory(),
  199. k8sattributesprocessor.NewFactory(),
  200. metricsgenerationprocessor.NewFactory(),
  201. metricstransformprocessor.NewFactory(),
  202. probabilisticsamplerprocessor.NewFactory(),
  203. redactionprocessor.NewFactory(),
  204. resourcedetectionprocessor.NewFactory(),
  205. resourceprocessor.NewFactory(),
  206. routingprocessor.NewFactory(),
  207. servicegraphprocessor.NewFactory(),
  208. spanmetricsprocessor.NewFactory(),
  209. sumologicprocessor.NewFactory(),
  210. spanprocessor.NewFactory(),
  211. tailsamplingprocessor.NewFactory(),
  212. transformprocessor.NewFactory(),
  213. remotetapprocessor.NewFactory(),
  214. )
  215. if err != nil {
  216. return otelcol.Factories{}, err
  217. }
  218. factories.Connectors, err = connector.MakeFactoryMap(
  219. forwardconnector.NewFactory(),
  220. countconnector.NewFactory(),
  221. exceptionsconnector.NewFactory(),
  222. routingconnector.NewFactory(),
  223. servicegraphconnector.NewFactory(),
  224. spanmetricsconnector.NewFactory(),
  225. )
  226. if err != nil {
  227. return otelcol.Factories{}, err
  228. }
  229. return factories, nil
  230. }