apmpackage: prepare for move to apm-data plugin #12102
Merged
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.
Motivation/summary
This is a precursor to #12066.
The undocumented, best-effort 7.x migration data stream migration pipeline has been removed. To migrate, users can install an older version and perform a stepped upgrade.
We add mappings for various fields to the integration package that were previously unmapped.
The following fields are all newly mapped as
flattened
:error.custom
error.exception.attributes
error.exception.stacktrace
error.log.stacktrace
http.request.body
(always send as a JSON object with a single field,original
)http.request.env
http.request.cookies
span.message.headers
span.stacktrace
transaction.custom
transaction.message.headers
http.{request,response}.headers
have been changed fromobject
toflattened
. Even though these were mapped asobject
type, they were inheritingdynamic: false
and thus the headers never got mapped. The result of this change is headers will be returned in fields now, ashttp.request.headers: {Content-Length: ...}
. There's no change to the_source
for these fields.http.response.headers_sent
is mapped as a boolean.transaction.span_count.started
is mapped as a long for consistency withtransaction.span_count.dropped
.The following fields are mapped as
keyword
, in line with the dynamic mapping rules of the apm-data plugin's templates:span.db.instance
span.db.type
span.db.user.name
span.db.statement
span.message.body
span.message.routing_key
transaction.message.body
transaction.message.routing_key
Checklist
apmpackage
have been made)- [ ] Documentation has been updatedHow to test these changes
Related issues
#12066