Skip to content

Legal API: log request app name in errors #26472

Closed

Description

@severinbeauvais

In #26471, "App-Name" will be added to request headers, to differentiate which UI calls are coming from.

In this ticket, the app name should be logged, for debugging/tracing purposes.

If there is existing logging of requests, just update that to include app name. future ticket, if needed

If requests are not generally logged:

  • should all request be logged?
  • if not, which requests should be logged?
  • should app name only be displayed in error logs? YES
  • other thoughts?

Activity

  1. added
    Entities Team
    on Mar 12, 2025
  2. changed the title [-]Legal API: Log request app name[/-] [+]Legal API: log request app name[/+] on Mar 12, 2025
  3. severinbeauvais commented on Mar 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    @vysakh-menon-aot @ketaki-deodhar @chenhongjing @argush3 Any thoughts about this? Please add your ideas or comments below. Thanks.

  4. argush3 commented on Mar 12, 2025

    @argush3
    Contributor

    Talked to Travis & Thor about the "App-Name" header.

    We currently only allow "Authorization" and "Content-Type" header via the cors pre-flight decorator in the legal api.

    Thor has signed off on adding "App-Name" to the allowed headers list in the decorator.

    As for which requests should be logged, I'm not sure. We'll have to review things a bit. But if you are wanting to debug an issue, I think you should log the new header for requests that fail at least.

  5. severinbeauvais commented on Mar 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    Awesome. Thanks!

  6. changed the title [-]Legal API: log request app name[/-] [+]Legal API: log request app name in errors[/+] on Mar 12, 2025
  7. argush3 commented on Mar 13, 2025

    @argush3
    Contributor

    Currently monitoring logs in dev to see if we pick up errors

  8. severinbeauvais commented on Mar 13, 2025

    @severinbeauvais
    CollaboratorAuthor

    Argus, will this be in today's release to Prod? If so, please tag with Entities Release 24.5.

  9. argush3 commented on Mar 13, 2025

    @argush3
    Contributor

    No, not in today's release. I think we want it settling in dev for a bit longer

  10. argush3 commented on Mar 13, 2025

    @argush3
    Contributor

    Confirmed to be working in Dev...partially. We'll just need to keep an eye out once API calls error out that actually use the "App-Name" header

    Image

  11. argush3 commented on Mar 13, 2025

    @argush3
    Contributor

    another example in dev

    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions