Skip to content

Commit 72d2bcf

Browse files
authored
Merge pull request #5576 from segmentio/tanjinhong72-patch-3
Add info to return event in handler to sent through destination
2 parents 3a9015e + c316ca5 commit 72d2bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connections/functions/insert-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Segment invokes a separate part of the function (called a "handler") for each ev
5757
> info ""
5858
> If you’ve configured a [destination filter](/docs/connections/destinations/destination-filters/), and the event doesn’t pass the filter, then your function isn’t invoked for that event as destination filters are applied before insert functions.
5959
60-
The default source code template includes handlers for all event types. You don't need to implement all of them - just use the ones you need, and skip the ones you don't.
60+
The default source code template includes handlers for all event types. You don't need to implement all of them - just use the ones you need, and skip the ones you don't. For event types that you want to send through the destination, return the event in the respective event handlers.
6161

6262
> info ""
6363
> Removing the handler for a specific event type results in blocking the events of that type from arriving at their destination. To keep an event type as is but still send it downstream, add a `return event` inside the event type handler statement.

0 commit comments

Comments
 (0)