forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move default unmarshaler to service to avoid using deprecate configs. (…
…#6395) Remove deprecated config.Service. Signed-off-by: Bogdan <bogdandrutu@gmail.com> Signed-off-by: Bogdan <bogdandrutu@gmail.com>
- Loading branch information
1 parent
3262fd8
commit 07603a0
Showing
22 changed files
with
356 additions
and
501 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,11 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: breaking | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
component: config | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Remove already deprecates `config.Service`. | ||
|
||
# One or more tracking issues or pull requests related to the change | ||
issues: [6395] |
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
102 changes: 0 additions & 102 deletions
102
service/internal/configunmarshaler/defaultunmarshaler.go
This file was deleted.
Oops, something went wrong.
157 changes: 0 additions & 157 deletions
157
service/internal/configunmarshaler/defaultunmarshaler_test.go
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package configunmarshaler // import "go.opentelemetry.io/collector/service/internal/configunmarshaler" | ||
|
||
import ( | ||
"fmt" | ||
"reflect" | ||
|
||
"go.opentelemetry.io/collector/config" | ||
) | ||
|
||
func errorUnknownType(component string, id config.ComponentID, factories []reflect.Value) error { | ||
return fmt.Errorf("unknown %s type: %q for id: %q (valid values: %v)", component, id.Type(), id, factories) | ||
} | ||
|
||
func errorUnmarshalError(component string, id config.ComponentID, err error) error { | ||
return fmt.Errorf("error reading %s configuration for %q: %w", component, id, err) | ||
} |
16 changes: 0 additions & 16 deletions
16
service/internal/configunmarshaler/testdata/duplicate-pipeline.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.