Skip to content

Commit

Permalink
add spans_
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Nov 22, 2024
1 parent 4d7f38c commit b35ee1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/system-tests/request_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ void RequestHandler::on_extract_headers(const httplib::Request& req,
VALIDATION_ERROR(res, "on_extract_headers: missing `http_headers` field.");
}

datadog::tracing::SpanConfig span_cfg;
auto span = tracer_.extract_span(
utils::HeaderReader(*http_headers), span_cfg);

Expand Down
2 changes: 1 addition & 1 deletion test/system-tests/request_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RequestHandler final {
datadog::tracing::Tracer tracer_;
std::shared_ptr<ManualScheduler> scheduler_;
std::shared_ptr<DeveloperNoiseLogger> logger_;
std::unordered_map<uint64_t, datadog::tracing::Span> active_spans_;
std::unordered_map<uint64_t, datadog::tracing::Span> spans_;

#undef VALIDATION_ERROR
};

0 comments on commit b35ee1c

Please sign in to comment.