ClickHouse/src/Interpreters/OpenTelemetrySpanLog.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
901 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 OpenTelemetry::Span
2020-08-20 20:59:40 +00:00
{
OpenTelemetrySpanLogElement() = default;
OpenTelemetrySpanLogElement(const OpenTelemetry::Span & span)
: OpenTelemetry::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;
};
}