mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description <!-- Issue number if applicable --> Removes deprecated `NewNopSettingsWithType` functions #### Link to tracking issue Updates #12221, follows #12452
24 lines
735 B
Go
24 lines
735 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package scrapertest // import "go.opentelemetry.io/collector/scraper/scrapertest"
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
|
|
"go.opentelemetry.io/collector/component"
|
|
"go.opentelemetry.io/collector/component/componenttest"
|
|
"go.opentelemetry.io/collector/scraper"
|
|
)
|
|
|
|
var NopType = component.MustNewType("nop")
|
|
|
|
// NewNopSettings returns a new nop scraper.Settings with the given type.
|
|
func NewNopSettings(typ component.Type) scraper.Settings {
|
|
return scraper.Settings{
|
|
ID: component.NewIDWithName(typ, uuid.NewString()),
|
|
TelemetrySettings: componenttest.NewNopTelemetrySettings(),
|
|
BuildInfo: component.NewDefaultBuildInfo(),
|
|
}
|
|
}
|