[Discover][Traces] Explore trace.id from logs in Discover#249632
[Discover][Traces] Explore trace.id from logs in Discover#249632tfcmarques merged 15 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/obs-exploration-team (Team:obs-exploration) |
| export type Action = | ||
| | (BaseAction & { onClick: () => void; href?: never }) | ||
| | (BaseAction & { href: string; onClick?: never }); | ||
| | (BaseAction & { onClick: () => void; href?: never; target?: never }) |
There was a problem hiding this comment.
It looks like we're not using the target for onclick, can we remove it?
There was a problem hiding this comment.
Yeah, you're right, it's kinda redundant if href is not used, removing it 👍🏻
| [fieldConstants.TRACE_ID_FIELD]: { | ||
| title: fieldLabels.TRACE_ID_LABEL, | ||
| formatter: (value: unknown, formattedValue: string) => ( | ||
| <HighlightField value={value as string} formattedValue={formattedValue}> |
There was a problem hiding this comment.
I think we want to keep the highlighting and only remove the link?
There was a problem hiding this comment.
Ah that's true, I'll quickly revert that, thanks 👍🏻
| [TRACE_ID]: { | ||
| title: fieldLabels.TRACE_ID_LABEL, | ||
| formatter: (value: unknown, formattedValue: string) => ( | ||
| <HighlightField value={value as string} formattedValue={formattedValue}> |
| dataView: DocViewRenderProps['dataView']; | ||
| } | ||
|
|
||
| const openInDiscoverButtonLabel = i18n.translate( |
There was a problem hiding this comment.
We already have an "open in discover" label here public/components/observability/traces/common/constants.ts
|
|
||
| export const OPEN_IN_DISCOVER_LABEL_ARIAL_LABEL = i18n.translate( | ||
| 'unifiedDocViewer.observability.traces.openInDiscoverArialLabel', | ||
| export const OPEN_IN_DISCOVER_ARIA_LABEL = i18n.translate( |
There was a problem hiding this comment.
Fixing typo ARIAL -> ARIA
|
@tfcmarques instead of prefixing the PR title with |
...ified_doc_viewer/public/components/observability/traces/components/trace_waterfall/index.tsx
Show resolved
Hide resolved
...ified_doc_viewer/public/components/observability/traces/components/trace_waterfall/index.tsx
Outdated
Show resolved
Hide resolved
…id-from-logs-in-Discover
…id-from-logs-in-Discover
…id-from-logs-in-Discover
iblancof
left a comment
There was a problem hiding this comment.
Code changes LGTM, thanks for driving the discussion around the indexes!
I know the button position is still pending, but leaving the approval anyway 👍🏻
…id-from-logs-in-Discover
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
cc @tfcmarques |
…9632) ## Summary - Removes `trace.id` hyperlinks from log and span summaries, while keeping the `trace.id` field and value visible - Adds an `Open in Discover` action button in Traces to enable trace debugging > Note: > Reverted changes that made Open in Discover button open to a new tab, so demo is not accurate > We're keeping the current button behaviour for now, making it open in the current tab > Changes here: elastic@6846f01 ### Demo https://github.com/user-attachments/assets/e8b144de-d478-483e-a187-e62325afda6c
…iew_cps * commit '32efd9b2fb078ade51073fd2d0068bc74c029d6b': (49 commits) [Security Solution] Rules exceptions subfeatures (elastic#245722) [BK] Upgrade axios (elastic#251150) Fix AI Connector form fields resetting to default value when cleared by user (elastic#251095) deduplicate otel dependencies (elastic#250841) Adds initial agents.md file (elastic#250833) [index management] Faster index list loading (elastic#246276) skip failing test suite (elastic#251086) skip failing test suite (elastic#251048) [Security Solutions] Trial Companion - adjust UX design (elastic#250910) [Traces][Discover] Prevent flyout remount when switching document types in Trace Waterfall (elastic#250406) [DOCS][Cases][9.4 & Serverless]: Doc new `Maximum amount of cases to open` setting for case action (elastic#250993) [Discover][Traces] Explore trace.id from logs in Discover (elastic#249632) Remove ! from SOs docs link (elastic#251097) [ML] Maps: Add telemetry events for file uploads (elastic#247543) [Fleet] Fix dupplicate ids when copying an integration policy or an agent policy (elastic#250971) [Dashboards as Code] Add snake case object keys util (elastic#250962) [Core] Remove URL Overflow & Deprecate `storeInSessionStorage` setting (elastic#242972) [One Workflow] fix: Fix Variable Retrieval in Workflow Execution Engine (elastic#250852) Rework Elastic Managed LLMs page (elastic#251069) [Lens powered by ES|QL] Update Switch to Query mode modal warning message (elastic#251051) ...
…cover Tab on left-click (#251103) ## Summary Closes #241280 Now that we have Discover Tabs, all links from Discover within Discover should open in a new tab. This PR updates all the "Open in Discover" buttons to follow that pattern, as decided by the product team. - On left-click: it will open a new Discover tab. - On right-click: users can select to 'open new tab' in their browser. **Span/Transaction flyout** |Section|Interaction| |-|-| |Similar spans|| |Trace|~TODO, pending on #249632 to be merged~| |Errors|| |Logs|| |Span Links|| ℹ️ Updated `data-test-subj` for Span Links and Errors sections, which were duplicated and wrong. **Log flyout** |Section|Interaction| |-|-| |Similar errors||Section only visible for logs with `trace.id`| --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>

Summary
trace.idhyperlinks from log and span summaries, while keeping thetrace.idfield and value visibleOpen in Discoveraction button in Traces to enable trace debuggingDemo
Screen.Recording.2026-01-20.at.14.03.57.mov