Awesome. Thanks Max! Appreciate the guidance.
tip - if its the first time you are adding counting to a plugin for
usage tracking
I recommend you ask Alexey, Fred or me to review it to catch too
aggressive or too passive counting issues.
/max
On Fri, Mar 11, 2016 at 10:23 AM, Max Rydahl Andersen
<manderse(a)redhat.com>
wrote:
> On 11 Mar 2016, at 18:12, Brian Fitzpatrick wrote:
>
> When you say "Wizards should already be there as long as SY and Fuse
> depend
> on the usage plug-in." what do you mean?
>
> hmm - just realised that is missing from the docs...pretty sure it
> was
> there at some point.
>
> For basic enablement add dependency to: org.jboss.tools.usage like in
>
https://github.com/jbosstools/jbosstools-server/blob/jbosstools-4.2.0.Bet...
>
> Can I interpret that as meaning if our tools ping for daily events as
> in
> the example below, our wizard usage will already be recorded?
>
> Wizard usage will be recorded as soon as the usage reporter is
> installed
> (and of course if the user said yes to be tracked)
>
> UsageReporter.getInstance().countEvent(eventType.event(label,
> value));
>
> If you have code like the above then you for sure should already be
> covered for sure ;)
>
> /max
>
> On Fri, Mar 11, 2016 at 10:08 AM, Max Rydahl Andersen
> manderse(a)redhat.com
> wrote:
>
> On 11 Mar 2016, at 18:01, Brian Fitzpatrick wrote:
>
> Hi all,
>
> Back in January I received great help from Alexey and Max to help me
> take
> a
> look at the usage data we've been tracking for JBDS. It really helped
> get
> some baseline numbers for ESB usage so we could justify deprecation
> of the
> older tooling going forward (still supporting, just not actively
> updating,
> which is how it's been for a few years now anyway).
>
> Now we'd like to hook SwitchYard and Fuse Tools wizards and editors
> up to
> get them into the tracking data as well.
>
> Wizards should already be there as long as SY and Fuse depend on the
> usage
> plugin.
>
> For editors you will need to send specific events.
>
> Do we have anything written up on how to use the frameworks for the
> usage
>
> tooling in JBDS? Or can you point me at some examples of how you've
> done
> it
> for wizards and editors in the main JBoss Tools code?
>
> Docs:
>
>
https://github.com/jbosstools/jbosstools-devdoc/blob/master/api/usage/usa...
>
> Please be aware to not send a ping for every little thing - we don't
> want
> to overload with data.
>
> But for example if you want to count the number of times the fuse
> editor
> is opened you can do that with a daily event counter.
>
> To find examples - search for .countEvent() in JBoss Tools Server and
> I
> think Forge has some too.
>
> /max
>
http://about.me/maxandersen
>
> /max
>
http://about.me/maxandersen
>