Skip to content

Timeline: an on-demand export endpoint #523

Closed

Description

@HugoXK

What

The timeline can export on a timer (#484), but there is no way to pull the current trace on demand — a tool or the panel has to wait for the next flush.

Expected behavior

  • timeline/export (read-only endpoint) returns the current trace as one OTLP/HTTP JSON payload (resourceSpans), the same mapping the timer exporter uses.
  • Bot and room ids only, unless the body sets names: true (Timeline: export the trace as OpenTelemetry spans #483); serviceName overrides the default.
  • Needs no configuration; a read-only host still answers.

Change scope

plugins/timeline/src/timeline.js (endpoint + exportWindow), a case in plugins/timeline/test/otel.test.js, docs/subsystems/timeline.md. Plugin only.

Why

On-demand traces make the quality/observability bet (#357) usable from a tool without waiting on a timer.

Activity

  1. Birfy commented on Oct 20, 2026

    @Birfy
    Collaborator

    Triage (Birfy, 2026-10-20 17:59 Asia/Shanghai): small, plugin-only, read-only, no egress, ids only by default; no conflict with the owner rules. PR #524 implements it and reads correctly. Waiting for the owner to confirm the feature (needs-human).

  2. added
    enhancementNew feature or request
    area:automationScheduled tasks and automation
    needs-humanThe agent loop stopped; a person must decide (reason in the last comment)
    on Oct 20, 2026
  3. Birfy commented on Oct 20, 2026

    @Birfy
    Collaborator

    Owner decision (Danyang Chen, 2026-10-20 18:13 Asia/Shanghai): option (a), accept. On-demand, read-only timeline export, with ids only by default. HugoXK's PR #524 covers this, so we won't build our own.

  4. added
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    and removed
    needs-humanThe agent loop stopped; a person must decide (reason in the last comment)
    on Oct 20, 2026
  5. Birfy commented on Oct 20, 2026

    @Birfy
    Collaborator

    Done on main by HugoXK's PR #524 (e8ac4d3, timeline/export on-demand endpoint). Closing (maintenance, 2026-10-20 20:01 Asia/Shanghai).

  6. removed
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:automationScheduled tasks and automationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions