mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
25 lines
533 B
C++
25 lines
533 B
C++
#pragma once
|
|
|
|
#include <common/types.h>
|
|
#include <Common/StackTrace.h>
|
|
|
|
#include <Poco/Util/LayeredConfiguration.h>
|
|
|
|
#include <string>
|
|
|
|
/// Sends crash reports to ClickHouse core developer team via https://sentry.io
|
|
class SentryWriter
|
|
{
|
|
public:
|
|
SentryWriter() = delete;
|
|
|
|
static void initialize(Poco::Util::LayeredConfiguration & config);
|
|
static void shutdown();
|
|
static void onFault(
|
|
int sig,
|
|
const siginfo_t & info,
|
|
const ucontext_t & context,
|
|
const StackTrace & stack_trace
|
|
);
|
|
};
|