Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[configtls] Add omitempty tags to fields #12311

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

evan-bradley
Copy link
Contributor

Description

This will dramatically reduce YAML output when marshaling config for many receivers and exporters since it's commonly used.

Link to tracking issue

Works toward #12191

@evan-bradley evan-bradley requested a review from a team as a code owner February 6, 2025 15:12
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.39%. Comparing base (6cae411) to head (4ae7b0b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12311   +/-   ##
=======================================
  Coverage   91.39%   91.39%           
=======================================
  Files         467      467           
  Lines       25582    25582           
=======================================
  Hits        23381    23381           
  Misses       1785     1785           
  Partials      416      416           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@evan-bradley
Copy link
Contributor Author

Test failures will be addressed by open-telemetry/opentelemetry-collector-contrib#37758.

songy23 pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Feb 6, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

One option to help with
open-telemetry/opentelemetry-collector#12311.

We could also fix this after making that change, but I think the checks
now better reflect the intent of the test.
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