Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ClickHouse telemetry (AppContext.stats) #14

Merged
merged 3 commits into from
Apr 14, 2023
Merged

Conversation

ma-efremoff
Copy link
Contributor

No description provided.

@ma-efremoff ma-efremoff requested a review from resure as a code owner April 3, 2023 18:25
@ma-efremoff ma-efremoff marked this pull request as draft April 3, 2023 18:25
@ma-efremoff ma-efremoff linked an issue Apr 3, 2023 that may be closed by this pull request
@ma-efremoff ma-efremoff force-pushed the ma-efremoff/stats branch 3 times, most recently from 5cfd65f to 21fc9f3 Compare April 4, 2023 11:27
@ma-efremoff ma-efremoff marked this pull request as ready for review April 4, 2023 11:27
src/lib/telemetry/clickhouse.ts Show resolved Hide resolved
src/lib/telemetry/clickhouse.ts Outdated Show resolved Hide resolved

export function prepareBatchedQueue({
fn,
logError = console.error,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's surpress eslint warnings here, since usage of console.error is intended

src/types.ts Outdated
@@ -16,6 +16,15 @@ export interface AppConfig {
appTracingSampler?: {type: string; param: number};
appTracingAgentHost?: string;
appTracingAgentPort?: number;

telemetryChHost?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add app prefix too here?

@resure resure changed the title chore: add ClickHouse telemetry (AppContext.stats) feat: add ClickHouse telemetry (AppContext.stats) Apr 14, 2023
@resure resure merged commit 1913e8c into main Apr 14, 2023
@resure resure deleted the ma-efremoff/stats branch April 14, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClickHouse stats
2 participants