re-add missing trace

This commit is contained in:
Caleb Doxsey 2024-11-07 09:33:27 -07:00
parent 674c6e4650
commit 41474a99c6

View file

@ -11,6 +11,7 @@ import (
"github.com/pomerium/pomerium/authorize/internal/store"
"github.com/pomerium/pomerium/config"
"github.com/pomerium/pomerium/internal/telemetry/trace"
)
// HeadersRequest is the input to the headers.rego script.
@ -79,6 +80,9 @@ func NewHeadersEvaluator(store *store.Store) *HeadersEvaluator {
// Evaluate evaluates the headers.rego script.
func (e *HeadersEvaluator) Evaluate(ctx context.Context, req *HeadersRequest, options ...rego.EvalOption) (*HeadersResponse, error) {
ctx, span := trace.StartSpan(ctx, "authorize.HeadersEvaluator.Evaluate")
defer span.End()
ectx := new(rego.EvalContext)
for _, option := range options {
option(ectx)