-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate connectorprofiles module in favor of xconnector (#11887)
to allow adding more experimental data types. Updates #11778
- Loading branch information
Showing
32 changed files
with
1,090 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: deprecation | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
component: connector | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Deprecate connectorprofiles module in favor of xconnector to allow adding more experimental data types. | ||
|
||
# One or more tracking issues or pull requests related to the change | ||
issues: [11778] | ||
|
||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [api] |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,13 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Deprecated: [0.116.0] Use go.opentelemetry.io/collector/connector/xconnector instead. | ||
package connectorprofiles // import "go.opentelemetry.io/collector/connector/connectorprofiles" | ||
|
||
import ( | ||
"go.opentelemetry.io/collector/connector/internal" | ||
"go.opentelemetry.io/collector/consumer/xconsumer" | ||
"go.opentelemetry.io/collector/internal/fanoutconsumer" | ||
"go.opentelemetry.io/collector/pipeline" | ||
) | ||
import "go.opentelemetry.io/collector/connector/xconnector" | ||
|
||
type ProfilesRouterAndConsumer interface { | ||
xconsumer.Profiles | ||
Consumer(...pipeline.ID) (xconsumer.Profiles, error) | ||
PipelineIDs() []pipeline.ID | ||
privateFunc() | ||
} | ||
// Deprecated: [0.116.0] Use xconnector.ProfilesRouterAndConsumer instead. | ||
type ProfilesRouterAndConsumer = xconnector.ProfilesRouterAndConsumer | ||
|
||
type profilesRouter struct { | ||
xconsumer.Profiles | ||
internal.BaseRouter[xconsumer.Profiles] | ||
} | ||
|
||
func NewProfilesRouter(cm map[pipeline.ID]xconsumer.Profiles) ProfilesRouterAndConsumer { | ||
consumers := make([]xconsumer.Profiles, 0, len(cm)) | ||
for _, cons := range cm { | ||
consumers = append(consumers, cons) | ||
} | ||
return &profilesRouter{ | ||
Profiles: fanoutconsumer.NewProfiles(consumers), | ||
BaseRouter: internal.NewBaseRouter(fanoutconsumer.NewProfiles, cm), | ||
} | ||
} | ||
|
||
func (r *profilesRouter) privateFunc() {} | ||
// Deprecated: [0.116.0] Use xconnector.NewProfilesRouter instead. | ||
var NewProfilesRouter = xconnector.NewProfilesRouter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ../../Makefile.Common |
Oops, something went wrong.