-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logadmin: read entry payload into original struct type #769
Labels
type: question
Request for information or clarification. Not an issue.
Comments
I have just discovered this, which tackles the same topic: https://www.jkawamoto.info/blogs/get-log-entries-from-stackdriver-logging-2/ |
You could use the code in that article, or you could use the jsonpb package to first marshal the |
yoshi-automation
added a commit
that referenced
this issue
Jan 24, 2023
This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: googleapis/go-genproto#966 Changes: chore(orchestration/airflow/service): minor docstring formatting PiperOrigin-RevId: 504261496 Source-Link: googleapis/googleapis@73b3a78 chore(oslogin): reformat protos PiperOrigin-RevId: 504098251 Source-Link: googleapis/googleapis@b0cf667 feat(trace): Add Cloud Trace v2 retry defaults for BatchWriteSpans PiperOrigin-RevId: 504068544 Source-Link: googleapis/googleapis@685d359 chore(oslogin): whitespace formatting PiperOrigin-RevId: 504040442 Source-Link: googleapis/googleapis@110d277 docs(datacatalog/lineage): fixed formatting for several literal expressions PiperOrigin-RevId: 504033274 Source-Link: googleapis/googleapis@d140569 feat(dialogflow/cx): added JSON_PACKAGE field to ExportAgentRequest PiperOrigin-RevId: 504031208 Source-Link: googleapis/googleapis@c6af392 docs(dialogflow): Reformat some comments and documentation PiperOrigin-RevId: 504029060 Source-Link: googleapis/googleapis@4d9606e feat(compute): Update Compute Engine API to revision 20230103 (#769) Source-Link: googleapis/googleapis@9fac84a fix(maps/addressvalidation): Return to grpc-only transport for C# PiperOrigin-RevId: 503381161 Source-Link: googleapis/googleapis@31bb0c8 feat(run): Adding support for encryption_key_revocation_action and encryption_key_shutdown_duration for RevisionTemplate and ExecutionTemplate docs: Documentation improvements, including clarification that v1 labels/annotations are rejected in v2 API PiperOrigin-RevId: 503293343 Source-Link: googleapis/googleapis@e3d3d63 feat(compute): Update Compute Engine API to revision 20221224 (#760) Source-Link: googleapis/googleapis@17d5613 chore(talent): fix proto formatting PiperOrigin-RevId: 503230949 Source-Link: googleapis/googleapis@55dd4d7
yoshi-automation
added a commit
that referenced
this issue
Jan 24, 2023
This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: googleapis/go-genproto#966 Changes: chore(orchestration/airflow/service): minor docstring formatting PiperOrigin-RevId: 504261496 Source-Link: googleapis/googleapis@73b3a78 chore(oslogin): reformat protos PiperOrigin-RevId: 504098251 Source-Link: googleapis/googleapis@b0cf667 feat(trace): Add Cloud Trace v2 retry defaults for BatchWriteSpans PiperOrigin-RevId: 504068544 Source-Link: googleapis/googleapis@685d359 chore(oslogin): whitespace formatting PiperOrigin-RevId: 504040442 Source-Link: googleapis/googleapis@110d277 docs(datacatalog/lineage): fixed formatting for several literal expressions PiperOrigin-RevId: 504033274 Source-Link: googleapis/googleapis@d140569 feat(dialogflow/cx): added JSON_PACKAGE field to ExportAgentRequest PiperOrigin-RevId: 504031208 Source-Link: googleapis/googleapis@c6af392 docs(dialogflow): Reformat some comments and documentation PiperOrigin-RevId: 504029060 Source-Link: googleapis/googleapis@4d9606e feat(compute): Update Compute Engine API to revision 20230103 (#769) Source-Link: googleapis/googleapis@9fac84a fix(maps/addressvalidation): Return to grpc-only transport for C# PiperOrigin-RevId: 503381161 Source-Link: googleapis/googleapis@31bb0c8 feat(run): Adding support for encryption_key_revocation_action and encryption_key_shutdown_duration for RevisionTemplate and ExecutionTemplate docs: Documentation improvements, including clarification that v1 labels/annotations are rejected in v2 API PiperOrigin-RevId: 503293343 Source-Link: googleapis/googleapis@e3d3d63 feat(compute): Update Compute Engine API to revision 20221224 (#760) Source-Link: googleapis/googleapis@17d5613 chore(talent): fix proto formatting PiperOrigin-RevId: 503230949 Source-Link: googleapis/googleapis@55dd4d7
gcf-merge-on-green bot
pushed a commit
that referenced
this issue
Jan 24, 2023
This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/966 Changes: chore(orchestration/airflow/service): minor docstring formatting PiperOrigin-RevId: 504261496 Source-Link: https://github.com/googleapis/googleapis/commit/73b3a78f2d36e537856d9552511235a91ed2cd1c chore(oslogin): reformat protos PiperOrigin-RevId: 504098251 Source-Link: https://github.com/googleapis/googleapis/commit/b0cf667c88b71f1507d289120a582bf31cb0493a feat(trace): Add Cloud Trace v2 retry defaults for BatchWriteSpans PiperOrigin-RevId: 504068544 Source-Link: https://github.com/googleapis/googleapis/commit/685d3599bb907ced432c0cc392ebcba2c04250e7 chore(oslogin): whitespace formatting PiperOrigin-RevId: 504040442 Source-Link: https://github.com/googleapis/googleapis/commit/110d277b372cb2a70f580e8bd06eb5eb7276dab3 docs(datacatalog/lineage): fixed formatting for several literal expressions PiperOrigin-RevId: 504033274 Source-Link: https://github.com/googleapis/googleapis/commit/d14056956f251fe2b7fb7e0e53c369ab0b746775 feat(dialogflow/cx): added JSON_PACKAGE field to ExportAgentRequest PiperOrigin-RevId: 504031208 Source-Link: https://github.com/googleapis/googleapis/commit/c6af392b613b435757358fac555628d84e443abd docs(dialogflow): Reformat some comments and documentation PiperOrigin-RevId: 504029060 Source-Link: https://github.com/googleapis/googleapis/commit/4d9606ecc1415ccab14796dc74ba2ffdd0633bf0 feat(compute): Update Compute Engine API to revision 20230103 (#769) Source-Link: https://github.com/googleapis/googleapis/commit/9fac84a6942bd3e95fca1ffe87018adbf560c514 fix(maps/addressvalidation): Return to grpc-only transport for C# PiperOrigin-RevId: 503381161 Source-Link: https://github.com/googleapis/googleapis/commit/31bb0c8990d3f16529787f9661eaf5550c71204a feat(run): Adding support for encryption_key_revocation_action and encryption_key_shutdown_duration for RevisionTemplate and ExecutionTemplate docs: Documentation improvements, including clarification that v1 labels/annotations are rejected in v2 API PiperOrigin-RevId: 503293343 Source-Link: https://github.com/googleapis/googleapis/commit/e3d3d63275d13364cc986e100faff16b2cf510f5 feat(compute): Update Compute Engine API to revision 20221224 (#760) Source-Link: https://github.com/googleapis/googleapis/commit/17d56133af13ea8e541f646095f3621b61ac4948 chore(talent): fix proto formatting PiperOrigin-RevId: 503230949 Source-Link: https://github.com/googleapis/googleapis/commit/55dd4d748cbc34f2d6059143d0267a1f34797d18
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have some code that uses a protobuf message as the entry payload when writing entries to Stackdriver. While writing code to read this payload back into the original type, I realized this isn't straightforward, because the payload is now a
structpb.Struct
.Is it possible to read/convert this type into my original message type? Maybe there's an existing helper library for this that I'm not seeing? Or am I stuck manually decoding the
structpb.Struct
?I'm used to marshaling/unmarshaling a
[]byte
. Is that a potential enhancement of this library, or is there a limitation in Stackdriver that prevents this?The text was updated successfully, but these errors were encountered: