ClickHouse/src/Interpreters/OpenTelemetrySpanLog.h

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

34 lines
929 B
C++
Raw Normal View History

2020-08-20 20:59:40 +00:00
#pragma once
#include <Interpreters/SystemLog.h>
#include <Common/OpenTelemetryTraceContext.h>
2022-07-07 09:44:19 +00:00
#include <Core/NamesAndTypes.h>
#include <Core/NamesAndAliases.h>
#include <Storages/ColumnsDescription.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 ColumnsDescription getColumnsDescription();
static NamesAndAliases getNamesAndAliases();
2020-08-20 20:59:40 +00:00
void appendToBlock(MutableColumns & columns) const;
};
2023-02-07 23:09:41 +00:00
// OpenTelemetry standardizes some Log data as well, so it's not just
2020-08-20 20:59:40 +00:00
// OpenTelemetryLog to avoid confusion.
class OpenTelemetrySpanLog : public SystemLog<OpenTelemetrySpanLogElement>
{
public:
using SystemLog<OpenTelemetrySpanLogElement>::SystemLog;
};
}