Skip to content

Conversation

@mheffner
Copy link
Contributor

@mheffner mheffner commented Jan 17, 2026

There was no way to pass an empty string for our key=value pair parameters. This meant it was difficult to configure cloudformation templates when a user may leave a field empty. Also, setting to empty could be used to "unset" a previous value.

Eg, this didn't work:

ROTEL_OTEL_RESOURCE_ATTRIBUTES="" cargo run start --exporter blackhole

There doesn't seem to be a good way to do this cleanly with clap, so this PR converts these options to strings that we parse later. One upside, the clap and serde parsing (for multiple exporters) is now the same.

Completes: STR-3668, STR-3670

Signed-off-by: Mike Heffner <mikeh@fesnel.com>
@mheffner mheffner requested a review from rjenkins January 17, 2026 16:51
Signed-off-by: Mike Heffner <mikeh@fesnel.com>
@mheffner
Copy link
Contributor Author

I'm going to merge at the moment because I discovered a large breaking change introduced in #262. At the moment we don't actually process the resource attributes at all unless we build with pyo3.

I thought I was going crazy testing this and not seeing anything. 😆

@mheffner mheffner merged commit ce50697 into main Jan 20, 2026
11 of 12 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