Skip to content

Conversation

@johnbley
Copy link
Member

@johnbley johnbley commented Feb 4, 2026

Per open-telemetry/opentelemetry-collector#14003 otelcol.Factories.Telemetry is now a required field. I noticed this because our (Splunk/Cisco's) CI test was failing because the lambda collector failed to start, with the error message

    "error": "failed to get config: cannot unmarshal the configuration: otelcol.Factories.Telemetry must not be nil. For example, you can use otelconftelemetry.NewFactory to build a telemetry factory"

This adds the necessary telemetry factory to both places it should be initialized, and additionally drops the now-defunct telemetry:metrics:address section of the configuration yml, because that was also causing a failure-to-start. In my local test the extension now properly starts.

@johnbley johnbley requested a review from a team as a code owner February 4, 2026 16:32
@atoulme
Copy link

atoulme commented Feb 4, 2026

Maybe consider adding a test running the collector?

@johnbley
Copy link
Member Author

johnbley commented Feb 4, 2026

Maybe consider adding a test running the collector?

I'd love to! In a previous discussion it turned up that we (otel) don't currently have any organizational ability to deploy to a test lambda container in CI (billing, auth, etc. etc.). I've asked around internally (Splunk/Cisco) about that but it's always been a low priority to tackle. So I kinda of have to use Splunk CI to test things. 😞

We could fake out the registration server (I have a codex-generated stub for that) to test locally and it would have caught this but wouldn't be as good as a proper deployment to a real lambda environment.

@atoulme
Copy link

atoulme commented Feb 4, 2026

re adding a test, looks like a pendant to issue #2079

@johnbley
Copy link
Member Author

In case it needs to be called out more explicitly, this bug is preventing the lambda collector from starting, which prevents lambda functions which use the collector from starting, which breaks applications, which is a really bad outcome for an instrumentation system.

@wpessers wpessers added bug Something isn't working go Pull requests that update Go code labels Feb 10, 2026
@wpessers
Copy link
Contributor

Thank you for the fix @johnbley

@wpessers wpessers merged commit ac83dc1 into open-telemetry:main Feb 10, 2026
14 checks passed
@johnbley johnbley deleted the collector_telemetry_factories branch February 10, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants