tempo icon indicating copy to clipboard operation
tempo copied to clipboard

Refactoring: implement traceql.Static as interface

Open stoewer opened this issue 2 weeks ago • 2 comments

What this PR does: This makes it possible to add support for new types to traceql.Static without extending the existing struct.

The PR also adds the type traceql.StaticHashCode. The type is intended to be used as map key. This allows the implementation of traceql.Static implementations containing slices.

Which issue(s) this PR fixes: Is prerequisite for grafana/tempo-squad#435

Checklist

  • [x] Tests updated
  • [ ] Documentation added
  • [ ] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

stoewer avatar Jun 18 '24 04:06 stoewer