lib/datadog/appsec/contrib/graphql/gateway/watcher.rb in datadog-2.4.0 vs lib/datadog/appsec/contrib/graphql/gateway/watcher.rb in datadog-2.5.0
- old
+ new
@@ -36,14 +36,10 @@
span: scope.service_entry_span,
multiplex: gateway_multiplex,
actions: result.actions
}
- if scope.service_entry_span
- scope.service_entry_span.set_tag('appsec.blocked', 'true') if result.actions.include?('block')
- scope.service_entry_span.set_tag('appsec.event', 'true')
- end
-
+ Datadog::AppSec::Event.tag_and_keep!(scope, result)
scope.processor_context.events << event
end
block = GraphQL::Reactive::Multiplex.publish(op, gateway_multiplex)
end