Skip to content

Commit

Permalink
logs-datasource: improve show context copy (#1537)
Browse files Browse the repository at this point in the history
Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
  • Loading branch information
svennergr and tolzhabayev authored Feb 13, 2025
1 parent 3b69df5 commit ca92a7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docusaurus/docs/tutorials/build-a-logs-data-source-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export class ExampleDatasource extends DataSourceApi<ExampleQuery, ExampleOption

:::note

Implement this feature through the `DataSourceWithXXXSupport` interface.
Implement this feature through the `DataSourceWithLogsContextSupport` interface.

:::

Expand Down Expand Up @@ -366,6 +366,7 @@ export class ExampleDatasource
query?: ExampleQuery
): Promise<DataQueryResponse> {
// Be sure to adjust this example implementation of createRequestFromQuery based on your data source logic.
// Remember to replace variables with `getTemplateSrv` and the passed `options.scopedVars` before returning your `request` object.
const request = createRequestFromQuery(row, query, options);
return lastValueFrom(
// Be sure to adjust this example of this.query based on your data source logic.
Expand Down

0 comments on commit ca92a7f

Please sign in to comment.