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

Configurable extra fields #8

Merged
merged 5 commits into from
Nov 28, 2022
Merged

Configurable extra fields #8

merged 5 commits into from
Nov 28, 2022

Conversation

fredr
Copy link
Contributor

@fredr fredr commented Nov 28, 2022

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

Makes it possible to disable extra fields like span and span_path in log output.

Related Issues

Fixes #6

@fredr fredr self-assigned this Nov 28, 2022
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

LGTM!

src/formatter.rs Show resolved Hide resolved
pub(crate) with_target: bool,
pub(crate) with_span_name: bool,
pub(crate) with_span_path: bool,
}
Copy link
Member

Choose a reason for hiding this comment

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

This is technically a breaking change because users could do

let formatter = EventsFormatter;

which would break now since it gains private fields.

So have to remember to ship a new major version (0.3.0 it seems)

Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
@fredr fredr merged commit e756e8e into main Nov 28, 2022
@fredr fredr deleted the fredr/configure-extra-fields branch November 28, 2022 15:59
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.

Make extra fields configurable
2 participants