Skip to content

CDRIVER-4557 add int64 connection_id functions #1246

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
Apr 26, 2023

Conversation

kevinAlbs
Copy link
Collaborator

@kevinAlbs kevinAlbs commented Apr 25, 2023

Summary

  • Add connection_id functions returning int64:
    • mongoc_apm_command_started_get_server_connection_id_int64
    • mongoc_apm_command_succeeded_get_server_connection_id_int64
    • mongoc_apm_command_failed_get_server_connection_id_int64
  • Deprecate connection_id functions returning int32

Background & Motivation

CDRIVER-4593 and CDRIVER-4502 applied fixes to parsing connectionId to handle int32, int64, and double. No further fix was needed.

This PR intends to satisfy the requirement of DRIVERS-2503:

If the client and server connectionId fields are part of the driver's public API, you may have to add new int64 connectionId fields and deprecate the existing int32 fields.

@kevinAlbs kevinAlbs changed the title CDRIVER-4557 add int64 connection_id functions CDRIVER-4557 add int64 connection_id functions Apr 25, 2023
@kevinAlbs kevinAlbs marked this pull request as ready for review April 25, 2023 15:00
Copy link
Contributor

@eramongodb eramongodb left a comment

Choose a reason for hiding this comment

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

Minor suggestion; otherwise, LGTM.

@kevinAlbs kevinAlbs merged commit 4249c97 into mongodb:master Apr 26, 2023
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.

3 participants