From dc03b7cf4989deda4a0acfa6c99387b30fa6e7bc Mon Sep 17 00:00:00 2001 From: Vishal Sharma Date: Fri, 4 Aug 2023 17:43:13 +0530 Subject: [PATCH] feat: add skywalking receiver (#35) * feat: add skywalking receiver * chore: update go.mod --- components/components.go | 2 ++ go.mod | 2 ++ go.sum | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/components/components.go b/components/components.go index b2e9e1e3..6e46a551 100644 --- a/components/components.go +++ b/components/components.go @@ -89,6 +89,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/receivercreator" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/simpleprometheusreceiver" + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/skywalkingreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver" @@ -180,6 +181,7 @@ func Components() (otelcol.Factories, error) { sqlqueryreceiver.NewFactory(), sqlserverreceiver.NewFactory(), simpleprometheusreceiver.NewFactory(), + skywalkingreceiver.NewFactory(), statsdreceiver.NewFactory(), syslogreceiver.NewFactory(), tcplogreceiver.NewFactory(), diff --git a/go.mod b/go.mod index 6a98bb4b..e423a850 100644 --- a/go.mod +++ b/go.mod @@ -104,6 +104,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/receivercreator v0.79.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver v0.79.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/simpleprometheusreceiver v0.79.0 + github.com/open-telemetry/opentelemetry-collector-contrib/receiver/skywalkingreceiver v0.79.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver v0.79.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver v0.79.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver v0.79.0 @@ -475,6 +476,7 @@ require ( sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect sigs.k8s.io/yaml v1.3.0 // indirect + skywalking.apache.org/repo/goapi v0.0.0-20220121092418-9c455d0dda3f // indirect ) replace ( diff --git a/go.sum b/go.sum index f70d86ee..693cc006 100644 --- a/go.sum +++ b/go.sum @@ -1524,6 +1524,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver github.com/open-telemetry/opentelemetry-collector-contrib/receiver/redisreceiver v0.79.0/go.mod h1:SdhMmB69nbxsbNXatGj1CLuwH3synpz8qE6KM/35GtE= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/simpleprometheusreceiver v0.79.0 h1:Lvr6SdYAjsCNRLY30E8QTiky5Esj9E0v5IWqk3u1UqY= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/simpleprometheusreceiver v0.79.0/go.mod h1:nZs8RMHpK5ftigoTTOU6qjYgxG2hg9ABttCZ3uJhwi8= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/skywalkingreceiver v0.79.0 h1:2WKJ7O6XkvSeanJtZSpOdg/j/EU+W/9LZHpMBOflD2Q= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/skywalkingreceiver v0.79.0/go.mod h1:NXZm26h+4nbSfGEfO4rF5B+xoV+fUGz9OVmgg/EMuRY= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver v0.79.0 h1:txIhK+qVrJ7CcAq3tJKgitzPQapyn+Ys7NYHV+J51t8= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver v0.79.0/go.mod h1:EKCcZj3gElzD4fVh6PcE2Oc6CbGSneaXSLakpj5jg1E= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver v0.79.0 h1:RrzBO7Wp+f9L2b7wwBgF6wXA/14WsGGAEPKtvvSIV8Y= @@ -2334,6 +2336,7 @@ golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210917161153-d61c044b1678/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211110154304-99a53858aa08/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -2820,3 +2823,5 @@ sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +skywalking.apache.org/repo/goapi v0.0.0-20220121092418-9c455d0dda3f h1:i0cL/mhLt8xVO05SCKshkzWNUkXOkiW+zRIIuVWjPko= +skywalking.apache.org/repo/goapi v0.0.0-20220121092418-9c455d0dda3f/go.mod h1:4KrWd+Oi4lkB+PtxZgIlf+3T6EECPru4fOWNMEHjxRk=