Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Increment the:

## [Unreleased]

* [CODE HEALTH] Move remaining `misc-use-internal-linkage` classes/enums into
anonymous namespaces: `OtlpFileSystemBackend`/`OtlpFileOstreamBackend` in
the OTLP file exporter, `ResponseHandler`/`AsyncResponseHandler`/
`json_assign_visitor` in the Elasticsearch log exporter, and the
`TestMode`/`test_mode` enums in the OTLP functional test binaries.
[#4196](https://github.com/open-telemetry/opentelemetry-cpp/issues/4196)
* [METRICS SDK] Fix Windows metrics tail latency on the synchronous record path:
`SyncMetricStorage::attribute_hashmap_lock_` now uses `std::mutex` instead of
`common::SpinLockMutex`. The spin lock's final `sleep_for(1ms)` back-off is
Expand Down
3 changes: 3 additions & 0 deletions exporters/elasticsearch/src/es_log_record_exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ namespace exporter
{
namespace logs
{
namespace
{
/**
* This class handles the response message from the Elasticsearch request
*/
Expand Down Expand Up @@ -349,6 +351,7 @@ class AsyncResponseHandler : public http_client::EventHandler
bool console_debug_ = false;
};
#endif
} // namespace

ElasticsearchLogRecordExporter::ElasticsearchLogRecordExporter()
: ElasticsearchLogRecordExporter(ElasticsearchExporterOptions())
Expand Down
3 changes: 3 additions & 0 deletions exporters/elasticsearch/src/es_log_recordable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

namespace nlohmann
{
namespace
{
template <class T>
struct json_assign_visitor
{
Expand All @@ -53,6 +55,7 @@ struct json_assign_visitor
}
}
};
} // namespace

template <>
struct adl_serializer<opentelemetry::sdk::common::OwnedAttributeValue>
Expand Down
2 changes: 1 addition & 1 deletion exporters/otlp/src/otlp_file_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,6 @@ void ConvertListFieldToJson(nlohmann::json &value,

// NOLINTEND(misc-no-recursion) suppressing for performance as if implemented with stack needs
// Dynamic memory allocation
} // namespace

class OPENTELEMETRY_LOCAL_SYMBOL OtlpFileSystemBackend : public OtlpFileAppender
{
Expand Down Expand Up @@ -1615,6 +1614,7 @@ class OPENTELEMETRY_LOCAL_SYMBOL OtlpFileOstreamBackend : public OtlpFileAppende
private:
std::reference_wrapper<std::ostream> os_;
};
} // namespace

OtlpFileClient::OtlpFileClient(OtlpFileClientOptions &&options,
OtlpFileClientRuntimeOptions &&runtime_options)
Expand Down
3 changes: 3 additions & 0 deletions functional/otlp/func_grpc_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ const int TEST_FAILED = 1;
Command line parameters.
*/

namespace
{
enum class TestMode : std::uint8_t
{
kNone,
kHttp,
kHttps
};
} // namespace

static bool opt_help = false;
static bool opt_list = false;
Expand Down
3 changes: 3 additions & 0 deletions functional/otlp/func_http_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ const int TEST_FAILED = 1;
Command line parameters.
*/

namespace
{
enum test_mode : std::uint8_t
{
MODE_NONE,
MODE_HTTP,
MODE_HTTPS
};
} // namespace

static bool opt_help = false;
static bool opt_list = false;
Expand Down
Loading