Skip to content

Fix collector mode helpers#266

Merged
unflxw merged 3 commits into
mainfrom
fix-collector-mode-helpers
Jun 2, 2026
Merged

Fix collector mode helpers#266
unflxw merged 3 commits into
mainfrom
fix-collector-mode-helpers

Conversation

@unflxw

@unflxw unflxw commented May 28, 2026

Copy link
Copy Markdown
Contributor

Emit action_name attribute in collector mode

The collector reads the action name from appsignal.action_name,
but set_root_name only emitted appsignal.root_name, which the
collector ignores. In collector mode, emit appsignal.action_name
so root names set this way are honored instead of falling back to
the OpenTelemetry span name.

Update span name directly in collector mode

In collector mode, set_name now updates the OpenTelemetry span
name instead of setting the appsignal.name attribute. The
collector uses the span name as-is and its enrichers can't override
it, so the attribute is unnecessary there. The agent still gets the
attribute, which it honors as a hard override over its semantic
convention name extraction.

Sanitise SQL queries in collector mode

When set_sql_body is used in collector mode, emit attributes
following the OpenTelemetry Semantic Conventions for Database Spans,
as the collector expects, rather than the appsignal.sql_body
attribute that the agent expects.

unflxw added 2 commits May 27, 2026 12:25
The collector reads the action name from `appsignal.action_name`,
but `set_root_name` only emitted `appsignal.root_name`, which the
collector ignores. In collector mode, emit `appsignal.action_name`
so root names set this way are honored instead of falling back to
the OpenTelemetry span name.
In collector mode, `set_name` now updates the OpenTelemetry span
name instead of setting the `appsignal.name` attribute. The
collector uses the span name as-is and its enrichers can't override
it, so the attribute is unnecessary there. The agent still gets the
attribute, which it honors as a hard override over its semantic
convention name extraction.
@backlog-helper

backlog-helper Bot commented May 28, 2026

Copy link
Copy Markdown

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

When `set_sql_body` is used in collector mode, emit attributes
following the OpenTelemetry Semantic Conventions for Database Spans,
as the collector expects, rather than the `appsignal.sql_body`
attribute that the agent expects.
@unflxw
unflxw force-pushed the fix-collector-mode-helpers branch from 9e39953 to 2b413fb Compare May 28, 2026 07:24
@tombruijn tombruijn added the chore A small task that takes a day or two at the most. label May 28, 2026
@backlog-helper

This comment has been minimized.

1 similar comment
@backlog-helper

backlog-helper Bot commented Jun 2, 2026

Copy link
Copy Markdown

This is a message from the daily scheduled checks.

New issue guide | Backlog management | Rules | Feedback

@unflxw
unflxw merged commit 3955ae0 into main Jun 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A small task that takes a day or two at the most.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants