diff --git a/.chloggen/move_sharedcomponent.yaml b/.chloggen/move_sharedcomponent.yaml new file mode 100755 index 00000000000..8f7ce5604a8 --- /dev/null +++ b/.chloggen/move_sharedcomponent.yaml @@ -0,0 +1,25 @@ +# Use this changelog template to create an entry for release notes. + +# 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: component + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Move internal/sharedcomponent to component/sharedcomponent. + +# One or more tracking issues or pull requests related to the change +issues: [4266] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# 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] \ No newline at end of file diff --git a/internal/sharedcomponent/package_test.go b/component/sharedcomponent/package_test.go similarity index 100% rename from internal/sharedcomponent/package_test.go rename to component/sharedcomponent/package_test.go diff --git a/internal/sharedcomponent/sharedcomponent.go b/component/sharedcomponent/sharedcomponent.go similarity index 99% rename from internal/sharedcomponent/sharedcomponent.go rename to component/sharedcomponent/sharedcomponent.go index 1a3e65878c2..be3aef31234 100644 --- a/internal/sharedcomponent/sharedcomponent.go +++ b/component/sharedcomponent/sharedcomponent.go @@ -4,7 +4,7 @@ // Package sharedcomponent exposes functionality for components // to register against a shared key, such as a configuration object, in order to be reused across signal types. // This is particularly useful when the component relies on a shared resource such as os.File or http.Server. -package sharedcomponent // import "go.opentelemetry.io/collector/internal/sharedcomponent" +package sharedcomponent // import "go.opentelemetry.io/collector/component/sharedcomponent" import ( "context" diff --git a/internal/sharedcomponent/sharedcomponent_test.go b/component/sharedcomponent/sharedcomponent_test.go similarity index 100% rename from internal/sharedcomponent/sharedcomponent_test.go rename to component/sharedcomponent/sharedcomponent_test.go diff --git a/receiver/otlpreceiver/factory.go b/receiver/otlpreceiver/factory.go index bb8f3bb4f92..583e429e23c 100644 --- a/receiver/otlpreceiver/factory.go +++ b/receiver/otlpreceiver/factory.go @@ -7,11 +7,11 @@ import ( "context" "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/component/sharedcomponent" "go.opentelemetry.io/collector/config/configgrpc" "go.opentelemetry.io/collector/config/confighttp" "go.opentelemetry.io/collector/config/confignet" "go.opentelemetry.io/collector/consumer" - "go.opentelemetry.io/collector/internal/sharedcomponent" "go.opentelemetry.io/collector/receiver" "go.opentelemetry.io/collector/receiver/otlpreceiver/internal/metadata" )