Skip to content

Enable configuration/tags to turn off data introspection in SDK  #921

@skrawcz

Description

@skrawcz

Is your feature request related to a problem? Please describe.
Currently the SDK introspects all outputs. Sometimes, especially in the case of Parallel, this could be a really long list of things; it'd be nice to turn it off selectively.

Describe the solution you'd like
Option 1: inspect tag to skip

@tag(sdk=["skip.introspection"])
def my_func(...) -> ...:

Option 2: skip via configuration

sdk_config = {"my_func": ["skip.introspection"]}
HamiltonTracker(..., tracker_config=sdk_config) # or some config file

We'd then want these to both output some type of result that the UI could then render.
Minimally based on the type returned it could be something basic about it -- so when you got to the UI you can see that this was skipped.

Describe alternatives you've considered
N/A

Additional context
This is an optimization.

Functionality to hide sensitive information from being logged could follow a similar path -- but likely a more explicit decorator in the code would be best in this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SDKRelated to hamilton SDK for th UIUIRelated to the Hamilton UIenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions