Skip to content

Commit

Permalink
Preemptively move files to independent folder
Browse files Browse the repository at this point in the history
  • Loading branch information
benibus committed Feb 7, 2024
1 parent 80b67a1 commit 5fa49ee
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
3 changes: 2 additions & 1 deletion cpp/src/arrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ set(ARROW_SRCS
status.cc
table.cc
table_builder.cc
telemetry/logging.cc
tensor.cc
tensor/coo_converter.cc
tensor/csf_converter.cc
Expand Down Expand Up @@ -236,7 +237,6 @@ set(ARROW_SRCS
util/key_value_metadata.cc
util/memory.cc
util/mutex.cc
util/otel_logging.cc
util/ree_util.cc
util/string.cc
util/string_builder.cc
Expand Down Expand Up @@ -853,6 +853,7 @@ add_subdirectory(array)
add_subdirectory(c)
add_subdirectory(compute)
add_subdirectory(io)
add_subdirectory(telemetry)
add_subdirectory(tensor)
add_subdirectory(util)
add_subdirectory(vendored)
Expand Down
23 changes: 23 additions & 0 deletions cpp/src/arrow/telemetry/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

#
# arrow_telemetry
#

# Headers: top level
arrow_install_all_headers("arrow/telemetry")
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include <chrono>

#include "arrow/result.h"
#include "arrow/telemetry/logging.h"
#include "arrow/util/io_util.h"
#include "arrow/util/logging.h"
#include "arrow/util/otel_logging.h"

#ifdef ARROW_WITH_OPENTELEMETRY
#include <opentelemetry/exporters/ostream/log_record_exporter.h>
Expand All @@ -43,8 +43,7 @@
#endif

namespace arrow {
namespace util {
namespace logging {
namespace telemetry {
#ifdef ARROW_WITH_OPENTELEMETRY

namespace otel = ::opentelemetry;
Expand Down Expand Up @@ -228,6 +227,5 @@ Status LoggingEnvironment::Initialize(const LoggingOptions&) { return Status::OK

std::unique_ptr<Logger> MakeNoopLogger() { return std::make_unique<NoopLogger>(); }

} // namespace logging
} // namespace util
} // namespace telemetry
} // namespace arrow
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
#include "arrow/util/visibility.h"

namespace arrow {
namespace util {
namespace logging {
namespace telemetry {

using LogLevel = ArrowLogLevel;
using LogLevel = util::ArrowLogLevel;

/// \brief Attributes to be set in an OpenTelemetry resource
///
Expand Down Expand Up @@ -102,6 +101,5 @@ class ARROW_EXPORT LoggingEnvironment {
static inline std::unique_ptr<Logger> logger_{};
};

} // namespace logging
} // namespace util
} // namespace telemetry
} // namespace arrow

0 comments on commit 5fa49ee

Please sign in to comment.