mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Add logging and tracing to datadog toolkit
This commit is contained in:
parent
17a8822f7f
commit
ab2a1e5d59
1 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ import MeshtasticProtobufs
|
|||
import DatadogCore
|
||||
import DatadogCrashReporting
|
||||
import DatadogRUM
|
||||
import DatadogTrace
|
||||
import DatadogLogs
|
||||
|
||||
@main
|
||||
struct MeshtasticAppleApp: App {
|
||||
|
|
@ -44,6 +46,14 @@ struct MeshtasticAppleApp: App {
|
|||
trackingConsent: UserDefaults.usageDataAndCrashReporting ? .granted : .notGranted,
|
||||
)
|
||||
DatadogCrashReporting.CrashReporting.enable()
|
||||
|
||||
Logs.enable()
|
||||
|
||||
Trace.enable(
|
||||
with: Trace.Configuration(
|
||||
sampleRate: 100, networkInfoEnabled: true // 100% sampling for development/testing, reduce for production
|
||||
)
|
||||
)
|
||||
|
||||
RUM.enable(
|
||||
with: RUM.Configuration(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue