faas-flow icon indicating copy to clipboard operation
faas-flow copied to clipboard

Fass flow has an inncorrect flow name

Open ctakgh opened this issue 2 years ago • 2 comments

Hello,

When faas flow is executing, the flow name does not correspond function name. The flow name is numeric (10 in my environment) as in example below: ...2022/05/31 19:25:41 stderr: 2022/05/31 19:25:41 Using default state store (consul) 2022/05/31 19:25:41 stderr: 2022/05/31 19:25:41 Using default data store (minio) 2022/05/31 19:26:07 stderr: 2022/05/31 19:26:07 Executing flow 10 2022/05/31 19:26:07 stdout: [Request 'cab6njocq3a7feq7jk5g'] Created...

This name mismatch (10 vs function name) causes issues in flow tower, traces are notmatched.

Thank you.

ctakgh avatar May 31 '22 19:05 ctakgh

The flow name is assigned to 1st part of the IP address by getWorkflowNameFromHost function (https://github.com/faasflow/runtime/blob/ddf167f4bcfbe4136be631de2d493c1b166ee73f/controller/http/new_request_handler_wrapper.go#L73). Is this a bug? or environment issue?

ctakgh avatar Jun 16 '22 16:06 ctakgh

oh,i met the same question as you @ctakgh! @s8sg can you please help?

TYsonHe avatar Aug 25 '23 07:08 TYsonHe