ClickHouse/src/Interpreters/OpenTelemetrySpanLog.h

32 lines
856 B
C++
Raw Normal View History

2020-08-20 20:59:40 +00:00
#pragma once
#include <Interpreters/SystemLog.h>
2022-07-07 09:44:19 +00:00
#include <Core/NamesAndTypes.h>
#include <Core/NamesAndAliases.h>
2020-08-20 20:59:40 +00:00
namespace DB
{
struct OpenTelemetrySpanLogElement : public Span
2020-08-20 20:59:40 +00:00
{
OpenTelemetrySpanLogElement() = default;
OpenTelemetrySpanLogElement(const Span & span)
: Span(span) {}
2020-08-20 20:59:40 +00:00
static std::string name() { return "OpenTelemetrySpanLog"; }
static NamesAndTypesList getNamesAndTypes();
static NamesAndAliases getNamesAndAliases();
2020-08-20 20:59:40 +00:00
void appendToBlock(MutableColumns & columns) const;
static const char * getCustomColumnList() { return nullptr; }
2020-08-20 20:59:40 +00:00
};
// OpenTelemetry standartizes some Log data as well, so it's not just
// OpenTelemetryLog to avoid confusion.
class OpenTelemetrySpanLog : public SystemLog<OpenTelemetrySpanLogElement>
{
public:
using SystemLog<OpenTelemetrySpanLogElement>::SystemLog;
};
}