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

[chore] [exporter/elasticsearch] Setup mapping package and default encoder #37207

Closed
wants to merge 5 commits into from

Conversation

dmathieu
Copy link
Member

Description

This starts splitting up the huge model.go file into several encoder, per encoding type, with the goal to have a clean separation of concerns between each encoding type.

In order to keep things readable, this is the first of several PRs.

It:

  • Sets up the mapping package
  • Sets up a default encoder for none/raw encoding of logs and spans.

In further PRs, I will be setting up encoding of span events and upserting and metrics, as well as ECS and OTel encoders.

@dmathieu dmathieu changed the title [exporter/elasticsearch] Setup mapping package and default encoder [exporter/elasticsearch] [chore] Setup mapping package and default encoder Jan 14, 2025
@dmathieu dmathieu changed the title [exporter/elasticsearch] [chore] Setup mapping package and default encoder [chore] [exporter/elasticsearch] Setup mapping package and default encoder Jan 14, 2025
@dmathieu dmathieu marked this pull request as ready for review January 14, 2025 10:56
@dmathieu dmathieu requested a review from a team as a code owner January 14, 2025 10:56
Copy link
Contributor

@carsonip carsonip left a comment

Choose a reason for hiding this comment

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

As discussed, this PR has to rebase after #37032 merges

@dmathieu dmathieu marked this pull request as draft January 14, 2025 13:52
@dmathieu
Copy link
Member Author

The PR mentioned above is causing a lot of breaking changes, and will require more splitting before I can start touching the encoder.

@dmathieu dmathieu closed this Jan 15, 2025
@dmathieu dmathieu deleted the mapping-package branch January 15, 2025 08:36
mx-psi pushed a commit that referenced this pull request Jan 22, 2025
…al elasticsearch module (#37235)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This is the first (or the first after several attempts canceled for
various reasons) attempt to split data serialization/encoding into
multiple packages, so we can separate the module per encoding type.

See
#37207
as the previous attempt which was canceled due to another refactoring
that required more ground splitting first.

---------

Co-authored-by: Tim Rühsen <tim.ruehsen@gmx.de>
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.

3 participants