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/insert-functions.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,13 +224,13 @@ Note the following limitations for batching with insert functions:
224
224
225
225
{% endcomment %}
226
226
227
-
## Destination Insert Functions logs and errors
227
+
## Destination insert functions logs and errors
228
228
229
229
A function can throw errors, or Segment might encounter errors while invoking your function. You can view these errors in the [Event Delivery](/docs/connections/event-delivery/) tab for your Destination as in the example below.
230
230
231
231

232
232
233
-
### Destination functions error types
233
+
### Destination insert functions error types
234
234
235
235
-**Bad Request** - Any error thrown by the function code that is not covered by the other errors.
236
236
-**Invalid Settings** - A configuration error prevented Segment from executing your code. If this error persists for more than an hour, [contact Segment Support](https://segment.com/help/contact/){:target="_blank"}.
@@ -242,7 +242,7 @@ Segment only attempts to send the event to your destination function again if a
242
242
243
243
You can view Segment's list of [Integration Error Codes](/docs/connections/integration_error_codes/) for more information about what might cause an error.
244
244
245
-
### Destination functions logs
245
+
### Destination insert functions logs
246
246
247
247
If your function throws an error, execution halts immediately. Segment captures the event, any outgoing requests/responses, any logs the function might have printed, as well as the error itself.
248
248
@@ -267,7 +267,7 @@ async function onTrack(event, settings) {
267
267
> warning ""
268
268
> Don't log sensitive data, such as personally-identifying information (PII), authentication tokens, or other secrets. Avoid logging entire request/response payloads. The **Function Logs** tab may be visible to other workspace members if they have the necessary permissions.
269
269
270
-
## Caching in Destination Insert Functions
270
+
## Caching in destination insert functions
271
271
272
272
Functions execute only in response to incoming data, but the environments that functions run in are generally long-running. Because of this, you can use global variables to cache small amounts of information between invocations. For example, you can reduce the number of access tokens you generate by caching a token, and regenerating it only after it expires. Segment cannot make any guarantees about the longevity of environments, but by using this strategy, you can improve the performance and reliability of your Functions by reducing the need for redundant API requests.
273
273
@@ -291,7 +291,7 @@ async function getAccessToken () {
291
291
}
292
292
```
293
293
294
-
## Managing insert functions
294
+
## Managing destination insert functions
295
295
296
296
### Functions permissions
297
297
@@ -302,7 +302,7 @@ async function getAccessToken () {
302
302
303
303
If you are a **Workspace Owner** or **Functions Admin**, you can manage your function from the [Functions](https://app.segment.com/goto-my-workspace/functions/catalog){:target="_blank"} page.
0 commit comments