Skip to content

Commit

Permalink
Move process telemetry to service/internal (#1794)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Sep 17, 2020
1 parent e5d4463 commit e92658a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions internal/collector/telemetry/empty_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright The 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
3 changes: 2 additions & 1 deletion service/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"go.opentelemetry.io/collector/processor/samplingprocessor/tailsamplingprocessor"
fluentobserv "go.opentelemetry.io/collector/receiver/fluentforwardreceiver/observ"
"go.opentelemetry.io/collector/receiver/kafkareceiver"
telemetry2 "go.opentelemetry.io/collector/service/internal/telemetry"
"go.opentelemetry.io/collector/translator/conventions"
)

Expand Down Expand Up @@ -61,7 +62,7 @@ func (tel *appTelemetry) init(asyncErrorChannel chan<- error, ballastSizeBytes u
return nil
}

processMetricsViews, err := telemetry.NewProcessMetricsViews(ballastSizeBytes)
processMetricsViews, err := telemetry2.NewProcessMetricsViews(ballastSizeBytes)
if err != nil {
return err
}
Expand Down

0 comments on commit e92658a

Please sign in to comment.