Skip to content

RUBY-3152 Collect FaaS platform info in handshake #2722

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

Merged
merged 6 commits into from
Jun 1, 2023

Conversation

jamis
Copy link
Contributor

@jamis jamis commented May 31, 2023

This PR addresses DRIVERS-2209 and DRIVERS-2623. It adds a new (optional) :env key to the client document in the handshake, describing the current FaaS environment (if any). This PR also updates the logic to truncate the client document, to keep it under the maximum document size of 512 bytes.

(Another PR is forthcoming to update the touched files to satisfy Rubocop.)

Ref: https://jira.mongodb.org/browse/RUBY-3152

Copy link

@comandeo comandeo left a comment

Choose a reason for hiding this comment

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

I really like the Truncator refactoring!

@jamis jamis merged commit dd3b99b into mongodb:master Jun 1, 2023
@jamis jamis deleted the 3152-faas-platform-info-in-handshake branch June 1, 2023 14:27
jamis added a commit that referenced this pull request Jun 1, 2023
* add environment detection logic

* add environment info, and updated truncation logic

* rubocop pass for new files

* prose tests from handshake spec

* updated truncation logic, and AWS detection logic

* minor cleanups

* linter fixes for AppMetadata

* fix the low-hanging linter fruit

* linting updates

* linting updates

* fix missed linter complaint

* fix broken tests caused by refactoring for linter
jamis added a commit to jamis/mongo-ruby-driver that referenced this pull request Jun 7, 2023
* add environment detection logic

* add environment info, and updated truncation logic

* prose tests from handshake spec

* updated truncation logic, and AWS detection logic

* minor cleanups
jamis added a commit that referenced this pull request Jul 20, 2023
* add environment detection logic

* add environment info, and updated truncation logic

* prose tests from handshake spec

* updated truncation logic, and AWS detection logic

* minor cleanups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants