I am using Azure Log Analytics to push test results to. Example here
Like many storage services it uses a client crendential flow to obtain a short lived bearer token.
Currently the logging handler is initialized at the start of the test session, but then not called until the end of the test session. When running longer tests this causes the token to not be valued by the time it is used.