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

Log level improvements #126

Merged
merged 2 commits into from
Aug 16, 2022
Merged

Log level improvements #126

merged 2 commits into from
Aug 16, 2022

Conversation

Baliedge
Copy link
Collaborator

@Baliedge Baliedge commented Aug 16, 2022

Simplify log level usage by converting log level parameters to constant enum type. This type mirrors logrus.Level exactly so it can be easily converted (e.g. level := tracing.Level(logrus.GetLevel())).

Breaking Change: This is a breaking change to the tracing.WithLevel() option.

Fix documentation around meaning of level numbers.

Tag spans with log.level=<name> and log.levelNum=<n>.

Using StartScopeError() will also tag span in error status.

@Baliedge Baliedge self-assigned this Aug 16, 2022
@Baliedge Baliedge changed the title PIP-1975: Log level as constant. Log level improvements Aug 16, 2022
@Baliedge Baliedge marked this pull request as ready for review August 16, 2022 14:19
@Baliedge Baliedge merged commit e174b74 into master Aug 16, 2022
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