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
The user agent that should be reported when sending events to Sentry.
95
+
96
+
</SdkOption>
97
+
86
98
<SdkOptionname="before_breadcrumb"type='Fn'>
87
99
88
100
This function is called with a breadcrumb object before the breadcrumb is added to the scope. When `None` is returned from the function, the breadcrumb is dropped. To pass the breadcrumb through, return the breadcrumb itself.
@@ -91,11 +103,31 @@ This function is called with a breadcrumb object before the breadcrumb is added
@@ -121,6 +153,12 @@ A number between `0.0` and `1.0`, controlling the percentage chance a given tran
121
153
122
154
</SdkOption>
123
155
156
+
<SdkOptionname="traces_sampler"type='Fn'>
157
+
158
+
If given, called with a `SamplingContext` for each transaction to determine the sampling rate. Return a sample rate between `0.0` and `1.0` for the transaction in question. Takes priority over the `traces_sample_rate`.
159
+
160
+
</SdkOption>
161
+
124
162
125
163
## Transport Options
126
164
@@ -136,7 +174,51 @@ A number between `0.0` and `1.0`, controlling the percentage chance a given tran
Setting this to `true` disables SSL certificate validation when sending outbound requests to Sentry. This should never be enabled when using the SDK in your real codebase or otherwise handling any kind of sensitive or personally identifiable information, as it could be exposed to potential attackers.
This is typically either a boxed function taking the client options by reference and returning a `Transport`, a boxed `Arc<Transport>` or alternatively the `DefaultTransportFactory`.
186
+
By default, the SDK uses a transport based on the `reqwest` crate running on a background thread.
187
+
188
+
</SdkOption>
189
+
190
+
## Logging Options
191
+
192
+
The following features and options are only available when the `logs` feature of the `sentry` crate is enabled.
Determines whether captured structured logs should be sent to Sentry.
197
+
This option is only available when the `logs` feature is enabled.
198
+
199
+
</SdkOption>
200
+
201
+
<SdkOptionname="before_send_log"type='Fn'>
202
+
203
+
Callback that is executed for each Log being captured. When `None` is returned from the function, the log record is dropped. To pass the log record through, return the log record itself.
204
+
205
+
This option is only available when the `logs` feature is enabled.
206
+
207
+
</SdkOption>
208
+
209
+
210
+
## Session Tracking Options
211
+
212
+
The following features and options are only available when the `release-health` feature of the `sentry` crate is enabled.
Enable Release Health Session tracking. When automatic session tracking is enabled, a new "user-mode" session is started at the time of `sentry::init`, and will persist for the application lifetime.
0 commit comments