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

[exporter/logging] Decouple loglevel field from level of logged messages #5678

Merged

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Jul 12, 2022

Description: Make all messages from logging exporter report at info level.

Link to tracking Issue: #5677 (review)

cc @tigrannajaryan

@mx-psi mx-psi requested review from a team, dmitryax and tigrannajaryan July 12, 2022 16:35
Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

I like this solution. I agree with @tigrannajaryan that being able to set only the logging exporter to debug and not the entire collector is very helpful.

@codecov
Copy link

codecov bot commented Jul 12, 2022

Codecov Report

Merging #5678 (43d8912) into main (d48e930) will increase coverage by 0.00%.
The diff coverage is 85.00%.

@@           Coverage Diff           @@
##             main    #5678   +/-   ##
=======================================
  Coverage   91.44%   91.44%           
=======================================
  Files         192      192           
  Lines       11415    11416    +1     
=======================================
+ Hits        10438    10439    +1     
  Misses        778      778           
  Partials      199      199           
Impacted Files Coverage Δ
exporter/loggingexporter/logging_exporter.go 88.29% <82.35%> (+0.12%) ⬆️
exporter/loggingexporter/factory.go 77.77% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d48e930...43d8912. Read the comment docs.

@tigrannajaryan
Copy link
Member

@open-telemetry/collector-approvers any objections to this change?

@codeboten codeboten added the ready-to-merge Code review completed; ready to merge by maintainers label Jul 13, 2022
@codeboten codeboten merged commit a831d51 into open-telemetry:main Jul 13, 2022
@mx-psi mx-psi deleted the mx-psi/decouple-loglevel-from-log-level branch July 13, 2022 14:32
tigrannajaryan pushed a commit that referenced this pull request Jul 15, 2022
…#5677)

Build the logger on the logging exporter's logger from the one on `TelemetrySettings`, so that the logger honors the configuration settings on `telemetry::logs` and the configuration options on `CollectorSettings.LoggingOptions`.

Depends on #5678

**Link to tracking Issue:** Fixes #5652

**Documentation:** Documented the feature gate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants