Commit 03f059b7 by Marcus Olsson Committed by GitHub

Docs: Fix typo and clarify need for query editor (#27796)

* Fix typo and clarify need for query editor

* Update docs/sources/developers/plugins/add-support-for-annotations.md

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
parent a9afb750
......@@ -15,7 +15,7 @@ Handling annotation queries is similar to how you'd handle a metrics query. The
## Add annotations support to your data source
To add logs support to an existing data source, you need to:
To add support for annotations to an existing data source, you need to:
- Enable annotations support
- Override the `annotationQuery` method
......@@ -81,9 +81,9 @@ const regionEvent: AnnotationEvent = {
## Build a annotation query editor
Let users write custom annotation queries to only display the annotation events they care about, by adding a _query editor_.
Let users write custom annotation queries to only display the annotation events they care about, by adding a _query editor_. You only need to build a query editor if you want to let users query or filter annotations.
> **Note**: Annotation query editors have yet to receive support for React. The instructions here are given for Angular. Fortunately, you can run Angular even in a plugin otherwise written using React. This section will be updated once React support for annotation queries editors is available.
> **Note:** Annotation query editors have yet to receive support for React. The instructions here are given for Angular. Fortunately, you can run Angular even in a plugin otherwise written using React. This section will be updated once React support for annotation queries editors is available.
1. Create a file called `AnnotationQueryEditor.ts` in the `src` directory, with the following content.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment