Skip to content

Confmap issue with embedded fields and squashed fields #13273

Open
@jmacd

Description

@jmacd

Component(s)

confmap

What happened?

Describe the bug
Regression in confmap parsing, somehow mysteriously.
This is my config: https://github.com/jmacd/caspar.water/blob/main/storage/influxdbexporter/config.go
This is my build: https://github.com/jmacd/caspar.water/blob/main/collector/build.yaml#L12
It last parsed and validated correctly with a 0.122.0-derived build.

Steps to reproduce
I updated to 0.128.0. I use this configuration block:

exporters:
  influxdb:
    endpoint: "https://casparwater.us:8086"
    org: "casparwater"
    bucket: "production"
    token: "${INFLUXD_TOKEN}"

and this has worked well, until now. Now the validate command prints:


error decoding 'exporters': error reading configuration for "influxdb": decoding failed due to the following error(s):

error decoding '': decoding failed due to the following error(s):

'' has invalid keys: bucket, endpoint, org, token
2025/06/25 23:04:20 collector server run finished with error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s):

error decoding 'exporters': error reading configuration for "influxdb": decoding failed due to the following error(s):

error decoding '': decoding failed due to the following error(s):

'' has invalid keys: bucket, endpoint, org, token

What did you expect to see?
This is a regression of some sort. The config used to validate.

What did you see instead?
The error above.

Collector version

v0.128.0

Environment information

Environment

go-1.23.2
darwin/arm64

OpenTelemetry Collector configuration

Linked in the text

Log output

See above.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions