You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/functions/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Functions can help you bring external data into Segment ([Source functions](/doc
16
16
Functions are powered by AWS Lambda functions on the backend. This means you will need to declare any settings variables you create in the function handler rather than globally in your function.
17
17
18
18
- For Source functions, the handler is onRequest().
19
-
- For Destination functions and Insert functions, the handler is event-specfic. For example onTrack(), onIdentify(), etc.
19
+
- For Destination functions and Insert functions, the handler is event-specfic. For example, onTrack() or onIdentify().
20
20
21
21
If you declare functions globally in your function code, you risk leaking those settings values across function instances if you have more than one per function codebase. Make sure that you scope settings to the handler functions and pass those settings values as arguments to any helper functions that may need them to ensure context remains scoped to each function instance.
0 commit comments