lib: set evaluation span's description based on filename

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-13 16:32:01 +01:00
parent ac9cf590bc
commit 69780c67a9
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class BaseEvaluator:
The result is returned without any type-checking."""
with Hub.current.start_span(op="authentik.lib.evaluator.evaluate") as span:
span: Span
span.description = self._filename
span.set_data("expression", expression_source)
param_keys = self._context.keys()
try: