Skip to content

Commit 0854956

Browse files
committed
add config options to each setup guide [netlify-build]
1 parent 6463153 commit 0854956

File tree

4 files changed

+60
-36
lines changed

4 files changed

+60
-36
lines changed

src/connections/auto-instrumentation/configuration.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,18 @@ title: Generate Events from Signals
33
hidden: true
44
---
55

6-
This guide is a reference to configuring, generating, and using signals in the Signals SDK with Auto-Instrumentation. On this page, you'll find details on:
6+
This guide details how to use signals, and their associated data, generated in one of the Signals SDKs with the Auto-Instrumentation dashboard in your Segment workspace. On this page, you'll find details on:
77

8-
- Setting up and managing signal types in the Signals SDK
98
- Creating custom rules to capture and translate signals into actionable analytics events
109
- Example rules that you can use as a basis for further customization
1110

12-
This guide assumes that you've already added the Signals SDK to your application. If you haven't yet, see the [Auto-Instrumentation Setup](/docs/connections/auto-instrumentation/setup/) guide for initial setup.
11+
This guide assumes that you've already added the Signals SDK to your application. If you haven't yet, see the [Auto-Instrumentation Setup](/docs/connections/auto-instrumentation/) guide for initial setup.
1312

1413
> info "Auto-Instrumentation Pilot"
1514
> Auto-Instrumentation is currently in pilot and is governed by Segment's [First Access and Beta Preview Terms](https://www.twilio.com/en-us/legal/tos){:target="_blank"}. Segment doesn't recommend Auto-Instrumentation for use in a production environment, as Segment is actively iterating on and improving the user experience.
1615
1716
> success "Enable Auto-Instrumentation"
18-
> To enable Auto-Instrumentation in your Segment workspace, reach out to your dedicated account manager.
19-
20-
## Signals configuration
21-
22-
Using the Signals Configuration object, you can control the destination, frequency, and types of signals that Segment automatically tracks within your application. The following tables detail the configuration options for both Signals-Swift and Signals-Kotlin.
23-
24-
### Signals-Swift
25-
26-
| `Option` | Required | Value | Description |
27-
| ---------------------- | -------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
28-
| `writeKey` | Yes | String | Source write key |
29-
| `maximumBufferSize` | No | Integer | The number of signals to be kept for JavaScript inspection. This buffer is first-in, first-out. Default is `1000`. |
30-
| `relayCount` | No | Integer | Relays signals to Segment every Xth event. Default is `20`. |
31-
| `relayInterval` | No | TimeInterval | Relays signals to segment every X seconds. Default is `60`. |
32-
| `broadcasters` | No | `SignalBroadcaster` | An array of broadcasters. These objects forward signal data to their destinations, like `WebhookBroadcaster` or `DebugBroadcaster` writing to the developer console. Default is `SegmentBroadcaster`. |
33-
| `useUIKitAutoSignal` | No | Bool | Tracks UIKit component interactions automatically. Default is `false`. |
34-
| `useSwiftUIAutoSignal` | No | Bool | Tracks SwiftUI component interactions automatically. Default is `false`. |
35-
| `useNetworkAutoSignal` | No | Bool | Tracks network events automatically. Default is `false`. |
36-
| `allowedNetworkHosts` | No | Array | An array of allowed network hosts. |
37-
| `blockedNetworkHosts` | No | Array | An array of blocked network hosts. |
38-
39-
40-
### Signals-Kotlin
41-
42-
| `Option` | Required | Value | Description |
43-
| ------------------- | -------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44-
| `writeKey` | Yes | String | Source write key |
45-
| `maximumBufferSize` | No | Integer | The number of signals to be kept for JavaScript inspection. This buffer is first-in, first-out. Default is `1000`. |
46-
| `broadcastInterval` | No | Integer | Broadcasts signals to Segment every X event. Default is `60`. |
47-
| `broadcasters` | No | `List<SignalBroadcaster>` | An array of broadcasters. These objects forward signal data to their destinations, like `WebhookBroadcaster` or `DebugBroadcaster` writing to the developer console. Default is `SegmentBroadcaster`. |
17+
> To enable Auto-Instrumentation in your Segment workspace, reach out to your dedicated account manager.
4818
4919

5020
## Converting signals to events

src/connections/auto-instrumentation/kotlin-setup.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ Next, you'll need to add the Signals SDKs to your Kotlin application.
4444
}
4545
```
4646

47-
2. Add the following code to your application to initialize the Signals SDK:
47+
2. Add the initialization code and configuration options:
48+
49+
> success ""
50+
> see [configuration options](#configuration-options) for a complete list.
4851

4952
```kotlin
5053
// Configure Analytics with your settings
@@ -89,6 +92,18 @@ Next, you'll need to verify signal emission and [create rules](/docs/connections
8992
9093
Segment displays `Rule updated successfully` to verify that it saved your rule.
9194
95+
## Configuration Options
96+
97+
Using the Signals Configuration object, you can control the destination, frequency, and types of signals that Segment automatically tracks within your application. The following table details the configuration options for Signals-Kotlin.
98+
99+
| `Option` | Required | Value | Description |
100+
| ------------------- | -------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
101+
| `writeKey` | Yes | String | Source write key |
102+
| `maximumBufferSize` | No | Integer | The number of signals to be kept for JavaScript inspection. This buffer is first-in, first-out. Default is `1000`. |
103+
| `broadcastInterval` | No | Integer | Broadcasts signals to Segment every X event. Default is `60`. |
104+
| `broadcasters` | No | `List<SignalBroadcaster>` | An array of broadcasters. These objects forward signal data to their destinations, like `WebhookBroadcaster` or `DebugBroadcaster` writing to the developer console. Default is `SegmentBroadcaster`. |
105+
106+
92107
## Next steps
93108
94109
This guide walked you through initial Signals SDK/Auto-Instrumentation setup. Next, read the [Auto-Instrumentation Signals Implementation Guide](/docs/connections/auto-instrumentation/configuration/), which dives deeper into Signals and offers examples rules.

