Skip to content

Log namespace id in the checkpoint logs#1387

Merged
MarinPostma merged 1 commit into
tursodatabase:mainfrom
avinassh:ns-logs
May 13, 2024
Merged

Log namespace id in the checkpoint logs#1387
MarinPostma merged 1 commit into
tursodatabase:mainfrom
avinassh:ns-logs

Conversation

@avinassh

Copy link
Copy Markdown
Member

No description provided.

Comment thread libsql-server/src/lib.rs
async fn run_periodic_checkpoint<C>(
connection_maker: Arc<C>,
period: Duration,
namespace_name: NamespaceName,

@haaawk haaawk May 13, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not used anywhere, is it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we need to pass it so that instrumentation can pick it up. This is how it logs:

2024-05-13T12:00:56.515735Z  INFO run_periodic_checkpoint{period=24000s namespace_name=default}: libsql_server: database checkpoint starts

But marin might know a better way

@MarinPostma MarinPostma added this pull request to the merge queue May 13, 2024
Merged via the queue into tursodatabase:main with commit 415df4d May 13, 2024
avinassh added a commit to avinassh/libsql that referenced this pull request May 13, 2024
@avinassh avinassh deleted the ns-logs branch May 14, 2024 15:54
avinassh added a commit to avinassh/libsql that referenced this pull request May 15, 2024
shopifyski pushed a commit to Shopify/libsql that referenced this pull request Jun 12, 2024
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