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
@@ -148,6 +148,21 @@ By default, Kotlin SDK for TelemetryDeck will include the following environment
148
148
149
149
See [Custom Telemetry](#custom-telemetry) on how to implement your own parameter enrichment.
150
150
151
+
## Default Parameters
152
+
153
+
If there are parameters you would like to include with every outgoing signal, you can use `DefaultParameterProvider` instead of passing them with every call.
154
+
155
+
```kotlin
156
+
// create an instance of [DefaultParameterProvider] and pass the key value you wish to be appended to every signal
157
+
val provider =DefaultParameterProvider(mapOf("key" to "value"))
158
+
159
+
// add the provider when configuring an instance of TelemetryDeck
160
+
161
+
val builder =TelemetryDeck.Builder()
162
+
.appID("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
163
+
.addProvider(provider)
164
+
```
165
+
151
166
## Default prefix
152
167
153
168
If you find yourself prepending the same prefix for to your custom signals or parameters,
@@ -167,7 +182,7 @@ val builder = TelemetryDeck.Builder()
167
182
168
183
## Custom Telemetry
169
184
170
-
Another way to send signals is to register a custom `TelemetryDeckProvider`.
185
+
Another way to send signals is to implement a custom `TelemetryDeckProvider`.
171
186
A provider uses the TelemetryDeck client in order to queue or send signals based on environment or other triggers.
// As of Kotlin 2.0, the Compose Compiler and runtime are required in the classpath https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compiler.html
0 commit comments