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

fix: properly bundle requests with snake_case #921

Merged
merged 1 commit into from Oct 23, 2020

Conversation

alexander-fenster
Copy link
Member

Fixes googleapis/nodejs-logging#909. In the bundling configuration the log_name field is in snake_case, while the request object has logName in camelCase, so it's not used in the bundle ID computation. Fixing this by converting all field names to camelCase, it happens once in BundleDescriptor constructor so does not affect runtime in any way.

@alexander-fenster alexander-fenster requested a review from a team as a code owner October 23, 2020 01:58
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 23, 2020
@codecov
Copy link

codecov bot commented Oct 23, 2020

Codecov Report

Merging #921 into master will decrease coverage by 0.04%.
The diff coverage is 79.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
- Coverage   88.46%   88.42%   -0.05%     
==========================================
  Files          41       41              
  Lines        6555     6583      +28     
  Branches      523      525       +2     
==========================================
+ Hits         5799     5821      +22     
- Misses        752      758       +6     
  Partials        4        4              
Impacted Files Coverage Δ
src/bundlingCalls/bundleDescriptor.ts 88.39% <79.31%> (-3.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f416f5...03ff34f. Read the comment docs.

@alexander-fenster alexander-fenster merged commit 279fb36 into master Oct 23, 2020
@alexander-fenster alexander-fenster deleted the camel-case-batching branch October 23, 2020 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect routing of log entries.
2 participants