This allows the caller to specify extra trace information that is only evaluated when tracing is enabled.