Skip to content

feat(NODE-5452): Logging Cosmos Document DB Info Message #3902

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 13 commits into from
Nov 3, 2023

Conversation

aditi-khare-mongoDB
Copy link
Contributor

@aditi-khare-mongoDB aditi-khare-mongoDB commented Oct 19, 2023

Description

A user connecting to a ConnectionString object while using a Cosmos/DocumentDB host will not have the same client functionality as a user using a genuine host. After these changes are merged, when a user provides a non-genuine host, a info-level Client component log will be outputted to the mongodbLogPath.

What is changing?

If Standardized Logging is turned on and environment settings allow for Client info-level logs, when a user provides one or more CosmosDB/DocumentDB hosts, an info-level client component log(s) will be outputted to the stream provided in mongodbLogPath.

Is there new documentation needed for these changes?

Yes, it should be included in the documentation for Standardized Logging when Standardized Logging is released.

What is the motivation for this change?

To notify users when we detect a CosmosDB/DocumentDB host, since they have limited functionality in MongoClient.

Release Highlight

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken changed the title feat(Node 5452): Logging Cosmos Document DB Info Message feat(NODE-5452): Logging Cosmos Document DB Info Message Oct 19, 2023
@aditi-khare-mongoDB aditi-khare-mongoDB marked this pull request as ready for review October 27, 2023 19:14
@durran durran self-assigned this Oct 30, 2023
@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Oct 30, 2023
Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

Can we rebase against main and resolve the conflicts so we get a clean diff?

@aditi-khare-mongoDB aditi-khare-mongoDB force-pushed the NODE-5452/cosmos-document-db-logging branch from 8df3fe9 to ba0cc12 Compare October 31, 2023 15:18
@aditi-khare-mongoDB aditi-khare-mongoDB force-pushed the NODE-5452/cosmos-document-db-logging branch from ba0cc12 to 57036c0 Compare October 31, 2023 15:30
durran
durran previously approved these changes Nov 2, 2023
@durran durran added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Nov 2, 2023
@durran durran merged commit bb5fa43 into main Nov 3, 2023
@durran durran deleted the NODE-5452/cosmos-document-db-logging branch November 3, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants