Skip to content
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

feat: update recognized logging fields #766

Merged
merged 1 commit into from
Dec 6, 2024
Merged

feat: update recognized logging fields #766

merged 1 commit into from
Dec 6, 2024

Conversation

ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Dec 5, 2024

No description provided.

@ohmayr ohmayr requested review from a team as code owners December 5, 2024 17:13
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Dec 5, 2024
Comment on lines 15 to 16
"httpRequestMethod",
"httpRequestUrl" "rpcName",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per https://cloud.google.com/logging/docs/structured-logging#structured_logging_special_fields, httpRequest should be of type HttpRequest, which includes the fields requestMethod and requestURL internally.

Suggested change
"httpRequestMethod",
"httpRequestUrl" "rpcName",
"rpcName",

@ohmayr ohmayr force-pushed the update-log-fields branch from 9871f73 to 88bc82c Compare December 6, 2024 16:47
@@ -15,12 +15,13 @@
"rpcName",
"serviceName",
"credentialsType",
"credentialInfo",
"credentialsInfo",
"universeDomain",
"request",
"response",
"metadata",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the parent design doc, we should still have rpcName, right? (We're using it in the pending PR in the generator)

Copy link
Contributor Author

@ohmayr ohmayr Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we should. I see it here it in the list. Let me know if you see otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, my bad. Don't know why I didn't see it before.

@@ -15,12 +15,13 @@
"rpcName",
"serviceName",
"credentialsType",
"credentialInfo",
"credentialsInfo",
"universeDomain",
"request",
"response",
"metadata",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, my bad. Don't know why I didn't see it before.

@ohmayr ohmayr merged commit 5f80f77 into main Dec 6, 2024
44 checks passed
@ohmayr ohmayr deleted the update-log-fields branch December 6, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants