Skip to content

docs(trace): surface the trace span subcommand#2396

Merged
Drarig29 merged 3 commits into
DataDog:masterfrom
eliebleton-manomano:docs/trace-span-discoverability
Jul 6, 2026
Merged

docs(trace): surface the trace span subcommand#2396
Drarig29 merged 3 commits into
DataDog:masterfrom
eliebleton-manomano:docs/trace-span-discoverability

Conversation

@eliebleton-manomano

Copy link
Copy Markdown
Contributor

What & why

The trace span subcommand — report a standalone custom span with a name and a duration (or start/end time), without wrapping a command — ships today and has its own README, and it's covered on the official docs page. But it isn't discoverable from the repo's front-door README: the trace section only describes the command-wrapping form (trace ... -- <cmd>) and never mentions or links span. It's easy to forget the subcommand exists.

Changes

  • Root README: list span under the trace section, linking to its README.
  • trace README: add a one-line cross-reference to the trace span subcommand.
  • span README: spell out that --start-time / --end-time epoch milliseconds are UTC (they're serialized via toISOString()), so there's no timezone ambiguity for readers.

Docs only — no code or behavior change.

Note on parameters

I checked the full option surface (--name, --duration, --start-time, --end-time, --tags, --measures, --dry-run) — all already documented in the span README. The only inherited-but-undocumented flags are --fips / --fips-ignore-error, but no command README in the repo documents those, so I left them out to stay consistent rather than diverge here.

🤖 Generated with Claude Code

-- Claudelie

eliebleton-manomano and others added 2 commits July 3, 2026 19:24
The `trace span` subcommand (report a standalone custom span with a name
and a duration or start/end time) ships and has its own README, but it was
not discoverable from the top-level command index: the `trace` section only
described the command-wrapping form and never mentioned or linked `span`.

- List `span` under the `trace` section in the root README, linking its README.
- Add a cross-reference from the `trace` README to the `trace span` subcommand.

Docs only; no behavior change.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
`--start-time` / `--end-time` are epoch milliseconds, i.e. an absolute
UTC instant (serialized via `toISOString()`), but "unix epoch" alone can
read as ambiguous. Spell out UTC.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@eliebleton-manomano
eliebleton-manomano requested review from a team as code owners July 3, 2026 17:34

@Drarig29 Drarig29 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, LGTM. I just made the front README a bit less verbose

@datadog-official

datadog-official Bot commented Jul 6, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 401a102 | Docs | Datadog PR Page | Give us feedback!

@Drarig29 Drarig29 added the documentation Improvements or additions to documentation label Jul 6, 2026
@Drarig29
Drarig29 merged commit 2912bfd into DataDog:master Jul 6, 2026
34 of 35 checks passed
@Drarig29
Drarig29 removed the request for review from a team July 6, 2026 12:13
@TalUsvyatsky TalUsvyatsky mentioned this pull request Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants