-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[exporter/elasticsearch] Dynamically route documents by default #38500
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
Changes from 28 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
3f35e80
Update readme
carsonip 365d2d6
Add legacy config
carsonip 9287519
Add config validation
carsonip 73f16b3
Switch default *_dynamic_index to true
carsonip 0e27f5d
Add elasticsearch index attr
carsonip c820266
Remove legacy prefix/suffix
carsonip 956f573
Do not encode index attribute in otel mode
carsonip f1c544e
Test span events
carsonip 3378e02
Ignore dynamic index config
carsonip 4265639
Update readme
carsonip fd4b63a
Update validation
carsonip 963fb57
Add deprecation warning
carsonip 22b7952
Update readme
carsonip bdb75d9
Remove unused prefix/suffix
carsonip f5d1455
Rename elasticsearch._index to elasticsearch.index
carsonip 6870aee
Update docs to be specific that span events are separate documents in…
carsonip 68ac209
Update test name
carsonip bbc0b4d
Update readme
carsonip 3f6d99e
Refactor newDocumentRouter
carsonip 99db8e6
Add otel mode span event routing test
carsonip 61a3bfa
Send span events to logs_index instead of traces_index if configured
carsonip b9a944e
Make linter happy
carsonip 0187945
Clarify docs
carsonip 232a98a
Add links
carsonip 6aaa5d0
Document remove attr
carsonip c079201
Add changelog
carsonip 8338d13
Update deprecation warning
carsonip d78af32
Not use deprecated config in bench test
carsonip 5c9c85a
Fix receiver based routing overwriting data_stream.dataset
carsonip 769edb2
Address review comments
carsonip 52b89fa
Merge branch 'main' into ds-routing
carsonip bb44b7d
Update exporter/elasticsearchexporter/README.md
carsonip 4837cd3
Update exporter/elasticsearchexporter/README.md
carsonip 0d86022
Update exporter/elasticsearchexporter/README.md
carsonip fdc0087
Update exporter/elasticsearchexporter/README.md
carsonip ed8d857
Update exporter/elasticsearchexporter/README.md
carsonip 49139fc
Apply suggestions from code review
carsonip 378f81f
Update stale index config comment
carsonip b07eb95
Update otel data mode exceptions
carsonip 91112ab
Mention in addition
carsonip 7f34bdd
Merge branch 'main' into ds-routing
carsonip 87c9593
Merge branch 'main' into ds-routing
carsonip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
.chloggen/elasticsearchexporter_dynamic-routing-default.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: breaking | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: elasticsearchexporter | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Dynamically route documents by default unless `{logs,metrics,traces}_index` is non-empty | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [38361] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | ||
Overhaul in document routing. | ||
Deprecate and make `{logs,metrics,traces}_dynamic_index` config no-op. | ||
Config validation error on `{logs,metrics,traces}_dynamic_index::enabled` and `{logs,metrics,traces}_index` set at the same time, as users who rely on dynamic index should not set `{logs,metrics,traces}_index`. | ||
Remove `elasticsearch.index.{prefix,suffix}` handling. Replace it with `elasticsearch.index` handling that uses attribute value as index directly. Users rely on the previously supported `elasticsearch.index.prefix` and `elasticsearch.index.suffix` should migrate to a transform processor that sets `elasticsearch.index`. | ||
|
||
# If your change doesn't affect end users or the exported elements of any package, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [user] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Perhaps instead of repeating the statement about otel mode span events, add a paragraph after the numbered list mentioning that in otel mode, span events are considered log records and routed as such?
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.
Done in 769edb2