Skip to content

refactor: Use std Io writer for exporters - #44

Merged
inge4pres merged 1 commit into
open-telemetry:mainfrom
aland-omed:refactor/writer-exporters-30
Jul 24, 2026
Merged

refactor: Use std Io writer for exporters#44
inge4pres merged 1 commit into
open-telemetry:mainfrom
aland-omed:refactor/writer-exporters-30

Conversation

@aland-omed

Copy link
Copy Markdown
Contributor

Fixes #30.

Replace the log and trace GenericWriterExporter compile-time generic with a concrete exporter that accepts *std.Io.Writer. This removes runtime field inspection for concrete writer layouts while preserving the existing stdout and in-memory exporter names.

The C wrappers, tests, and examples now retain their concrete writers for the exporter lifetime and pass the standard writer interface explicitly.

Validation:

  • zig build
  • zig build test (289 tests passed)
  • zig build examples
  • zig fmt --check on all changed Zig files
  • git diff --check

@aland-omed
aland-omed requested a review from a team as a code owner July 22, 2026 01:13
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 22, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: aland-omed / name: Aland (ac0dac1)

@agagniere agagniere left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks !

@inge4pres

Copy link
Copy Markdown
Member

@aland-omed thanks for sending this PR! It's beautiful ❤️
I made a mistake and merged #37 before this one, so there's a big conflict right now.

I'll fix it!

Signed-off-by: Aland <158173939+aland-omed@users.noreply.github.com>
@inge4pres
inge4pres force-pushed the refactor/writer-exporters-30 branch from ac0dac1 to 9e63811 Compare July 22, 2026 15:53
@inge4pres

Copy link
Copy Markdown
Member

I'll fix it!

It was easier than I though, I simply rebased on main 😅
Merging

@inge4pres
inge4pres merged commit 1a113e3 into open-telemetry:main Jul 24, 2026
7 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.

Replace GenericWriterExporter with own structs based on std.Io

4 participants