Support setting the operation
when using the python standard logger
#684
Labels
api: logging
Issues related to the googleapis/python-logging API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
It would be helpful if I could specify the LogEntryOperation via the
extra
argument when using the python standard logger. From the documentation here, this field is not supported.Describe the solution you'd like
Similarly to how I can specify the
labels
via theextra
argument, I would also like to be able to specify theoperation
.For example:
Describe alternatives you've considered
For now, I was able to get around it by manually monkeypatching the
google.cloud.logging_v2.handlers.handlers.CloudLoggingHandler
andgoogle.cloud.logging_v2.handlers.structured_log.StructuredLogHandler
classes to include the operation. However, I'd much prefer that the google library support this directly.Additional context
None
The text was updated successfully, but these errors were encountered: