We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278be6d commit f0dd27aCopy full SHA for f0dd27a
src/plugins/usage_collection/README.md
@@ -36,10 +36,10 @@ class Plugin {
36
3. Creating and registering a Usage Collector. Ideally collectors would be defined in a separate director `server/collectors/register.ts`.
37
38
```ts
39
+// server/collectors/register.ts
40
import { PluginSetupContract as UsageCollection } from 'src/plugins/usage_collection/server';
41
import { CallCluster } from 'src/legacy/core_plugins/elasticsearch';
42
-// server/collectors/register.ts
43
export function registerMyPluginUsageCollector(usageCollection?: UsageCollection): void {
44
// usageCollection is an optional dependency, so make sure to return if it is not registered.
45
if (!usageCollection) {
0 commit comments