Skip to content

Only send agent data for non-opentelemetry agents#79587

Merged
smith merged 7 commits intoelastic:masterfrom
smith:nls/otel-only-counts
Oct 12, 2020
Merged

Only send agent data for non-opentelemetry agents#79587
smith merged 7 commits intoelastic:masterfrom
smith:nls/otel-only-counts

Conversation

@smith
Copy link
Copy Markdown
Contributor

@smith smith commented Oct 5, 2020

Only send the count of services using the agent for OpenTelemetry agents. Exclude the full agent data like we do in Elastic agents.

This is a follow-up to #75978. See also elastic/infra#23696.

@smith smith requested a review from a team October 5, 2020 22:18
@botelastic botelastic bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Oct 5, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:apm)

@smith smith marked this pull request as draft October 5, 2020 22:20
* Support additional agent types by appending definitions in mappings.json
* (for telemetry) and the AgentName type.
*/
export type AgentName = ElasticAgentName | OpenTelemetryAgentName;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@afharo if the telemetry tools support aliases, we might have a bug. I worked around the Unknown type TypeParameter; T error thrown when extracting the updated schema by explicitly typing AgentName with the combined options from ElasticAgentName and OpenTelemetryAgentName.

* Support additional agent types by appending definitions in mappings.json
* (for telemetry) and the AgentName type.
*/
export type AgentName = ElasticAgentName | OpenTelemetryAgentName;
Copy link
Copy Markdown
Contributor

@TinaHeiligers TinaHeiligers Oct 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smith

Suggested change
export type AgentName = ElasticAgentName | OpenTelemetryAgentName;
export type AgentName =
| 'go'
| 'java'
| 'js-base'
| 'rum-js'
| 'nodejs'
| 'python'
| 'dotnet'
| 'ruby'
| 'otlp'
| 'opentelemetry/cpp'
| 'opentelemetry/dotnet'
| 'opentelemetry/erlang'
| 'opentelemetry/go'
| 'opentelemetry/java'
| 'opentelemetry/nodejs'
| 'opentelemetry/php'
| 'opentelemetry/python'
| 'opentelemetry/ruby'
| 'opentelemetry/webjs';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created #79654 as a fix to the @kbn/telemetry-tools 😉

@smith smith added v7.10.0 release_note:skip Skip the PR/issue when compiling release notes labels Oct 6, 2020
@smith
Copy link
Copy Markdown
Contributor Author

smith commented Oct 6, 2020

@elasticmachine merge upstream

@smith smith marked this pull request as ready for review October 7, 2020 03:06
@Bamieh
Copy link
Copy Markdown
Contributor

Bamieh commented Oct 8, 2020

@elasticmachine merge upstream

@smith smith force-pushed the nls/otel-only-counts branch from 2c2d9fe to 849341e Compare October 8, 2020 15:02
@smith smith requested a review from a team as a code owner October 8, 2020 15:02
Copy link
Copy Markdown
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleting fields is always good 👍

LGTM!

@Bamieh
Copy link
Copy Markdown
Contributor

Bamieh commented Oct 12, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith merged commit 6956498 into elastic:master Oct 12, 2020
@smith smith deleted the nls/otel-only-counts branch October 12, 2020 16:54
smith added a commit to smith/kibana that referenced this pull request Oct 12, 2020
smith added a commit to smith/kibana that referenced this pull request Oct 12, 2020
jloleysens added a commit to jloleysens/kibana that referenced this pull request Oct 13, 2020
…a-tier-migration

* 'master' of github.com:elastic/kibana: (34 commits)
  Line Visualization improper scaling can result in gaps elastic#79663 (elastic#80135)
  [Security Solution][Timeline] Fix SelectableTimeline search (elastic#80128)
  move field_mapping util to saved_objects plugin (elastic#79918)
  [ML] Datagrid: Ensure column content with 'boolean' schema is not capitalized (elastic#80041)
  [CI] Correctly resolve repository root for JUnit reports (elastic#80226)
  [Ingest Manager] Fix package upgrade breaking after first rollover before new data has arrived (elastic#79887)
  [Security Solution] Fix positioning of Kibana banners list inside Sec… (elastic#80124)
  add missing await to fix test (elastic#80202)
  Revert test data changed in previous commit. (elastic#79479)
  [Security Solution] [Sourcerer] Jest beef up (elastic#79907)
  Re-enable transaction duration alert story (elastic#80187)
  [npm] remove canvas dep (elastic#80185)
  [DOCS] Redirects ILM docs to Elasticsearch reference (elastic#79798)
  [APM] Catch health status error from ML (elastic#80131)
  Fix layout and remove title for add alert popover. (elastic#77633)
  [Discover] Loading spinner cleanup (elastic#79819)
  [Security Solution] [Resolver] Remove related events api (elastic#79036)
  [Ingest Manager] Remove fields from index pattern during package uninstall (elastic#80082)
  do not refetch license if signature header absents from a response (elastic#79645)
  Only send agent data for non-opentelemetry agents (elastic#79587)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/server/routes/api/nodes/register_list_route.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants