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 — Implement monitored resource for logging client · Issue #3377 · googleapis/google-cloud-python

Implement monitored resource for logging client #3377

New issue
Copy link
New issue
Copy link
Closed
Closed
Implement monitored resource for logging client#3377
Copy link
Assignees
theacodes
Labels
api: loggingIssues related to the Cloud Logging API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@theacodes
theacodes
opened on May 5, 2017
Issue body actions

Log entries can have a monitored resource associated with them as of v2 of the logging API.

  • entries.write documentation: https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/write
  • MonitoredResource reference: https://cloud.google.com/logging/docs/reference/v2/rest/v2/MonitoredResource
  • Existing tiny resource class in monitoring: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/monitoring/google/cloud/monitoring/resource.py#L159

Essentially, the _BaseEntry class should be extend to accept a resource. Helper methods such as log_text and log_struct should likely be extended to accept the resource as well.

This'll need to work with http and gax.

Activity

  1. theacodes
    added
    api: loggingIssues related to the Cloud Logging API.
    blocks-docs-samples
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on May 5, 2017
  2. jaitaiwan commented on May 8, 2017

    @jaitaiwan
    jaitaiwan
    on May 8, 2017
    More actions

    We discovered this today in dev when moving from using the app log to request_log in google app engine. Is there any way to get the resource information per ProtobufEntry even without it being part of the _BaseEntry?

  3. theacodes commented on May 8, 2017

    @theacodes
    theacodes
    on May 8, 2017
    ContributorAuthor
    More actions

    @jaitaiwan not without using the gapic layer directly.

  4. duggelz commented on May 8, 2017

    @duggelz
    duggelz
    on May 8, 2017
    More actions

    Do we have documentation anywhere of the mapping from MonitoredResource type to list of labels used? Or perhaps we don't need it, we just copy whatever we find.

  5. theacodes commented on May 9, 2017

    @theacodes
    theacodes
    on May 9, 2017
    ContributorAuthor
    More actions

    Do we have documentation anywhere of the mapping from MonitoredResource type to list of labels used? Or perhaps we don't need it, we just copy whatever we find.

    It's here: https://cloud.google.com/logging/docs/api/v2/resource-list

    We don't need to include in the client library, as it'll very quickly get out of date. We just need to accept a string and let the backend do the validation.

  6. theacodes
    closed this as completedin #3386on May 11, 2017
  7. JustinBeckwith
    assigned
    theacodes
    on Feb 1, 2021
  8. parthea
    added a commit that references this issue on Mar 9, 2026

    docs: add samples from spanner/cloud-client (#117)

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

Metadata

Metadata

Assignees

  • @theacodes
    theacodes

Labels

api: loggingIssues related to the Cloud Logging API.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.