Skip to content

[Feature]: Add click-to-copy capability to trace ID display #2813

@yurishkuro

Description

@yurishkuro

Requirement

As a user I sometimes need to copy the trace ID into a clipboard, to paste it into search both in Jaeger or some other tools (like a log search).

Problem

The trace ID is usually not fully displayed by default, and sometimes not clickable

Image

Proposal

Turn the trace ID display into a hyperlink that copies the full value into clipboard. The link should have a tooltip (with small delay, say 200ms) to show "Copy to clipboard", and when clicked the tooltip should change to "Copied to clipboard" (for 2sec), then revert to original text.

Open questions

On the trace view the trace ID is currently in the header which is clickable to expand/collapse. As part of this change we may want to restrict that behavior only when clicking on the chevron button, but the trace name and trace ID should have click-to-copy behavior as above. We probably want to have a reusable component for ClickToCopyText.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions