Skip to content

sys.monitoring.register_callback() audit event not documented in the table #136697

@TTsangSC

Description

@TTsangSC

Documentation

Summary

sys.monitoring.register_callback() is mentioned in the sys.monitoring docs as a function which generates audit events, but it doesn't have a corresponding entry in the audit events table.

Cause

The corresponding audit-event (definition; usage example (glob.glob)) directive is missing from Doc/library/sys.monitoring.rst.

Possible fix

According to Python/instrumentation.c, the event is raised under the name 'sys.monitoring.register_callback' with a single argument (the registered callback or None). So maybe something like:

.. audit-event:: sys.monitoring.register_callback func sys.monitoring.register_callback

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions