Skip to content

Commit

Permalink
[docs] fix receiver_creator supported pipelines (open-telemetry#18304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercoll committed Feb 6, 2023
1 parent 4061bf6 commit 8a9ce50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/receivercreator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| Status | |
|--------------------------|-----------------------|
| Stability | [beta] |
| Supported pipeline types | logs, metrics, traces |
| Supported pipeline types | metrics |
| Distributions | [contrib] |

This receiver can instantiate other receivers at runtime based on whether
Expand Down
5 changes: 5 additions & 0 deletions receiver/receivercreator/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ func TestCreateReceiver(t *testing.T) {
assert.Error(t, err)
assert.ErrorIs(t, err, component.ErrDataTypeIsNotSupported)
assert.Nil(t, mReceiver)

lReceiver, err := factory.CreateLogsReceiver(context.Background(), params, cfg, nil)
assert.Error(t, err)
assert.ErrorIs(t, err, component.ErrDataTypeIsNotSupported)
assert.Nil(t, lReceiver)
}

0 comments on commit 8a9ce50

Please sign in to comment.