Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM] Track usage of Gold+ features #72054

Closed
1 of 3 tasks
sorenlouv opened this issue Jul 16, 2020 · 1 comment · Fixed by #77630
Closed
1 of 3 tasks

[APM] Track usage of Gold+ features #72054

sorenlouv opened this issue Jul 16, 2020 · 1 comment · Fixed by #77630
Assignees
Labels
Team:APM All issues that need APM UI Team support v7.10.0

Comments

@sorenlouv
Copy link
Member

sorenlouv commented Jul 16, 2020

On Cloud we want to register which Gold+ features are being used. We already do this for the Service Map:

Register:

plugins.licensing.featureUsage.register(
APM_SERVICE_MAPS_FEATURE_NAME,
APM_SERVICE_MAPS_LICENSE_TYPE
);

Notify:

context.licensing.featureUsage.notifyUsage(APM_SERVICE_MAPS_FEATURE_NAME);

There are two steps required: featureUsage.register to register the feature (happens during setup lifecycle), and featureUsage.notifyUsage which should be called whenever the feature is actively used.

public async setup(core: CoreSetup, { licensing }: PluginSetupDependencies) {
    licensing.featureUsage.register('Foo feature', 'gold');
  }

  public async start(core: CoreSetup, { licensing }: PluginStartDependencies) {
    // elsewhere where license checking is done prior to a feature being consumed
      if (check.isValid) {
        licensing.featureUsage.notifyUsage('Foo feature');
      }    
    }
  }

Gold+ features in APM which are tracked:

  • Service Maps
  • Machine learning (notify when a new job is added)
  • Custom Links (notify when a new link is added)
@sorenlouv sorenlouv added [zube]: Inbox Team:APM All issues that need APM UI Team support v7.10.0 labels Jul 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:APM All issues that need APM UI Team support v7.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants