Fix license header, typos and lints (#160)

* Fix license header, typos and lints

* Update import order
This commit is contained in:
Yang Song 2019-07-17 12:19:43 -07:00 committed by Paulo Janotti
parent 92adf08e63
commit a72d9e5bed
8 changed files with 25 additions and 2 deletions

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package configerror contains the common errors caused by malformed configs.
package configerror
import "errors"

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package consumer contains interfaces that receive and process consumerdata.
package consumer
import (

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package consumerdata contains data structures that holds proto metrics/spans, node and resource.
package consumerdata
import (

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package exporter contains interfaces that wraps trace/metrics exporter.
package exporter
import (

View File

@ -1,3 +1,17 @@
// Copyright 2019, 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 telemetry
import (

View File

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package processor contains interfaces that compose trace/metrics consumers.
package processor
import (

View File

@ -17,11 +17,13 @@ package internal
import (
"context"
"errors"
"github.com/open-telemetry/opentelemetry-service/consumer/consumerdata"
"sync"
"github.com/prometheus/prometheus/pkg/labels"
"github.com/prometheus/prometheus/scrape"
"go.uber.org/zap"
"sync"
"github.com/open-telemetry/opentelemetry-service/consumer/consumerdata"
)
// test helpers

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package builder contains the logic on parsing configs and building receivers,
// exporters, pipeplines and tail sampling.
package builder
import (