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

OTLP LogExporter to add LoggerCategory as attribute #3221

Merged

Conversation

cijothomas
Copy link
Member

@cijothomas cijothomas commented Apr 22, 2022

Towards #2482

@cijothomas cijothomas requested a review from a team April 22, 2022 05:02
@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #3221 (de28872) into main (f9602e2) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3221      +/-   ##
==========================================
- Coverage   85.55%   85.55%   -0.01%     
==========================================
  Files         261      261              
  Lines        9390     9392       +2     
==========================================
+ Hits         8034     8035       +1     
- Misses       1356     1357       +1     
Impacted Files Coverage Δ
...etryProtocol/Implementation/LogRecordExtensions.cs 87.95% <100.00%> (+0.29%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 76.47% <0.00%> (-5.89%) ⬇️
...heus/Implementation/PrometheusCollectionManager.cs 79.74% <0.00%> (-2.54%) ⬇️
...metryProtocol/Implementation/ActivityExtensions.cs 92.34% <0.00%> (+0.90%) ⬆️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 100.00% <0.00%> (+2.85%) ⬆️

// if it makes it to log data model.
// https://github.com/open-telemetry/opentelemetry-specification/issues/2398
// 2. Confirm if this name for attribute is good.
otlpLogRecord.Attributes.AddStringAttribute("dotnet.ilogger.category", logRecord.CategoryName);
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about the name, but good for now.

@cijothomas cijothomas merged commit 1bdb512 into open-telemetry:main Apr 26, 2022
@cijothomas cijothomas deleted the cijothomas/otlp_log_iloggercategory branch April 26, 2022 20:41
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