Skip to content

Apply Customized Parser Config for Individual Traces #231

Description

@fengxizhou

🚀 Motivation and context

Add support for customized parser configurations for individual traces within the HTA framework. This feature would allow users to specify custom parsing rules and settings on a per-trace basis, enhancing flexibility and enabling more granular control over trace analysis.

Description

Currently, HTA applies a global parser configuration to all input traces. This approach poses challenges when an application that requires different parser configurations.

Proposed API Changes:

class Trace:
    def __init__(
        self,
        trace_files: Optional[Union[List[str], Dict[int, str]]] = None,
        trace_dir: str = DEFAULT_TRACE_DIR,
        parser_config: Optional[ParserConfig] = None,
    ) -> None:

Alternatives

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions