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
|
|
|
|
{
|
|
|
|
|
2022-08-25 12:20:13 +00:00
|
|
|
struct OpenTelemetrySpanLogElement : public OpenTelemetry::Span
|
2020-08-20 20:59:40 +00:00
|
|
|
{
|
2020-11-09 15:07:38 +00:00
|
|
|
OpenTelemetrySpanLogElement() = default;
|
2022-08-25 12:20:13 +00:00
|
|
|
OpenTelemetrySpanLogElement(const OpenTelemetry::Span & span)
|
|
|
|
: OpenTelemetry::Span(span) {}
|
2020-11-09 15:07:38 +00:00
|
|
|
|
2020-08-20 20:59:40 +00:00
|
|
|
static std::string name() { return "OpenTelemetrySpanLog"; }
|
2021-06-28 11:42:21 +00:00
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
static NamesAndAliases getNamesAndAliases();
|
2020-08-20 20:59:40 +00:00
|
|
|
void appendToBlock(MutableColumns & columns) const;
|
2022-04-17 21:53:28 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|