Skip to content

feature: Improve engine startup ergonomics for common bootstrap setup #2519

@lalitb

Description

@lalitb

Pre-filing checklist

  • I searched existing issues and didn't find a duplicate

Component(s)

Rust OTAP dataflow (rust/otap-dataflow/)

Is your feature request related to a problem?

Description:

As per the comment from @lquerel here.

Some engine entrypoints currently need explicit bootstrap code before startup, for example installing the rustls crypto provider. That works, but it leaks low-level setup details into binaries, examples, and tests, and makes startup requirements easier to miss or duplicate.

It would be good to have a more ergonomic way to handle this kind of common initialization in one place. As mentioned in PR discussion, this could be a small prelude/bootstrap function, or possibly an attribute macro such as #[engine::main], so callers do not need to remember and repeat the same setup manually.

This issue is to track improving that startup experience and reducing bootstrap boilerplate around engine entrypoints.

Proposed Solution

As mentioned in the description.

Alternatives Considered

None

Additional Context

None

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions