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

added a stream init time field #590

Conversation

giripriyadarshan
Copy link

@giripriyadarshan giripriyadarshan commented Dec 30, 2023

Fixes #587 .

Description

adds a feature requested

as it is part of the stream's metadata, this was the only approach I thought of

adds a stream_init_time field to LogStreamMetadata struct. the field is initialized with current epoch time


This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.
  • passes cargo build, and cargo test

cargo tests are passing, but should test once during runtime to cover any edge cases
Copy link
Contributor

github-actions bot commented Dec 30, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@giripriyadarshan
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

nitisht added a commit to parseablehq/.github that referenced this pull request Dec 30, 2023
@nitisht nitisht self-requested a review December 31, 2023 06:26
.get_whole_json(&stream_name)
.await
.unwrap()["created-at"];

Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't have to get this from object store every time. There is an in-memory map maintained at Parseable server to avoid this exact same situation. Please use the map.

Copy link
Author

Choose a reason for hiding this comment

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

resolved it in the latest commit .... now the created at data is loaded from the file either on load or once the file is created

@nitisht
Copy link
Member

nitisht commented Jan 22, 2024

@giripriyadarshan there are some more issues with the PR. We can discuss on Slack. Closing this one for now, in favor of #632

@nitisht nitisht closed this Jan 22, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add first event date to logstream stats
2 participants