-
Notifications
You must be signed in to change notification settings - Fork 2.8k
elasticsearchexporter: mapping mode from scope #39110
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
elasticsearchexporter: mapping mode from scope #39110
Conversation
f9f842f
to
14b98fe
Compare
14b98fe
to
e71b432
Compare
Add support for specifying the mapping mode as a scope attribute, "elastic.mapping.mode". If specified, this overrides X-Elastic-Mapping-Mode. Simplify StartSession by removing the error result, since the only time it can fail is if the BulkIndexerConfig is invalid, and we ensure that cannot happen. We now also pre-create arrays of encoders, routers, and data point hashers. This simplifies and speeds up acquisition of these during execution.
e71b432
to
6cf7592
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the late review, totally missed the ping. lgtm at a high level. Can you rebase and resolve the conflicts? There should be some conflicting changes on main now
@carsonip done, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neat! thanks
Description
Add support for specifying the mapping mode as a scope attribute, "elastic.mapping.mode". If specified, this overrides both X-Elastic-Mapping-Mode from client metadata as well as the default mode specified through collector configuration.
Simplify StartSession by removing the error result, since the only time it can fail is if the BulkIndexerConfig is invalid, and we ensure that cannot happen. We now also pre-create arrays of encoders, routers, and data point hashers; this simplifies and speeds up acquisition of these during execution.
This is based on #38667
Link to tracking issue
N/A
Testing
Added unit tests.
Documentation
Updated README.