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

[clickhouse/exporter] Fix clickhouse exporter insert metrics data bug #30210

Merged
merged 5 commits into from
Jan 18, 2024

Conversation

Frapschen
Copy link
Contributor

@Frapschen Frapschen commented Dec 26, 2023

Description:
As the insert SQL show:

Value,
Flags,
Exemplars.FilteredAttributes,
Exemplars.TimeUnix,
Exemplars.Value,
Exemplars.SpanId,
Exemplars.TraceId) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`
)

traceIDs and spanIDs are in error order in ExecContext function:

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Where can we read about the documentation or ordering?

exporter/clickhouseexporter/exporter_metrics_test.go Outdated Show resolved Hide resolved
@Frapschen
Copy link
Contributor Author

Where can we read about the documentation or ordering?

I updated the Description, you can see it now

@Frapschen
Copy link
Contributor Author

@bogdandrutu Please review it

@bogdandrutu bogdandrutu merged commit 3db66a4 into open-telemetry:main Jan 18, 2024
85 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 18, 2024
@Frapschen Frapschen deleted the fix_ck_exporter_insert_bug branch January 19, 2024 01:59
dmitryax pushed a commit that referenced this pull request Mar 18, 2024
**Description:** <Describe what has changed.>

as
#29626 (comment)
mentioned, this PR adds an integration test for clickhouse exporter and
it brings those benefits:
- Verify tables are properly created in clickhouse after any breaking
change(filter out bug like
[this](#29573)
before merge)
- Verify if any bugs occur during data insertion like missed data or
insert into an error
column([30210](#30210))
.etc.
- Compatibility testing for `clickhouse-server:23-alpine` and
`clickhouse-server:22-alpine`

close
#29626

---------

Co-authored-by: Tyler Helmuth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants