Skip to content

Add per event pipeline #227

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

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

leehinman
Copy link
Contributor

Adds pipeline to the BulkIndexItem. This will be necessary to implement open-telemetry/opentelemetry-collector-contrib#37419

@leehinman leehinman requested a review from a team as a code owner January 23, 2025 21:07
Copy link
Member

@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.

thanks. an issue with the test, otherwise lgtm

@@ -165,3 +165,36 @@ func TestDynamicTemplates(t *testing.T) {
require.NoError(t, err)
require.Equal(t, int64(2), stat.Indexed)
}

func TestPipeline(t *testing.T) {
client := docappendertest.NewMockElasticsearchClient(t, func(w http.ResponseWriter, r *http.Request) {
Copy link
Member

Choose a reason for hiding this comment

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

would be good to assert that pipeline is successfully passed in the request

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the test so it checks that the pipelines made it.

@leehinman leehinman force-pushed the add_pipeline_per_event branch from bc7a950 to 182d33a Compare January 24, 2025 19:24
@leehinman
Copy link
Contributor Author

@carsonip Looks like reviews and CI checks are green. I don't have write access to the repo so I can't merge, can you?

@carsonip carsonip merged commit 95f67c5 into elastic:main Jan 28, 2025
4 checks passed
@endorama endorama mentioned this pull request Feb 4, 2025
1 task
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.

3 participants