-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEST] Fix compiling problem and removed -DENABLE_TEST (#2401)
- Loading branch information
Showing
14 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test_common/include/opentelemetry/test_common/ext/http/client/http_client_test_factory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
#include "opentelemetry/ext/http/client/http_client.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace ext | ||
{ | ||
namespace http | ||
{ | ||
namespace client | ||
{ | ||
class HttpClientTestFactory | ||
{ | ||
public: | ||
static std::shared_ptr<HttpClient> Create(); | ||
}; | ||
} // namespace client | ||
} // namespace http | ||
} // namespace ext | ||
OPENTELEMETRY_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...ient/nosend/http_client_factory_nosend.cc → ...client/nosend/http_client_test_factory.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifdef ENABLE_TEST | ||
# include "opentelemetry/ext/http/client/http_client.h" | ||
# include "opentelemetry/ext/http/client/http_client_factory.h" | ||
# include "opentelemetry/test_common/ext/http/client/nosend/http_client_nosend.h" | ||
#include "opentelemetry/test_common/ext/http/client/http_client_test_factory.h" | ||
#include "opentelemetry/ext/http/client/http_client.h" | ||
#include "opentelemetry/test_common/ext/http/client/nosend/http_client_nosend.h" | ||
|
||
namespace http_client = opentelemetry::ext::http::client; | ||
|
||
std::shared_ptr<http_client::HttpClient> http_client::HttpClientFactory::CreateNoSend() | ||
std::shared_ptr<http_client::HttpClient> http_client::HttpClientTestFactory::Create() | ||
{ | ||
return std::make_shared<http_client::nosend::HttpClient>(); | ||
} | ||
#endif |
6322607
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp sdk Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_BaselineBuffer/2
12283685.207366943
ns/iter3920940.399169922
ns/iter3.13
BM_LockFreeBuffer/2
5365085.601806641
ns/iter1741350.4123687744
ns/iter3.08
This comment was automatically generated by workflow using github-action-benchmark.