#pragma once #include #include #include namespace DB { struct OpenTelemetrySpanLogElement : public OpenTelemetry::Span { OpenTelemetrySpanLogElement() = default; OpenTelemetrySpanLogElement(const OpenTelemetry::Span & span) : OpenTelemetry::Span(span) {} static std::string name() { return "OpenTelemetrySpanLog"; } static NamesAndTypesList getNamesAndTypes(); static NamesAndAliases getNamesAndAliases(); void appendToBlock(MutableColumns & columns) const; static const char * getCustomColumnList() { return nullptr; } }; // OpenTelemetry standartizes some Log data as well, so it's not just // OpenTelemetryLog to avoid confusion. class OpenTelemetrySpanLog : public SystemLog { public: using SystemLog::SystemLog; }; }