-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[APM] Additional data telemetry changes #71112
Merged
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
043c722
[APM] Add more bounds to telemetry tasks
smith 1ad64e3
Merge remote-tracking branch 'upstream/master' into nls/bounded-tasks
smith 924d913
Merge remote-tracking branch 'upstream/master' into nls/bounded-tasks
smith 99c8691
update serializer
smith 5e403b9
Use full path for mapping snapshot
smith 374d6a3
Cloud properties
smith 0786190
remove script; update docs; add schema
smith 6982972
Merge remote-tracking branch 'upstream/master' into nls/bounded-tasks
smith 81bce44
Updates based on Søren's feedback
smith a092d45
Fix test name; add country code cardinality
smith 1246d52
Merge remote-tracking branch 'upstream/master' into nls/bounded-tasks
smith 8fde7b6
Docs update
smith ec33c3b
More stuff
smith 6477c06
More stuff
smith 0ff1adb
Merge remote-tracking branch 'upstream/master' into nls/bounded-tasks
smith 331ea8a
snapshot update
smith 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
1,877 changes: 952 additions & 925 deletions
1,877
x-pack/plugins/apm/common/__snapshots__/apm_telemetry.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
x-pack/plugins/apm/scripts/merge-telemetry-mapping/index.ts
This file was deleted.
Oops, something went wrong.
This file contains 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.
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.
NIT: In order for the Kibana Telemetry team to be notified, devs need to run
node scripts/telemetry_check.js --fix
. It will update the file containing all the schemas (and owned by the Telemetry team).At the moment, APM is excluded so it doesn't fail (
kibana/x-pack/.telemetryrc.json
Line 7 in 637a0d9
I tried with removing the exclusion but it fails.
For progress, I'd say we merge this PR and tackle this issue separately 👍
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.
It looks like the reason it's failing is because file with the usage collector call is parsed directly so the whole schema has to be there as a literal, whereas we're calling a function
schema: getApmTelemetryMapping()
, which it fails to parse as a valid schema.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.
@smith there are two other issues I've found thus far while trying to resolve the
telemetry-check
failure:Here's the schema I got from your mapping
(note: there are a few improvements we also need to make to the allowed schema types, including allowing
ignore_above
forkeyword
fields)2. The usageCollector is complaining of a missing
type
, even thoughtype: "apm"
is there. I think it's because the collector isn't typed explicitly but we'll figure all these issues out in #70180