Skip to content

[Discover][OTel] Add accordion sections for Attributes tab #221927

@kpatticha

Description

@kpatticha

Summary

In OpenTelemetry, metadata are represented as Attributes. Elastic stores these attributes in document fields in these namespaces:

  • attributes.*: Span, LogRecord, Metric point, or Profile attributes, depending on the signal
  • resource.attributes.*: Resource attributes
  • scope.attributes.*: Instrumentation scope attributes

Some indexes for non-OpenTelemetry data have mappings for these attribute namespaces as well, so it's possible that any signal in Discover might have attribute fields.

Designs

Image

Acceptance criteria

  • Display 3 sections
    - {Signal} attributes (where Signal is Log, Span, etc.)
    - Resource attributes
    - Instrumentation scope attributes
  • The sections should have title, tooltip and a count (tooltip: TBD)
  • Accordion sections should be open by default
  • In each section should be a data table with 2 columns
    - Attribute
    - Value
  • Selected/Available/Empty
  • The attribute names should not display the whole namespace (resource.attributes.telemetry.sdk.language), but only the part of the field name belonging to the given attribute namespace: telemetry.sdk.language.
  • filtering controls should use the entire field name (T
  • Don't use pagination for the table
  • Reuse components from discover (filter controls, data table etc)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions