Disable otel warnings in shared_functions.hpp (#5494)
This commit is contained in:
Родитель
ce6b3bd124
Коммит
acb6d97f7c
|
@ -14,12 +14,25 @@
|
|||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// The OpenTelemetry headers generate a couple of warnings on MSVC in the OTel 1.2 package, suppress
|
||||
// the warnings across the includes.
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4100)
|
||||
#pragma warning(disable : 4244)
|
||||
#pragma warning(disable : 6323) // Disable "Use of arithmetic operator on Boolean type" warning.
|
||||
#endif
|
||||
|
||||
#include <opentelemetry/logs/provider.h>
|
||||
#include <opentelemetry/sdk/logs/logger.h>
|
||||
#include <opentelemetry/sdk/trace/tracer.h>
|
||||
#include <opentelemetry/trace/provider.h>
|
||||
#include <opentelemetry/trace/semantic_conventions.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
opentelemetry::nostd::shared_ptr<opentelemetry::logs::Logger> GetLogger();
|
||||
|
||||
opentelemetry::nostd::shared_ptr<opentelemetry::trace::Tracer> GetTracer();
|
||||
|
|
Загрузка…
Ссылка в новой задаче