GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Logging - no public API to create SourceLocation.Builder · Issue #3331 · googleapis/google-cloud-java

Logging - no public API to create SourceLocation.Builder #3331

New issue
Copy link
New issue
Copy link
Closed
#3339
Closed
Logging - no public API to create SourceLocation.Builder#3331
#3339
Copy link
Assignees
yihanzhen
Labels
api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@solatis
solatis
opened on Jun 1, 2018
Issue body actions

It appears there is no public API to create a new com.google.cloud.logging.SourceLocation.Builder object, thus I am unable to append this metadata to the log entries.

Expected API would be to have a public com.google.cloud.logging.SourceLocation.newBuilder() function, but this is not there.

Activity

  1. yihanzhen commented on Jun 1, 2018

    @yihanzhen
    yihanzhen
    on Jun 1, 2018
    Contributor
    More actions

    Sounds reasonable.
    (While before the method is added, you should be able to use new SourceLocation.Builder() to create a builder. It is not optimized but should work, as is used in tests)

  2. yihanzhen
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: loggingIssues related to the Cloud Logging API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jun 1, 2018
  3. solatis commented on Jun 2, 2018

    @solatis
    solatis
    on Jun 2, 2018
    Author
    More actions

    The problem is that the SourceLocation.Builder constructor is also private, as seen here:

    https://github.com/GoogleCloudPlatform/google-cloud-java/blob/89436180eb6dabd90bbc38c5600d00f5b262cc36/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/SourceLocation.java#L44-L47

    The reason this works in the tests is that they share the same package/namespace, but it doesn't work for others.

  4. yihanzhen commented on Jun 2, 2018

    @yihanzhen
    yihanzhen
    on Jun 2, 2018
    Contributor
    More actions

    Oh sorry I missed that. Working on that soon.

    Reacted by Leon Mergen
  5. yihanzhen
    self-assigned this
    on Jun 4, 2018
  6. yihanzhen
    closed this as completedin #3339on Jun 4, 2018
  7. theacodes
    unassigned
    yihanzhen
    on Sep 28, 2018
  8. JustinBeckwith
    assigned
    yihanzhen
    on Feb 1, 2021
  9. suztomo
    added a commit that references this issue on Mar 9, 2026

    test(deps): update dependency com.google.cloud:google-cloud-storage t…

    4896c3f
  10. chingor13
    added 4 commits that reference this issue on Mar 24, 2026

    docs: modify hermetic build docs (#3331)

    a3d7380

    chore(main): release 2.50.0 (#3327)

    97dfec7

    chore: Add Clirr exemptions for Protobuf 4.27.4+ runtime (#3331)

    ae59762

    chore(main): release 2.58.2-SNAPSHOT (#3331)

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

Metadata

Metadata

Assignees

  • @yihanzhen
    yihanzhen

Labels

api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.