Skip to content

access_loggers: use configured formatters for OpenTelemetry custom_tags#46066

Open
davidvo-lyft wants to merge 1 commit into
envoyproxy:mainfrom
davidvo-lyft:davidvo/45453-otel-custom-tags-formatters
Open

access_loggers: use configured formatters for OpenTelemetry custom_tags#46066
davidvo-lyft wants to merge 1 commit into
envoyproxy:mainfrom
davidvo-lyft:davidvo/45453-otel-custom-tags-formatters

Conversation

@davidvo-lyft

Copy link
Copy Markdown
Contributor

The OpenTelemetry access loggers parse configured formatters into a command-parser vector for the body and attributes formatters, but getCustomTags() dropped it. So a custom tag whose value used a formatter extension (e.g. FILE_CONTENT) failed with "Not supported field in StreamInfo", even though the same command worked in body/attributes. This threads the command parsers through to createCustomTag(). Applies to both the gRPC and HTTP OpenTelemetry loggers.

Risk Level: Low
Testing: new unit test (red->green) plus the existing otel access-log unit and config tests pass.
Docs Changes: n/a
Release Notes: changelog added

Fixes #45453

The OpenTelemetry access loggers parse configured formatters into a
command-parser vector for the body and attributes formatters, but
getCustomTags() dropped it, so a custom tag whose value used a formatter
extension (e.g. FILE_CONTENT) failed with "Not supported field in
StreamInfo" while the same command worked in body/attributes. Thread the
command parsers through to createCustomTag(). Applies to both the gRPC and
HTTP OpenTelemetry loggers.

Fixes envoyproxy#45453

Signed-off-by: David Vo <davidvo@lyft.com>
@davidvo-lyft davidvo-lyft requested a review from yanavlasov as a code owner July 9, 2026 18:21
@davidvo-lyft davidvo-lyft temporarily deployed to external-contributors July 9, 2026 18:21 — with GitHub Actions Inactive
@repokitteh-read-only

Copy link
Copy Markdown

Hi @davidvo-lyft, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #46066 was opened by davidvo-lyft.

see: more, trace.

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.

access_loggers: OpenTelemetry custom_tags do not use configured formatters

2 participants