Let users specify the arguments that were given to a function, and have it show up in the stacktrace.
func (s *service) someMethod(ctx context.Context, arg1 string, arg2 int) error {
ctx = s.notifier.Trace(ctx, arg1, arg2)
// ... rest of the logic
}
Can extract the method name automatically, but this time we can attach argument values in the stacktrace. Or maybe this is maybe just a shorthand for doing breadcrumbs?
Let users specify the arguments that were given to a function, and have it show up in the stacktrace.
Can extract the method name automatically, but this time we can attach argument values in the stacktrace. Or maybe this is maybe just a shorthand for doing breadcrumbs?