This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172913 - Log UI Gestures about Hudson usage
Summary: Log UI Gestures about Hudson usage
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Hudson (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on: 175985
Blocks:
  Show dependency tree
 
Reported: 2009-09-23 16:45 UTC by Jaroslav Tulach
Modified: 2011-12-20 15:56 UTC (History)
6 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
proposed patch (8.82 KB, patch)
2011-12-13 13:15 UTC, Tomas Mysik
Details | Diff
improved patch (8.35 KB, patch)
2011-12-14 10:29 UTC, Tomas Mysik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-09-23 16:45:17 UTC
In order to find out how big amount of our users is using the Hudson integration, possibly Kenai and Hudson 
integration, please log some (anonymous) information about their setup.

Things to log - how much hudson servers or jobs is observed. How many projects is directly associated to hudson 
server, the type of hudson associated project.


More info at http://logger.netbeans.org/ or http://wiki.netbeans.org/UIGesturesCollector
Comment 1 Tomas Mysik 2011-12-12 15:29:20 UTC
Also, Usage Logging [1] should be added as well.

[1] http://wiki.netbeans.org/UsageLoggingSpecification
Comment 2 Jesse Glick 2011-12-12 20:49:44 UTC
According to UIGesturesCollector it is superseded by UsageLoggingSpecification. Do we really want to collect logs in both ways, or can we just use the apparently newer system?
Comment 3 Tomas Mysik 2011-12-13 13:15:23 UTC
Created attachment 114094 [details]
proposed patch

Patch for both types of statistics.
Comment 4 Tomas Mysik 2011-12-13 13:20:43 UTC
(In reply to comment #3)
> Patch for both types of statistics.

Also, Usage Logging wiki page [1] needs to be updated.

[1] http://wiki.netbeans.org/UsageLoggingSpecification
Comment 5 Jesse Glick 2011-12-13 16:15:10 UTC
Can use @Messages to define the bundle key, even if not using the generated method; at least keeps the key close to the source code. Cannot be fully type-safe without JDK 8 method handles I guess.

I do not understand why we need both logUI and logUsage. UsageLoggingSpecification seems newer so why do we not use just logUsage?
Comment 6 Jaroslav Tulach 2011-12-14 08:28:00 UTC
logUsage is a fork of the original project. Initial fork is no longer maintained (for a while statistics.netbeans.org was the only source of info we had). I've heard that the group related to the original fork did yet another fork and tries to create new server for some reason (rather than joining efforts with statistics.netbeans.org).

As original creator of the project I recommend everyone to stop supporting forks and donate to the statistics.netbeans.org as described here
http://wiki.netbeans.org/UIGesturesCollector
and here
http://wiki.netbeans.org/HowToUseUIGesturesCollectorInYourApp

Doing so will have one important benefit: The statistics.netbeans.org is essential for NetBeans QA, 99% available, accessible without intranet and running for more then five years. Contributing to this project guarantees your work will not be lost.
Comment 7 Tomas Mysik 2011-12-14 09:52:06 UTC
(In reply to comment #6)
> logUsage is a fork of the original project.

I don't think so since logUsage does a different thing; Honza can provide more information, of course.

> Doing so will have one important benefit: The statistics.netbeans.org is
> essential for NetBeans QA, 99% available, accessible without intranet and
> running for more then five years. Contributing to this project guarantees your
> work will not be lost.

IMHO the only problem is that the output is different from what statistics customers expect. Again, Honza and Petr J can provide more information.
Comment 8 Tomas Mysik 2011-12-14 10:29:23 UTC
Created attachment 114147 [details]
improved patch

Using @Messages.
Comment 9 Tomas Mysik 2011-12-14 10:29:51 UTC
(In reply to comment #5)
> Can use @Messages to define the bundle key, even if not using the generated
> method; at least keeps the key close to the source code. Cannot be fully
> type-safe without JDK 8 method handles I guess.

Fixed.
Comment 10 Jesse Glick 2011-12-14 22:38:26 UTC
Commit when ready - I guess you will wait for some more information about whether we should be sending to both loggers or just one. This needs to be mandated product-wide.

Consider making UsageLogging into an API somewhere - it seems this utility has been copied a bunch of places.
Comment 11 Tomas Mysik 2011-12-15 06:05:51 UTC
(In reply to comment #10)
> Commit when ready - I guess you will wait for some more information about
> whether we should be sending to both loggers or just one. This needs to be
> mandated product-wide.

Well, who can/should do such decision? In fact, I tend to commit the patch as it is since we have this situation from NB 6.5, AFAIR.

> Consider making UsageLogging into an API somewhere - it seems this utility has
> been copied a bunch of places.

IMHO we already have a good candidate: LoggingUtils in maven.j2ee. I guess it should be in the IDE cluster but not sure in which module, class - any ideas?
Comment 12 Jesse Glick 2011-12-15 17:58:35 UTC
(In reply to comment #11)
> Well, who can/should do such decision?

Engineering managers I suppose.

> I tend to commit the patch as it is since we have this situation from NB 6.5

OK with me. Can always be cleaned up later if necessary.

> we already have a good candidate: LoggingUtils in maven.j2ee. I guess it
> should be in the IDE cluster but not sure in which module, class - any ideas?

Not sure. Might need to be in platform cluster. Could be filed as a separate API review.
Comment 13 Tomas Mysik 2011-12-19 13:02:45 UTC
Patch applied, Usage Logging wiki page updated as well.

http://hg.netbeans.org/web-main/rev/2cb9d02fe3ce

(In reply to comment #10)
> Consider making UsageLogging into an API somewhere - it seems this utility has
> been copied a bunch of places.

Not sure where exactly this issue could be filed - if anyone has an idea, please, do so.

Thanks.
Comment 14 Quality Engineering 2011-12-20 15:56:57 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/2cb9d02fe3ce
User: Tomas Mysik <tmysik@netbeans.org>
Log: #172913 - Log UI Gestures about Hudson usage