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

[APM] Service Map: Not Defined option doesn't work properly #77332

Closed
sorenlouv opened this issue Sep 14, 2020 · 5 comments · Fixed by #77483
Closed

[APM] Service Map: Not Defined option doesn't work properly #77332

sorenlouv opened this issue Sep 14, 2020 · 5 comments · Fixed by #77483
Assignees
Labels
apm:service-maps Service Map feature in APM bug Fixes for quality problems that affect the customer experience Team:APM All issues that need APM UI Team support v7.10.0

Comments

@sorenlouv
Copy link
Member

There seems to be a problem displaying the service map for services without environment.

When "All" environments is selected the services and the outgoing calls are correctly displayed:
image.png

However, if "Not defined" is selected none of the outgoing requests are displayed:
image.png

@sorenlouv sorenlouv added [zube]: Inbox apm:service-maps Service Map feature in APM Team:APM All issues that need APM UI Team support labels Sep 14, 2020
@elasticmachine
Copy link
Contributor

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

@dgieselaar
Copy link
Member

Does this service (elastic-co-rum-test) not have an environment?

@sorenlouv
Copy link
Member Author

Does this service (elastic-co-rum-test) not have an environment?

If it did, it should show up in the environment selector (unless that's where the bug lies)

@sorenlouv
Copy link
Member Author

Possibly because ENVIRONMENT_NOT_DEFINED is not being handled in two places:

Good catch. We should use this logic for filtering by environment:

export function getEnvironmentUiFilterES(environment?: string): ESFilter[] {
if (!environment) {
return [];
}
if (environment === ENVIRONMENT_NOT_DEFINED.value) {
return [{ bool: { must_not: { exists: { field: SERVICE_ENVIRONMENT } } } }];
}
return [{ term: { [SERVICE_ENVIRONMENT]: environment } }];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:service-maps Service Map feature in APM bug Fixes for quality problems that affect the customer experience Team:APM All issues that need APM UI Team support v7.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants