sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

Retry Policy Loglevel

Open lunne opened this issue 4 years ago • 3 comments

When you use temporal retry in a way that a retry is expected and not a error it would be good to be able to set the level for the event.

maybe pass something in the activity options?

lunne avatar Jun 13 '21 18:06 lunne

Can you explain your use case better? Is it possible that we need to permanently adjust log levels for some messages?

vitarb avatar Jun 21 '21 16:06 vitarb

We send a message to a external API to check the status of a object. One status returns a non-retryable error and all other will return a retryable application error.

this way we can poll the api until we get one of the two statuses. We expect it to retry a couple of times each time before the activity completes.

So maybe if we could specify in the Golang application error that it should not log it would be good?

lunne avatar Jul 05 '21 10:07 lunne