You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can think of crossplane-runtime as a "Go SDK" of sorts for parts of Crossplane - i.e. core and providers. We have our own error and logging libraries there. Should Functions use those libraries? Use copies/aliases from this SDK? Use the stdlib or something else?
How could Crossplane help solve your problem?
We should figure out what we want to do here. I can see a case for sticking closer to the stdlib here given that now Go can do the core things our libraries were originally created to do for us (i.e. wrap errors, and emit structured logs).
Some thoughts:
Admittedly I personally prefer the "UX" for the crossplane-runtime libraries to the stdlib alternatives.
If stdlib is good enough for Functions, is it good enough for Crossplane now too?
The text was updated successfully, but these errors were encountered:
Given that we are already importing github.com/crossplane/crossplane-runtime to access things such as composed/composite resources, there is no real value in switching to the stdlib.
@phisco WDYT about adding logging/errors packages to the SDK that just mirror/call through to c/crossplane-runtime? That at lease keeps Functions slightly decoupled and gives us the option to change how the SDK is implemented in future.
What problem are you facing?
https://pkg.go.dev/github.com/crossplane/[email protected]/pkg/errors
https://pkg.go.dev/github.com/crossplane/[email protected]/pkg/logging
You can think of crossplane-runtime as a "Go SDK" of sorts for parts of Crossplane - i.e. core and providers. We have our own error and logging libraries there. Should Functions use those libraries? Use copies/aliases from this SDK? Use the stdlib or something else?
How could Crossplane help solve your problem?
We should figure out what we want to do here. I can see a case for sticking closer to the stdlib here given that now Go can do the core things our libraries were originally created to do for us (i.e. wrap errors, and emit structured logs).
Some thoughts:
The text was updated successfully, but these errors were encountered: