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(Logging): Add examples for providing logs #74

Merged
merged 12 commits into from
Oct 30, 2024

Conversation

fivetran-satvikpatil
Copy link
Contributor

@fivetran-satvikpatil fivetran-satvikpatil commented Oct 27, 2024

T-818866

Description

Added example for providing logs via std::out stream

Testing

Source Connector

  • Python Connector
Screenshot 2024-10-27 at 9 36 08 PM
  • Java Connector
Screenshot 2024-10-27 at 9 41 47 PM
  • Nodejs Connector
Screenshot 2024-10-27 at 9 37 36 PM
  • Golang Connector
Screenshot 2024-10-30 at 2 38 20 PM

Destination Connector

  • Java Destination Connector
Screenshot 2024-10-27 at 9 49 59 PM
  • Python Destination Connector
    Screenshot 2024-10-27 at 9 55 58 PM

Copy link
Contributor

@fivetran-rishabhghosh fivetran-rishabhghosh left a comment

Choose a reason for hiding this comment

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

Introduce variables for all languages

@fivetran-rishabhghosh
Copy link
Contributor

fivetran-rishabhghosh commented Oct 28, 2024

Other changes look good

Copy link
Collaborator

@manjutapali manjutapali left a comment

Choose a reason for hiding this comment

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

looks good

examples/destination/python/main.py Outdated Show resolved Hide resolved
@@ -112,4 +117,8 @@ public void writeBatch(WriteBatchRequest request, StreamObserver<WriteBatchRespo
responseObserver.onNext(WriteBatchResponse.newBuilder().setSuccess(true).build());
responseObserver.onCompleted();
}

private void print(String level, String message){
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: rename logMessage

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated it

@fivetran-satvikpatil
Copy link
Contributor Author

Created a follow-up ticket to improve golang example: https://fivetran.height.app/T-822463

@fivetran-satvikpatil fivetran-satvikpatil merged commit dccea0e into main Oct 30, 2024
0 of 2 checks passed
@fivetran-satvikpatil fivetran-satvikpatil deleted the satvik/logging-example branch October 30, 2024 09:34
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