Skip to content

Commit bd3429e

Browse files
Update insert-functions.md
Rephrased a note and added two FAQS re insert functions and their relationship with destination filters
1 parent 52493b5 commit bd3429e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/connections/functions/insert-functions.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can also use this page to [enable destination insert functions](#enable-the-
5252
Segment invokes a separate part of the function (called a "handler") for each event type that you send to your destination insert function.
5353

5454
> info ""
55-
> Your function isn't invoked for an event if you've configured a [destination filter](/docs/connections/destinations/destination-filters/), and the event doesn't pass the filter.
55+
> If youve configured a [destination filter](/docs/connections/destinations/destination-filters/), and the event doesnt pass the filter, then your function isn’t invoked for that event as destination filters are applied before the insert functions.
5656
5757
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.
5858

@@ -476,6 +476,7 @@ Yes, Segment retries invocations that throw RetryError or Timeout errors (tempor
476476

477477
No, Segment can't guarantee the order in which the events are delivered to an endpoint.
478478

479+
479480
##### Can I create a device-mode destination?
480481

481482
No, destination insert functions are currently available as cloud-mode destinations only. Segment is in the early phases of exploration and discovery for supporting customer "web plugins" for custom device-mode destinations and other use cases, but this is unsupported today.
@@ -484,6 +485,14 @@ No, destination insert functions are currently available as cloud-mode destinati
484485

485486
Yes, an insert function can be connected to multiple destinations.
486487

488+
##### Can I configure destination filters and have destination insert function in the same connection?
489+
490+
Yes, there is no limitation on having destination filters and destination insert functions in the same connection.
491+
492+
##### Are the insert functions invoked before or after the destination filters are applied?
493+
494+
The destinations filters are applied prior to the invocation of the insert functions in the Segment data pipeline.
495+
487496
{% comment %}
488497

489498
## Using Segment's Public API

0 commit comments

Comments
 (0)