@grafana/lezer-traceql
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

lezer-traceql

TraceQL lezer grammar based on https://github.com/grafana/tempo/blob/main/pkg/traceql/expr.y.

Installation

npm install

Development

Building

npm run build 

Testing

npm test

Tree visualizer

You can use the tree-viz tool in the tools folder to visually see the parser in action.

To use it, you need to have already built the project.

You also need to have a running HTTP server. For instance, you can do that by opening a terminal at the root folder and running:

npx http-server

This should start a HTTP server at http://127.0.0.1:8080. You can now fetch the tools/tree-viz.html page from the HTTP server: open your browser and visit http://127.0.0.1:8080/tools/tree-viz.html. alt text

Readme

Keywords

none

Package Sidebar

Install

npm i @grafana/lezer-traceql

Weekly Downloads

3,714

Version

0.0.16

License

Apache-2.0

Unpacked Size

57 kB

Total Files

5

Last publish

Collaborators

  • teodosii
  • yulia.shanyrova
  • clord
  • reemtariqq
  • grafanabot
  • scottleppgrafana
  • academo_grafana
  • jwestbrook
  • ivanahuckova
  • domasx2
  • bmatei
  • dsotirakis
  • tolzhabayev
  • iwysiu
  • andresmgotor
  • leventebalogh
  • torkelo
  • dprokop
  • peteholmberg
  • ryantxu
  • mckn
  • sunker