forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUILD] Fix default bazel build (open-telemetry#1816)
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
test_common/src/http/client/nosend/http_client_factory_nosend.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,13 +1,15 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#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" | ||
#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" | ||
|
||
namespace http_client = opentelemetry::ext::http::client; | ||
|
||
std::shared_ptr<http_client::HttpClient> http_client::HttpClientFactory::CreateNoSend() | ||
{ | ||
return std::make_shared<http_client::nosend::HttpClient>(); | ||
} | ||
#endif |