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

Add resource support to logger #1913

Merged
merged 8 commits into from
Mar 17, 2021
Merged

Add resource support to logger #1913

merged 8 commits into from
Mar 17, 2021

Conversation

reyang
Copy link
Member

@reyang reyang commented Mar 16, 2021

Fixes #.

Changes

  • Added Resource support to OpenTelemetryLoggerProvider.
  • Added Resource support to the console exporter.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@reyang reyang requested a review from a team March 16, 2021 18:20
@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@9c08bd7). Click here to learn what that means.
The diff coverage is 42.85%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1913   +/-   ##
=======================================
  Coverage        ?   84.40%           
=======================================
  Files           ?      188           
  Lines           ?     6103           
  Branches        ?        0           
=======================================
  Hits            ?     5151           
  Misses          ?      952           
  Partials        ?        0           
Impacted Files Coverage Δ
src/OpenTelemetry/ProviderExtensions.cs 50.00% <0.00%> (ø)
...c/OpenTelemetry/Logs/OpenTelemetryLoggerOptions.cs 72.72% <33.33%> (ø)
.../OpenTelemetry/Logs/OpenTelemetryLoggerProvider.cs 77.08% <100.00%> (ø)

@@ -172,4 +171,3 @@ virtual OpenTelemetry.BaseProcessor<T>.OnEnd(T data) -> void
virtual OpenTelemetry.BaseProcessor<T>.OnForceFlush(int timeoutMilliseconds) -> bool
virtual OpenTelemetry.BaseProcessor<T>.OnShutdown(int timeoutMilliseconds) -> bool
virtual OpenTelemetry.BaseProcessor<T>.OnStart(T data) -> void
virtual OpenTelemetry.Logs.OpenTelemetryLoggerProvider.Dispose(bool disposing) -> void
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a bit messy - changing Dispose from virtual to override is causing the complaint from the tooling.

Copy link
Member

Choose a reason for hiding this comment

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

As long as this is not considered an actual breaking change, we should be fine.

@reyang reyang added pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package logs Logging signal related labels Mar 16, 2021
@cijothomas
Copy link
Member

@open-telemetry/dotnet-approvers Could use an additional review before merge!

Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

LGTM

@cijothomas cijothomas merged commit 02ceb1a into main Mar 17, 2021
@cijothomas cijothomas deleted the reyang/log-resource branch March 17, 2021 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logs Logging signal related pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants