Skip to content

ref(node): Infer orchestrion integration names#21834

Merged
mydea merged 1 commit into
developfrom
fn/infer-orchestrion-names
Jun 29, 2026
Merged

ref(node): Infer orchestrion integration names#21834
mydea merged 1 commit into
developfrom
fn/infer-orchestrion-names

Conversation

@mydea

@mydea mydea commented Jun 29, 2026

Copy link
Copy Markdown
Member

Instead of requiring us to keep this as a string list, we can infer this from the integrations that are defined.
Also small cleanup of integration names to make infernal possible (not really used right now but may be helpful to debug things in the future...)

@mydea mydea requested a review from isaacs June 29, 2026 09:48
@mydea mydea self-assigned this Jun 29, 2026
@mydea mydea requested a review from a team as a code owner June 29, 2026 09:48
@mydea mydea requested review from JPeer264 and andreiborza and removed request for a team June 29, 2026 09:48

// Same name as the OTel integration by design — when enabled, the OTel
// 'LruMemoizer' integration is omitted from the default set.
const INTEGRATION_NAME = 'LruMemoizer';

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.

q: is as const mandatory- there quite some without theas const`. If this is mandatory (or at least preferred) I could add them for the missing ones

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.

it is not mandatory, just nice to have and can make it easier when passing integrations around (as the names can then be inferred instead of just being any string). no harm if it remains non-constant in places :)

integrations: [mysqlChannelIntegration(), lruMemoizerChannelIntegration()],
replacedOtelIntegrationNames: ['Mysql', 'LruMemoizer'],
setDiagnosticsChannelInjectionLoader((): DiagnosticsChannelInjection => {
const integrations = [mysqlChannelIntegration(), lruMemoizerChannelIntegration()] as const;

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.

q: Would it make sense to move the integrations somewhere at the top of the file? Then it is easier to just add them at the top of the file

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.

I think this would change things because then it would be a side effect, it has to be in some function I suppose. we could extract it into a sub-function at the top I guess, can look at this in a follow up too :)

@mydea mydea merged commit 994e782 into develop Jun 29, 2026
192 checks passed
@mydea mydea deleted the fn/infer-orchestrion-names branch June 29, 2026 12:55
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.

2 participants