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

Add ability to send remote write 2.0 requests #124

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

saswatamcode
Copy link
Collaborator

@saswatamcode saswatamcode commented Jan 19, 2025

Based on client_golang remote write 2.0 PR

Signed-off-by: Saswata Mukherjee <[email protected]>
Comment on lines +271 to +276
switch ts := any(tss).(type) {
case []*writev2.TimeSeries:
req = any(&writev2.Request{
Timeseries: ts[i:end],
Symbols: st.Symbols(),
}).(R)
Copy link
Member

Choose a reason for hiding this comment

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

this looks scary xD

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah was experimenting. Generics work, but result in super tricky code. I'll revert back to what I had initially

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.

2 participants