Skip to content

[8.19] [Discover][Oblt] Display Attributes doc viewer tab for Observability (#222391)#224219

Merged
MiriamAparicio merged 1 commit intoelastic:8.19from
MiriamAparicio:backport/8.19/pr-222391
Jun 17, 2025
Merged

[8.19] [Discover][Oblt] Display Attributes doc viewer tab for Observability (#222391)#224219
MiriamAparicio merged 1 commit intoelastic:8.19from
MiriamAparicio:backport/8.19/pr-222391

Conversation

@MiriamAparicio
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…lastic#222391)

Closing elastic#221919

## Summary

In this PR, I'm adding the Attributes doc viwer tab for the
**Observability solution view.**
The tab should be visible for all discover documents that have any of
the following prefixes

```
const attributesPrefixes = ['attributes.', 'scope.attributes.', 'resource.attributes.'];
```

Also,
- Group the observability document profile providers into one file

> [!IMPORTANT]
> The content of the tab is not inlcuded in this PR. it will be part of
this [ticket](elastic#221927)

## Additional changes

For the existing profiles, logs, traces I updated the condition to check
the solution

From `params.rootContext.profileId === OBSERVABILITY_ROOT_PROFILE_ID` to
`params.rootContext.solutionType === SolutionType.Observability`

IMO both are  prone to errors.

- As I'm extending the root profile, the above statement is not true. it
returns the new extended profile ID
- Also, if we add more extensions to the root profile and we add another
solutionType by mistake the profiles won't work

I updated the type
https://github.com/elastic/kibana/pull/222391/files#diff-ff7a53f0c234902226be3e34978326985dfffadabb8ae722b6c3fc2115085d11R14
but it might not be enough.

## Test
#### How to generate OTel data
- Follow
https://github.com/smith/elastic-stack-docker-compose?tab=readme-ov-file#elastic-stack-docker-compose

#### How to test
- Make sure your solution view is Observability
- update your `kibana.yaml`

```
discover.experimental.enabledProfiles:
   - observability-root-profile-with-attributes-tab
   #  if you want to test it with the additional profiles add the following to your `kibana.yaml`
   - observability-traces-data-source-profile
   - observability-traces-transaction-document-profile
   - observability-traces-span-document-profile
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit cf57a85)
@MiriamAparicio MiriamAparicio merged commit b700172 into elastic:8.19 Jun 17, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #11 / Category can submit without setting a category

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 1352 1356 +4

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 1.1MB 1.1MB +764.0B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

4 participants