Skip to content

Commit

Permalink
Change v2 component() to public function
Browse files Browse the repository at this point in the history
Signed-off-by: James Ryans <james.ryans2012@gmail.com>
  • Loading branch information
james-ryans committed Jan 20, 2024
1 parent d6c2dc9 commit 51b71d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/jaeger/internal/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ func (b builders) build() (otelcol.Factories, error) {
return factories, nil
}

func components() (otelcol.Factories, error) {
func Components() (otelcol.Factories, error) {
return defaultBuilders().build()
}
2 changes: 1 addition & 1 deletion cmd/jaeger/internal/components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

func TestComponents(t *testing.T) {
factories, err := components()
factories, err := Components()

require.NoError(t, err)

Expand Down

0 comments on commit 51b71d2

Please sign in to comment.