Skip to content

Commit

Permalink
[chore] Update deprecation comments in consumerprofiles module (#11877)
Browse files Browse the repository at this point in the history
Follow-up to
#11779
  • Loading branch information
dmitryax authored Dec 13, 2024
1 parent b028adc commit 128d9b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions consumer/consumerprofiles/profiles.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

// Deprecated: [0.115.0] This package is deprecated. Use "go.opentelemetry.io/collector/consumer/xconsumer" instead.
// Deprecated: [0.116.0] This package is deprecated. Use "go.opentelemetry.io/collector/consumer/xconsumer" instead.
package consumerprofiles // import "go.opentelemetry.io/collector/consumer/consumerprofiles"

import (
Expand All @@ -15,15 +15,15 @@ var errNilFunc = errors.New("nil consumer func")

// Profiles is an interface that receives pprofile.Profiles, processes it
// as needed, and sends it to the next processing node if any or to the destination.
// Deprecated: [0.115.0] Use xconsumer.Profiles instead.
// Deprecated: [0.116.0] Use xconsumer.Profiles instead.
type Profiles = xconsumer.Profiles

// ConsumeProfilesFunc is a helper function that is similar to ConsumeProfiles.
// Deprecated: [0.115.0] Use xconsumer.ConsumeProfilesFunc instead.
// Deprecated: [0.116.0] Use xconsumer.ConsumeProfilesFunc instead.
type ConsumeProfilesFunc = xconsumer.ConsumeProfilesFunc

// NewProfiles returns a Profiles configured with the provided options.
// Deprecated: [0.115.0] Use xconsumer.NewProfiles instead.
// Deprecated: [0.116.0] Use xconsumer.NewProfiles instead.
func NewProfiles(consume ConsumeProfilesFunc, options ...consumer.Option) (Profiles, error) {
return xconsumer.NewProfiles(consume, options...)
}

0 comments on commit 128d9b7

Please sign in to comment.