Mike Atlas12/16/2022, 5:35 PM
to add a member to the
without using a resource definition? I'm considering ways to implement some metrics and pretty much want the dependency to always be available just like the
member is in the context.
jamie12/16/2022, 5:44 PM
object for each op/asset and there isn’t a way to customize how that context is created. one thing you could consider is writing a custom decorator that wraps
that always adds a
for the member you want to add. then that would be available to all of your ops and assets
Mike Atlas12/16/2022, 5:49 PM
jamie12/16/2022, 5:52 PM
Mike Atlas12/16/2022, 5:53 PM
object and extend it with my own methods to log metrics?
jamie12/16/2022, 6:06 PM
Mike Atlas12/16/2022, 6:09 PM
User-defined custom log levels are not supported, and calls to, e.g.,hmm maybe not ahahaor
context.log.tracewill result in hard exceptions at runtime.
level (or any other level) I could then pipe in a json string of metrics, but that's gross
jamie12/16/2022, 6:40 PM