diff --git a/pkg/extension/opampextension/logger.go b/pkg/extension/opampextension/logger.go deleted file mode 100644 index 9fb22d7c35..0000000000 --- a/pkg/extension/opampextension/logger.go +++ /dev/null @@ -1,29 +0,0 @@ -// 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 opampextension - -import "go.uber.org/zap" - -type Logger struct { - Logger *zap.SugaredLogger -} - -func (l *Logger) Debugf(format string, v ...interface{}) { - l.Logger.Debugf(format, v...) -} - -func (l *Logger) Errorf(format string, v ...interface{}) { - l.Logger.Errorf(format, v...) -} diff --git a/pkg/extension/opampextension/opamp_agent.go b/pkg/extension/opampextension/opamp_agent.go index d6095f6e8f..7cf2e0c13f 100644 --- a/pkg/extension/opampextension/opamp_agent.go +++ b/pkg/extension/opampextension/opamp_agent.go @@ -64,7 +64,7 @@ type opampAgent struct { func (o *opampAgent) Start(ctx context.Context, host component.Host) error { o.host = host - o.opampClient = client.NewWebSocket(&Logger{Logger: o.logger.Sugar()}) + o.opampClient = client.NewWebSocket(o.logger.Sugar()) path := filepath.Join(o.cfg.RemoteConfigurationDirectory, "opamp-remote-config.yaml") if _, err := os.Stat(path); err == nil {