Skip to content

Commit

Permalink
Declare how to share a receiver across multiple signals with factory …
Browse files Browse the repository at this point in the history
…options.
  • Loading branch information
atoulme committed May 1, 2024
1 parent fe582df commit b91efbd
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 487 deletions.
29 changes: 29 additions & 0 deletions .chloggen/merge_sharedcomponent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# 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: Declare how to share a receiver across multiple signals with factory options.

# One or more tracking issues or pull requests related to the change
issues: []

# (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: |
This solution replaces the use of a sharedcomponent Map which was used previously.
With this change, implementers need to declare an optional `receiver.WithSharedLogs`,
`receiver.WithSharedMetrics` or `receiver.WithSharedTraces`
to reuse the same receiver across each signal.
# 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: [user, api]
14 changes: 0 additions & 14 deletions internal/sharedcomponent/package_test.go

This file was deleted.

120 changes: 0 additions & 120 deletions internal/sharedcomponent/sharedcomponent.go

This file was deleted.

Loading

0 comments on commit b91efbd

Please sign in to comment.