Skip to content

[8.19] [Discover][APM] Detect OTEL spans for doc viewer (#224439)#224608

Merged
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-224439
Jun 19, 2025
Merged

[8.19] [Discover][APM] Detect OTEL spans for doc viewer (#224439)#224608
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-224439

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

## Summary

This PR modifies the Span doc viewer check to be better equipped for
dealing with unprocessed OTEL trace spans. If there is no
`processed.event` field, we can start assuming there'd be OTEL specific
fields to check. Here, we check for `kind` which *should* be present, so
any value determines this to be a trace span. In the absence of `kind`
being present and no `processed.event` field (just a `data_stream.type`
field, we can assume it is a span regardless.

## How to test

* Add the following to your `kibana.dev.yml` file:
```yaml
discover.experimental.enabledProfiles:
  - observability-traces-data-source-profile
  - observability-traces-transaction-document-profile
  - observability-traces-span-document-profile
```
* Set up a source of unprocessed OTEL data to feed into ES (Open
telemetry demo, etc)
* Set your space to Observability mode, and go to Discover.
* Query for `traces-*` and open any record for the document viewer
* The Span Overview tab should be visible.

(cherry picked from commit c88328f)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jun 19, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) June 19, 2025 16:08
@kibanamachine kibanamachine merged commit 1acfcc7 into elastic:8.19 Jun 19, 2025
11 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/discover-utils 320 321 +1

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 +56.0B
Unknown metric groups

API count

id before after diff
@kbn/discover-utils 370 371 +1

cc @Bluefinger

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants