Skip to content

Default combined config: receive OTLP logs, drop duplicate and START/END lines - #25

Merged
amosd92 merged 1 commit into
mainfrom
fix/combined-config-otlp-logs
Nov 26, 2026
Merged

amosd92 merged 1 commit into
mainfrom
fix/combined-config-otlp-logs

Conversation

@amosd92

@amosd92 amosd92 commented Nov 26, 2026

Copy link
Copy Markdown

Why

Since #24, the Node.js wrapper defaults OTEL_LOGS_EXPORTER=otlp: console output during an invocation is sent as OTLP logs with trace and span IDs. The default collector config (config.combined.yaml) only had a Telemetry API logs pipeline, so in direct mode (no gateway):

  • the SDK's OTLP log exports had no pipeline to land in (repeated export errors), and
  • console lines still arrived only through the Telemetry API, without trace IDs.

What

  • logs pipeline: OTLP receiver → Logz.io logs exporter (console logs with trace IDs).
  • logs/telemetryapi pipeline: Telemetry API receiver → filter/invocation-output → Logz.io logs exporter. The filter drops the Telemetry API copy of lines written inside an invocation (they arrive over OTLP) and Lambda's per-invocation START/END lines. Platform records and output written outside an invocation (init, crashes) are kept. Same rules as config.gateway.yaml, which is already running on our testbed.
  • config_test.go now also loads and validates config.combined.yaml with this collector's components.

Release

After merge, publish the Node.js combined layer with tag combined-layer-nodejs/v1.1.0 (includes #24).

https://claude.ai/code/session_01QdKvbfTtH9eMeMyYNq5Nht

…END lines

Since #24 the Node.js wrapper sends console output as OTLP logs (with trace
and span IDs) by default, but config.combined.yaml only received logs from
the Telemetry API, so the SDK's log exports failed and console lines
arrived without trace IDs. Add an OTLP logs pipeline and drop the Telemetry
API copy of lines written inside an invocation plus Lambda's per-invocation
START/END lines, matching config.gateway.yaml. config_test.go now covers
config.combined.yaml.

Claude-Session: https://claude.ai/code/session_01QdKvbfTtH9eMeMyYNq5Nht
@amosd92
amosd92 requested a review from 8naama November 26, 2026 13:52

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@amosd92
amosd92 merged commit 1459c65 into main Nov 26, 2026
11 checks passed
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