fix: revert frequency change and add logs #3718
Closed
+99
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request makes several improvements to the StackOverflow integration, primarily enhancing logging for better observability, adjusting the integration's polling frequency, and updating a configuration constant. These changes aim to make the integration more transparent, responsive, and configurable.
Logging and Observability Improvements:
generateStreamshandler ingenerateStreams.ts, including logs for start, per-tag and per-keyword stream publishing, and completion, along with relevant metadata such as integration ID, tags, keywords, and number of streams published.Configuration and Scheduling Adjustments:
checkEveryinterval in the StackOverflow integration descriptor from 6 hours to 1 hour, making the integration poll for new data more frequently (index.ts).STACKOVERFLOW_MAX_RETROSPECT_IN_HOURSconstant from 7 to 5 hours, decreasing the retrospective window for data fetching (types.ts).Note
Enhances StackOverflow integration with detailed logs, enforces presence of API key, shortens polling interval to 1h, and reduces retrospect window to 5h.
api/getQuestions.ts,api/getQuestionsByKeywords.ts,generateStreams.ts, andprocessStream.ts(request details with masked key, response metrics, stream publishing, and counts).platformSettings?.key; log checks and throw explicit error when key is missing.checkEveryinindex.tsfrom360to60(poll hourly).STACKOVERFLOW_MAX_RETROSPECT_IN_HOURSintypes.tsfrom7to5.Written by Cursor Bugbot for commit f962c4f. This will update automatically on new commits. Configure here.