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

airbyte-lib: Fix telemetry for streaming #34955

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

flash1293
Copy link
Contributor

As discussed, currently telemetry has the following issues:

  • Even for failed syncs, a success event is tracked
  • Number of records is not tracked when get_records is used

This PR fixes both problems:

  • Make sure the record counter is always increased, no matter whether the records are sent to the cache or not by moving it into the generic _execute method
  • Make sure the success event is only tracked if no failure event is tracked for a single sync call

This also works if get_records doesn't exhaust the record iterator - if it falls out of scope before all records are read, it will be considered a successful sync with the number of records that have been fetched so far.

Copy link

vercel bot commented Feb 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Feb 7, 2024 3:24pm

Copy link
Collaborator

@aaronsteers aaronsteers left a comment

Choose a reason for hiding this comment

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

Looks great. 🙏

@aaronsteers aaronsteers merged commit 70d1942 into master Feb 9, 2024
22 checks passed
@aaronsteers aaronsteers deleted the flash1293/airbyte-lib-telemetry-fix branch February 9, 2024 00:36
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 21, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants