diff --git a/example/tutorial/CMakeLists.txt b/example/tutorial/CMakeLists.txt index a8859a8..e72cce7 100644 --- a/example/tutorial/CMakeLists.txt +++ b/example/tutorial/CMakeLists.txt @@ -2,4 +2,5 @@ if (BUILD_MOCKTRACER AND BUILD_SHARED_LIBS) include_directories(../../mocktracer/include) add_executable(tutorial-example tutorial-example.cpp) target_link_libraries(tutorial-example opentracing_mocktracer) + add_test(tutorial-example tutorial-example) endif() diff --git a/mocktracer/include/opentracing/mocktracer/tracer.h b/mocktracer/include/opentracing/mocktracer/tracer.h index e8ca8c4..27a2c7c 100644 --- a/mocktracer/include/opentracing/mocktracer/tracer.h +++ b/mocktracer/include/opentracing/mocktracer/tracer.h @@ -13,7 +13,7 @@ namespace mocktracer { struct PropagationOptions { // Specifies what key to use when injecting and extracting span context. - std::string propagation_key = "x-ot_span_context"; + std::string propagation_key = "x-ot-span-context"; // If inject_error_code is non-zero, MockTracer::Inject fails with // inject_error_code.