src/connections/auto-instrumentation/swift-setup.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ Next, you'll need to add the Signals SDKs to your Swift applicatiion.
3333
https://github.com/segmentio/Signals-swift.git
3434
```
3535

36-
2. Add the initialization code:
36+
2. Add the initialization code and configuration options:
37+
38+
> success ""
39+
> see [configuration options](#configuration-options) for a complete list.
3740

3841
```swift
3942
// Configure Analytics with your settings
@@ -87,6 +90,23 @@ Next, you'll need to verify signal emission and [create rules](/docs/connections
8790

8891
Segment displays `Rule updated successfully` to verify that it saved your rule.
8992

93+
## Configuration Options
94+
95+
Using the Signals Configuration object, you can control the destination, frequency, and types of signals that Segment automatically tracks within your application. The following table details the configuration options for Signals-Swift.
96+
97+
| `Option` | Required | Value | Description |
98+
| ---------------------- | -------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
99+
| `writeKey` | Yes | String | Source write key |
100+
| `maximumBufferSize` | No | Integer | The number of signals to be kept for JavaScript inspection. This buffer is first-in, first-out. Default is `1000`. |
101+
| `relayCount` | No | Integer | Relays signals to Segment every Xth event. Default is `20`. |
102+
| `relayInterval` | No | TimeInterval | Relays signals to segment every X seconds. Default is `60`. |
103+
| `broadcasters` | No | `SignalBroadcaster` | An array of broadcasters. These objects forward signal data to their destinations, like `WebhookBroadcaster` or `DebugBroadcaster` writing to the developer console. Default is `SegmentBroadcaster`. |
104+
| `useUIKitAutoSignal` | No | Bool | Tracks UIKit component interactions automatically. Default is `false`. |
105+
| `useSwiftUIAutoSignal` | No | Bool | Tracks SwiftUI component interactions automatically. Default is `false`. |
106+
| `useNetworkAutoSignal` | No | Bool | Tracks network events automatically. Default is `false`. |
107+
| `allowedNetworkHosts` | No | Array | An array of allowed network hosts. |
108+
| `blockedNetworkHosts` | No | Array | An array of blocked network hosts.
109+
90110
## Next steps
91111

92112
This guide walked you through initial Signals SDK/Auto-Instrumentation setup. Next, read the [Auto-Instrumentation Signals Implementation Guide](/docs/connections/auto-instrumentation/configuration/), which dives deeper into Signals and offers examples rules.

src/connections/auto-instrumentation/web-setup.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ Follow these steps to integrate the Signals SDK into your website:
4040
pnpm install @segment/analytics-signals
4141
```
4242

43-
2. Add the initialization code:
43+
2. Add the initialization code and configuration options:
44+
45+
> success ""
46+
> see [configuration options](#configuration-options) for a complete list.
4447
4548
```ts
4649
// analytics.js/ts
@@ -104,6 +107,22 @@ signalsPlugin.addSignal({
104107
})
105108
```
106109

110+
## Configuration Options
111+
112+
Using the Signals Configuration object, you can control the destination, frequency, and types of signals that Segment automatically tracks within your application. The following table details the configuration options for Signals-Kotlin.
113+
114+
| `Option` | Required | Value | Description |
115+
| ------------------- | -------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116+
| `writeKey` | Yes | string | Source write key |
117+
| `maxBufferSize` | No | number | The number of signals to be kept for JavaScript inspection. This buffer is first-in, first-out. Default is `1000`. |
118+
| `processSignal` | No | string | Override the default signal processing function from the edge function. If this is set, the edge function will not be used.
119+
| `enableDebugLogging` | No | boolean | Enable debug logs.
120+
| `disableSignalRedaction` | No | boolean | Disable default Signal data redaction.
121+
| `apiHost` | No | string | Override the default signals API host. Default is `signals.segment.io/v1`.
122+
| `functionHost` | No | string | Override the default edge host. Default is `cdn.edgefn.segment.com`
123+
| `flushAt` | No | number | How many signals to flush at once when sending to the signals API. Default is `5` . |
124+
| `flushInterval` | No | number | How many ms to wait before flushing signals to the API. The default is `2000`. |
125+
107126
## Next steps
108127

109128
This guide walked you through initial Signals SDK/Auto-Instrumentation setup. Next, read the [Auto-Instrumentation Signals Implementation Guide](/docs/connections/auto-instrumentation/configuration/), which dives deeper into Signals and offers examples rules.

0 commit comments

Comments
 (0)