diff --git a/plugins/sample/trace/doc.go b/plugins/sample/trace/doc.go deleted file mode 100644 index 844aff30d..000000000 --- a/plugins/sample/trace/doc.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2020, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package sample contains a sample plugin for OpenTelemetry distributed tracing. -package trace // import "go.opentelemetry.io/contrib/plugins/sample/trace" diff --git a/plugins/sample/trace/example_test.go b/plugins/sample/trace/example_test.go deleted file mode 100644 index bbd58d281..000000000 --- a/plugins/sample/trace/example_test.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2020, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package trace_test - -import ( - "go.opentelemetry.io/contrib/plugins/sample/trace" -) - -func ExampleRegister() { - // Register with Sample plugin - _ = trace.Register() - - // Output: -} diff --git a/plugins/sample/trace/go.mod b/plugins/sample/trace/go.mod deleted file mode 100644 index a0f605376..000000000 --- a/plugins/sample/trace/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module go.opentelemetry.io/contrib/plugins/sample/trace - -go 1.13 - -require github.com/stretchr/testify v1.5.1 diff --git a/plugins/sample/trace/go.sum b/plugins/sample/trace/go.sum deleted file mode 100644 index 331fa6982..000000000 --- a/plugins/sample/trace/go.sum +++ /dev/null @@ -1,11 +0,0 @@ -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/plugins/sample/trace/sample.go b/plugins/sample/trace/sample.go deleted file mode 100644 index d795b0b84..000000000 --- a/plugins/sample/trace/sample.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2020, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package trace - -// Register enables instrumenting an imaginary Sample application using Sample plugin. -func Register() error { - // Do something so to enable tracing in the application. - return nil -} diff --git a/plugins/sample/trace/sample_test.go b/plugins/sample/trace/sample_test.go deleted file mode 100644 index 030a8c07b..000000000 --- a/plugins/sample/trace/sample_test.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2020, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package trace_test - -import ( - "testing" - - "github.com/stretchr/testify/assert" - - "go.opentelemetry.io/contrib/plugins/sample/trace" -) - -// Register registers sample plugin to instrument a Sample appliction. -func TestRegister(t *testing.T) { - err := trace.Register() - assert.NoError(t, err) -}