The internal/web_example test is a nice "integration test" but it has a no Go test function. Extract the code into setup function and use that as both example and also a base for a test suite that will validate various aspects of the call like trace_id is being carried over, it does not change, that each line contains trace_id or other required attributes.
The
internal/web_exampletest is a nice "integration test" but it has a no Go test function. Extract the code into setup function and use that as both example and also a base for a test suite that will validate various aspects of the call like trace_id is being carried over, it does not change, that each line contains trace_id or other required attributes.