Skip to content

log: a group names its span - #230

Merged
grahamc merged 1 commit into
mainfrom
otel-group-is-not-a-span
Sep 9, 2026
Merged

grahamc merged 1 commit into
mainfrom
otel-group-is-not-a-span

Conversation

@grahamc

@grahamc grahamc commented Sep 9, 2026

Copy link
Copy Markdown
Member

log.group used the group label as the span name.
The labels are prose, thus Honeycomb held spans named Installing Nix, Detecting systemd... and Directly spawning the daemon, since systemd is not available..

A group still opens a span, because a group is a piece of work with a start and an end, which is what a span is.
The name of that span is now an argument of its own.

The function of a group now receives the span, so that the work inside can put attributes on it without a second call to open a span. It receives the span on an object, so that a later version can put more in it and no call site has to change.

Note this is a breaking API change for callers, but whatever.

@netlify

netlify Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for detsys-ts-docs ready!

Name Link
🔨 Latest commit 7216721
🔍 Latest deploy log https://app.netlify.com/projects/detsys-ts-docs/deploys/6aa15b0089a120000806c137
😎 Deploy Preview https://deploy-preview-230--detsys-ts-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

On-demand reviews are free for the next 11 days. After that, they cost $0.25 per reviewed file.

Or wait 21 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available. Your 34 included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Essentials

Run ID: 3bc42fd3-65c8-49ae-8861-4a0afda6c9a6

📥 Commits

Reviewing files that changed from the base of the PR and between f557332 and 7216721.

📒 Files selected for processing (1)
  • src/log.ts

Comment @coderabbitai help to get the list of available commands.

@grahamc
grahamc force-pushed the otel-group-is-not-a-span branch from 5c09efe to a53e5de Compare September 9, 2026 13:05
log.group used the group label as the span name.
The labels are prose, thus Honeycomb held spans named `Installing Nix`,
`Detecting systemd...` and `Directly spawning the daemon, since systemd is not
available.`.

A group still opens a span, because a group is a piece of work with a start
and an end, which is what a span is.
The name of that span is now an argument of its own.
A span name names an operation: it stays short, and it stays the same from run
to run, because Honeycomb groups by it.
A label is prose that a person reads in the workflow log.
One argument cannot be both.

The function of a group now receives the span, so that the work inside can put
attributes on it without a second call to open a span.
It receives the span on an object, so that a later version can put more in it
and no call site has to change.
@grahamc
grahamc force-pushed the otel-group-is-not-a-span branch from a53e5de to 7216721 Compare September 9, 2026 13:11
@grahamc
grahamc merged commit bd1c167 into main Sep 9, 2026
8 of 12 checks passed
@grahamc
grahamc deleted the otel-group-is-not-a-span branch September 9, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants