Skip to content

Commit

Permalink
Update proposed deprecation version
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski committed Mar 27, 2023
1 parent 2f9513e commit f6be42d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
8 changes: 7 additions & 1 deletion component/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ type Host interface {
//
// GetExporters can be called by the component anytime after Component.Start() begins and
// until Component.Shutdown() ends.
// Deprecated: [0.74.0] Use a connector or extension to send data between pipelines.
//
// Deprecated: [0.75.0] This function will be removed no earlier than 0.80.0.
// Several components in the contrib repository use this function so it cannot be removed
// before those cases are removed. In most cases, use of this function can be replaced by a
// connector. See https://github.com/open-telemetry/opentelemetry-collector/issues/7370 and
// https://github.com/open-telemetry/opentelemetry-collector/pull/7390#issuecomment-1483710184
// for additional information.
GetExporters() map[DataType]map[ID]Component
}
7 changes: 6 additions & 1 deletion service/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ func (host *serviceHost) GetExtensions() map[component.ID]component.Component {
return host.serviceExtensions.GetExtensions()
}

// Deprecated: [0.74.0] Use a connector or extension to send data between pipelines.
// Deprecated: [0.75.0] This function will be removed no earlier than 0.80.0.
// Several components in the contrib repository use this function so it cannot be removed
// before those cases are removed. In most cases, use of this function can be replaced by a
// connector. See https://github.com/open-telemetry/opentelemetry-collector/issues/7370 and
// https://github.com/open-telemetry/opentelemetry-collector/pull/7390#issuecomment-1483710184
// for additional information.
func (host *serviceHost) GetExporters() map[component.DataType]map[component.ID]component.Component {
return host.pipelines.GetExporters()
}
7 changes: 6 additions & 1 deletion service/internal/graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,12 @@ func (g *Graph) ShutdownAll(ctx context.Context) error {
return errs
}

// Deprecated: [0.74.0] Use a connector or extension to send data between pipelines.
// Deprecated: [0.75.0] This function will be removed no earlier than 0.80.0.
// Several components in the contrib repository use this function so it cannot be removed
// before those cases are removed. In most cases, use of this function can be replaced by a
// connector. See https://github.com/open-telemetry/opentelemetry-collector/issues/7370 and
// https://github.com/open-telemetry/opentelemetry-collector/pull/7390#issuecomment-1483710184
// for additional information.
func (g *Graph) GetExporters() map[component.DataType]map[component.ID]component.Component {
exportersMap := make(map[component.DataType]map[component.ID]component.Component)
exportersMap[component.DataTypeTraces] = make(map[component.ID]component.Component)
Expand Down

0 comments on commit f6be42d

Please sign in to comment.