diff --git a/cmd/otelcontribcol/builder-config.yaml b/cmd/otelcontribcol/builder-config.yaml index 21d13e668bbe..ec538c65a4a3 100644 --- a/cmd/otelcontribcol/builder-config.yaml +++ b/cmd/otelcontribcol/builder-config.yaml @@ -232,6 +232,7 @@ connectors: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector v0.107.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector v0.107.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.107.0 + - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/connector/slowsqlconnector v0.107.0 providers: - gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v0.107.0 @@ -493,3 +494,4 @@ replaces: - github.com/open-telemetry/opentelemetry-collector-contrib/receiver/otelarrowreceiver => ../../receiver/otelarrowreceiver - github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/cfgardenobserver => ../../extension/observer/cfgardenobserver - github.com/open-telemetry/opentelemetry-collector-contrib/exporter/rabbitmqexporter => ../../exporter/rabbitmqexporter + - github.com/open-telemetry/opentelemetry-collector-contrib/connector/slowsqlconnector => ../../connector/slowsqlconnector diff --git a/cmd/otelcontribcol/components.go b/cmd/otelcontribcol/components.go index d1ebf28f80b3..fa4d0ff6d620 100644 --- a/cmd/otelcontribcol/components.go +++ b/cmd/otelcontribcol/components.go @@ -31,6 +31,7 @@ import ( roundrobinconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/roundrobinconnector" routingconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector" servicegraphconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector" + slowsqlconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/slowsqlconnector" spanmetricsconnector "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector" alertmanagerexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alertmanagerexporter" alibabacloudlogserviceexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alibabacloudlogserviceexporter" @@ -591,6 +592,7 @@ func components() (otelcol.Factories, error) { factories.ExporterModules[syslogexporter.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/syslogexporter v0.107.0" factories.ExporterModules[tencentcloudlogserviceexporter.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/tencentcloudlogserviceexporter v0.107.0" factories.ExporterModules[zipkinexporter.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter v0.107.0" + factories.ExporterModules[veopscmdbexporter.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/veopscmdbexporter v0.107.0" factories.Processors, err = processor.MakeFactoryMap( batchprocessor.NewFactory(), @@ -655,6 +657,7 @@ func components() (otelcol.Factories, error) { routingconnector.NewFactory(), servicegraphconnector.NewFactory(), spanmetricsconnector.NewFactory(), + slowsqlconnector.NewFactory(), ) if err != nil { return otelcol.Factories{}, err @@ -671,6 +674,7 @@ func components() (otelcol.Factories, error) { factories.ConnectorModules[routingconnector.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector v0.107.0" factories.ConnectorModules[servicegraphconnector.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector v0.107.0" factories.ConnectorModules[spanmetricsconnector.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.107.0" + factories.ConnectorModules[slowsqlconnector.NewFactory().Type()] = "github.com/open-telemetry/opentelemetry-collector-contrib/connector/slowsqlconnector v0.107.0" return factories, nil } diff --git a/cmd/otelcontribcol/go.mod b/cmd/otelcontribcol/go.mod index a208a736908b..f91feeb22281 100644 --- a/cmd/otelcontribcol/go.mod +++ b/cmd/otelcontribcol/go.mod @@ -18,6 +18,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/connector/roundrobinconnector v0.107.0 github.com/open-telemetry/opentelemetry-collector-contrib/connector/routingconnector v0.107.0 github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector v0.107.0 + github.com/open-telemetry/opentelemetry-collector-contrib/connector/slowsqlconnector v0.107.0 github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.107.0 github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alertmanagerexporter v0.107.0 github.com/open-telemetry/opentelemetry-collector-contrib/exporter/alibabacloudlogserviceexporter v0.107.0 @@ -1344,3 +1345,5 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/otela replace github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/cfgardenobserver => ../../extension/observer/cfgardenobserver replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/rabbitmqexporter => ../../exporter/rabbitmqexporter + +replace github.com/open-telemetry/opentelemetry-collector-contrib/connector/slowsqlconnector => ../../connector/slowsqlconnector diff --git a/connector/slowsqlconnector/testdata/example.yaml b/connector/slowsqlconnector/testdata/example.yaml new file mode 100644 index 000000000000..18b250d7eef5 --- /dev/null +++ b/connector/slowsqlconnector/testdata/example.yaml @@ -0,0 +1,21 @@ +receivers: + otlp: + protocols: + grpc: + http: + +exporters: + debug: + verbosity: detailed + +connectors: + slowsql: + +service: + pipelines: + traces: + receivers: [otlp] + exporters: [slowsql] + logs: + receivers: [slowsql] + exporters: [debug] \ No newline at end of file