Update endpoint.rb

Adding msg_trace as initialization parameter with default value.