factory_others.go 743 B

1234567891011121314151617181920212223242526
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. //go:build !windows
  4. // +build !windows
  5. package windowsperfcountersreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/windowsperfcountersreceiver"
  6. import (
  7. "context"
  8. "errors"
  9. "go.opentelemetry.io/collector/component"
  10. "go.opentelemetry.io/collector/consumer"
  11. "go.opentelemetry.io/collector/receiver"
  12. )
  13. // createMetricsReceiver creates a metrics receiver based on provided config.
  14. func createMetricsReceiver(
  15. _ context.Context,
  16. _ receiver.CreateSettings,
  17. _ component.Config,
  18. _ consumer.Metrics,
  19. ) (receiver.Metrics, error) {
  20. return nil, errors.New("the windows perf counters receiver is only supported on Windows")
  21. }