Skip to content

Commit 88289c7

Browse files
committed
RUM-9035 Report Telemetry for Action count and instrumentation type
1 parent c6c1528 commit 88289c7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Datadog/Datadog.xcodeproj/xcshareddata/xcschemes/DatadogRUM iOS.xcscheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@
212212
debugDocumentVersioning = "YES"
213213
debugServiceExtension = "internal"
214214
allowLocationSimulation = "YES">
215+
<CommandLineArguments>
216+
<CommandLineArgument
217+
argument = "DD_DEBUG"
218+
isEnabled = "NO">
219+
</CommandLineArgument>
220+
</CommandLineArguments>
215221
</LaunchAction>
216222
<ProfileAction
217223
buildConfiguration = "Release"

DatadogRUM/Sources/RUMMonitor/Scopes/RUMViewScope.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,15 @@ internal class RUMViewScope: RUMScope, RUMContextProvider {
414414
actionsCount += 1
415415
frustrationCount += event.action.frustration?.type.count.toInt64 ?? 0
416416
needsViewUpdate = true
417+
418+
// Track action in session ended metric
419+
if let userActionScope = userActionScope {
420+
dependencies.sessionEndedMetric.track(
421+
action: event,
422+
instrumentationType: userActionScope.instrumentation,
423+
in: self.context.sessionID
424+
)
425+
}
417426
}
418427

419428
private func addDiscreteUserAction(on command: RUMAddUserActionCommand) {

0 commit comments

Comments
 (0)