// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: MPL-2.0

package telemetry

import (
	"context"
	"io/ioutil"
	"log"
)

type NoopSender struct {
	Logger *log.Logger
}

func (t *NoopSender) log() *log.Logger {
	if t.Logger != nil {
		return t.Logger
	}
	return log.New(ioutil.Discard, "", 0)
}

func (t *NoopSender) SendEvent(ctx context.Context, name string, properties map[string]interface{}) {}
