Skip to content

Commit 5d12f8e

Browse files
committed
fix: get action name
1 parent ef73f51 commit 5d12f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/core/action.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ func (a *ActionDef[In, Out, Stream]) Run(ctx context.Context, input In, cb Strea
184184
// Run executes the Action's function in a new trace span.
185185
func (a *ActionDef[In, Out, Stream]) runWithTelemetry(ctx context.Context, input In, cb StreamCallback[Stream]) (output api.ActionRunResult[Out], err error) {
186186
logger.FromContext(ctx).Debug("Action.Run",
187-
"name", a.Name,
187+
"name", a.Name(),
188188
"input", fmt.Sprintf("%#v", input))
189189
defer func() {
190190
logger.FromContext(ctx).Debug("Action.Run",
191-
"name", a.Name,
191+
"name", a.Name(),
192192
"output", fmt.Sprintf("%#v", output),
193193
"err", err)
194194
}()

0 commit comments

Comments
 (0)