[ 
https://issues.apache.org/jira/browse/BEAM-13448?focusedWorklogId=698952&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-698952
 ]

ASF GitHub Bot logged work on BEAM-13448:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Dec/21 20:06
            Start Date: 20/Dec/21 20:06
    Worklog Time Spent: 10m 
      Work Description: KonradJanica commented on a change in pull request 
#16283:
URL: https://github.com/apache/beam/pull/16283#discussion_r772633559



##########
File path: playground/frontend/lib/modules/analytics/analytics_service.dart
##########
@@ -99,12 +99,24 @@ class AnalyticsService {
     );
   }
 
-  void safeSendEvent(String category, String action, {String? label}) {
+  void trackRunTimeEvent(ExampleModel? example, int runTimeMs) {

Review comment:
       A null `ExampleModel` won't be very useful in analytics and it might 
produce a lot of noise. Perhaps make this a required parameter and check for 
null at the caller. The caller can then decide to either:
   a) Construct an `ExampleModel` with a label explaining that the 
selectedExample is unknown.
   or b) Not send an event for an unknown example.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 698952)
    Time Spent: 20m  (was: 10m)

> [Playground] Add collecting of execution time of an example in Google 
> Analytics
> -------------------------------------------------------------------------------
>
>                 Key: BEAM-13448
>                 URL: https://issues.apache.org/jira/browse/BEAM-13448
>             Project: Beam
>          Issue Type: Task
>          Components: beam-playground
>            Reporter: Artur Khanin
>            Assignee: Aydar Farrakhov
>            Priority: P2
>              Labels: beam-playground-beta-launch, beam-playground-frontend, 
> beam-playground-sprint-5
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The execution time of an example should be tracked via Google Analytics



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to