Skip to content

Refactor/configuration mechanism#68

Open
stanlou wants to merge 2 commits intorefactor--protokit-native-modules-configurationfrom
refactor/configuration-mechanism
Open

Refactor/configuration mechanism#68
stanlou wants to merge 2 commits intorefactor--protokit-native-modules-configurationfrom
refactor/configuration-mechanism

Conversation

@stanlou
Copy link
Copy Markdown
Collaborator

@stanlou stanlou commented Mar 26, 2026

closes #62

@stanlou stanlou requested a review from rpanic March 26, 2026 09:46
@rpanic rpanic changed the base branch from develop to refactor--protokit-native-modules-configuration March 26, 2026 11:56
@@ -0,0 +1,24 @@
export const config = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't like this at all actually, I think we should just inline all of these values. This is because here you have no type checking directly and code suggetions (which are actually pretty big feature if you don't know what you can configure and what not)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand why you did, and ideally I'd like something like this, but in this case we should move the entire config here for it to make sense.
But this then leads to us creating 3 new files so imo we should just inline stuff for now

host: process.env.OPEN_TELEMETRY_METRICS_HOST ?? "localhost",
port: Number(process.env.OPEN_TELEMETRY_METRICS_PORT),
appendTimestamp: true,
export const createMetricsSequencerModulesConfig = (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah this too, it's the same pattern as default modules again...

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.

Implement new configuration mechanism

2 participants