Skip to content

Commit 5a13740

Browse files
authored
OPA: Add decision outcome to span (#3096)
Signed-off-by: Magnus Jungsbluth <[email protected]>
1 parent cf9258f commit 5a13740

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest.go

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func (f *opaAuthorizeRequestFilter) Request(fc filters.FilterContext) {
151151
f.opa.HandleInvalidDecisionError(fc, span, result, err, !f.opa.EnvoyPluginConfig().DryRun)
152152
return
153153
}
154+
span.SetTag("opa.decision.allowed", allowed)
154155
if !allowed {
155156
fc.Metrics().IncCounter(f.opa.MetricsKey("decision.deny"))
156157
f.opa.ServeResponse(fc, span, result)

0 commit comments

Comments
 (0)