Skip to content

Commit

Permalink
Merge pull request #83 from DataDog/cgilmour/operation-name
Browse files Browse the repository at this point in the history
Make operation_name_override only apply to span name
  • Loading branch information
willgittoes-dd authored Jan 30, 2019
2 parents ea185e7 + d9e4f29 commit 2dcf6d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/span.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ void Span::FinishWithOptions(
if (operation_name_override_ != "") {
span_->meta[operation_name_tag] = span_->name;
span_->name = operation_name_override_;
span_->resource = operation_name_override_;
}
// Apply special tags.
// If we add any more cases; then abstract this. For now, KISS.
Expand Down
2 changes: 1 addition & 1 deletion test/span_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ TEST_CASE("span") {
REQUIRE(result->meta ==
std::unordered_map<std::string, std::string>{{"operation", "original span name"}});
REQUIRE(result->name == "overridden operation name");
REQUIRE(result->resource == "overridden operation name");
REQUIRE(result->resource == "original resource");
REQUIRE(result->service == "original service");
REQUIRE(result->type == "original type");
}
Expand Down

0 comments on commit 2dcf6d4

Please sign in to comment.