lightstep / servicenow-cloud-observability-datasource

ServiceNow Cloud Observability (formerly Lightstep) telemetry datasource for Grafana
Apache License 2.0
6 stars 3 forks source link

Add experimental logs query support #34

Closed DHedgecock closed 1 year ago

DHedgecock commented 1 year ago

What does this PR do?

Adds experimental support for logs queries

What needed to change in the code and why?

The preprocessor entry now checks the res for a top level switch between data.attributes.series and data.attributes.logs to route the res to the correct preprocessor.

How did you test this?

Unit test that the top level preprocessor returns the correct data frame shape is added.

Code review notes

The log event object is defined as an object of unknown key:value pairs - this is intended to reflect the non-structured schema of the log event.