Skip to content

Commit

Permalink
[BUILD] Fix default bazel build (open-telemetry#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo authored and yxue committed Dec 5, 2022
1 parent 1f61305 commit ae49dd3
Showing 1 changed file with 5 additions and 3 deletions.
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

0 comments on commit ae49dd3

Please sign in to comment.