Skip to content

StructuredLogHandler docstring documents project but parameter is project_id #17604

Description

@mariosnikolaou

Determine this is the right repository

  • I determined this is the correct repository in which to report this bug.

Summary of the issue

Context
The docstring in StructuredLogHandler documents the parameter as project, but the actual keyword argument is project_id.

https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-logging/google/cloud/logging_v2/handlers/structured_log.py#L77

Expected Behavior:
Docstring for StructuredLogHandler matches keywork argument name project_id.

Actual Behavior:
Docstring for StructuredLogHandler uses project.

API client name and version

google-cloud-logging 3.16.0

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    triage meI really want to be triaged.
    on Jun 30, 2026
  2. added
    type: docsImprovement to the documentation for an API.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    and removed
    triage meI really want to be triaged.
    on Jul 1, 2026
  3. added a commit that references this issue on Jul 6, 2026
    32862f0
  4. added a commit that references this issue on Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.type: docsImprovement to the documentation for an API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions