Skip to content

Traceql arithmetic - #2146

Merged
joe-elliott merged 8 commits into
grafana:mainfrom
joe-elliott:traceql-arithmetic
Mar 3, 2023
Merged

Traceql arithmetic#2146
joe-elliott merged 8 commits into
grafana:mainfrom
joe-elliott:traceql-arithmetic

Conversation

@joe-elliott

Copy link
Copy Markdown
Collaborator

What this PR does:
Adds support for arbitrary arithmetic to TraceQL. Also adds support for using duration in binary operations.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>

@zalegrala zalegrala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott
joe-elliott merged commit 62ddaac into grafana:main Mar 3, 2023
Comment thread CHANGELOG.md
* [CHANGE] Add support for s3 session token in static config [#2093](https://github.com/grafana/tempo/pull/2093) (@farodin91)
* [ENHANCEMENT] Metrics generator to make use of counters earlier [#2068](https://github.com/grafana/tempo/pull/2068) (@zalegrala)
* [ENHANCEMENT] Log when a trace is too large to compact [#2105](https://github.com/grafana/tempo/pull/2105) (@scalalang2)
* [ENHANCEMENT] Add support for arbitrary arithemtic to TraceQL queries [#2146](https://github.com/grafana/tempo/pull/2105) (@joe-elliott)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, link sill points to 2105

@electron0zero electron0zero mentioned this pull request Mar 6, 2023
3 tasks
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
* added arithmetic

Signed-off-by: Joe Elliott <number101010@gmail.com>

* added bench

Signed-off-by: Joe Elliott <number101010@gmail.com>

* make duration work as a number

Signed-off-by: Joe Elliott <number101010@gmail.com>

* benchmarkin'

Signed-off-by: Joe Elliott <number101010@gmail.com>

* make arithmetic valid

Signed-off-by: Joe Elliott <number101010@gmail.com>

* changelog

Signed-off-by: Joe Elliott <number101010@gmail.com>

* docs

Signed-off-by: Joe Elliott <number101010@gmail.com>

---------

Signed-off-by: Joe Elliott <number101010@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants