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

apmpackage: copy full field hierarchy #5947

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

axw
Copy link
Member

@axw axw commented Aug 16, 2021

Motivation/summary

Fix integration package index template mappings by copying the full field hierarchy to the integration package, instead of just flattened leaf fields. Copying only leaf fields means we miss inherited group properties such as dynamic.

  • set a default dynamic property for each data stream mapping
  • add ecs.version to base fields

Checklist

How to test these changes

  1. Install the integration
  2. Run apm-server with data streams (e.g. -E apm-server.data_streams.enabled=true)
  3. Send some HTTP transactions with request headers, check that APM Server indexes them successfully
  4. Check that the request headers are not indexed

Related issues

#5707

Copy the full field hierarchy to the integration package, instead of
just leaf fields. Copying only leaf fields means we miss inherited group
properties such as `dynamic`.

Set a default `dynamic` property for each data stream mapping.
@axw axw force-pushed the integration-dynamic-false branch from 173331a to d4ba1ff Compare August 16, 2021 06:43
@axw axw marked this pull request as ready for review August 16, 2021 06:43
@axw axw requested a review from a team August 16, 2021 06:43
@apmmachine
Copy link
Contributor

apmmachine commented Aug 16, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-08-16T06:43:41.039+0000

  • Duration: 42 min 21 sec

  • Commit: d4ba1ff

Test stats 🧪

Test Results
Failed 0
Passed 5922
Skipped 14
Total 5936

Trends 🧪

Image of Build Times

Image of Tests

@axw axw requested a review from simitt August 16, 2021 07:55
@axw axw merged commit 03d4907 into elastic:master Aug 16, 2021
@axw axw deleted the integration-dynamic-false branch August 16, 2021 11:38
mergify bot pushed a commit that referenced this pull request Aug 16, 2021
Copy the full field hierarchy to the integration package, instead of
just leaf fields. Copying only leaf fields means we miss inherited group
properties such as `dynamic`.

Set a default `dynamic` property for each data stream mapping.

(cherry picked from commit 03d4907)

# Conflicts:
#	changelogs/head.asciidoc
axw added a commit that referenced this pull request Aug 16, 2021
* apmpackage: copy full field hierarchy (#5947)

Copy the full field hierarchy to the integration package, instead of
just leaf fields. Copying only leaf fields means we miss inherited group
properties such as `dynamic`.

Set a default `dynamic` property for each data stream mapping.

(cherry picked from commit 03d4907)

# Conflicts:
#	changelogs/head.asciidoc

* Delete head.asciidoc

Co-authored-by: Andrew Wilkins <[email protected]>
@simitt simitt self-assigned this Aug 31, 2021
@simitt
Copy link
Contributor

simitt commented Aug 31, 2021

Tested with BC3 - works as expected with package 0.4.0

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