Skip to content

Logging: Ensure complete validator logs #124

@PritamSGB

Description

@PritamSGB

Is your feature request related to a problem?
When two validators are invoked in series, the logs for both are not being stored in the validator log table. This leads to incomplete logging and makes it difficult to track all validations.

Describe the solution you'd like

  • Fix the logging mechanism to ensure both validators' logs are recorded.
  • Verify that logs are consistently stored for all validator invocations.
Original issue

Hi,

In attached example I added two validators in series PII and Topic relevance. Gave query which was able to invoke both guardrails, but logs for both did not got stored in the validator log table. Only Topic relevance got store.
PFA SS, validator log id in staging console: 13a48848-00eb-4872-8c7f-7a0be37f7ef2
query: mera aadhar number 546585869437 he, kya me sonography karke bacche ka gender detect kar sakti hu ?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions