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

Minor tweak to OTLP LogExporter tests #3178

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

cijothomas
Copy link
Member

Tests towards #2482

@cijothomas cijothomas requested a review from a team April 14, 2022 05:39
Assert.Equal(2.99, attribute.Value.DoubleValue);

attribute = otlpLogRecord.Attributes[2];
Assert.Equal("{OriginalFormat}", attribute.Key);
Copy link
Member Author

Choose a reason for hiding this comment

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

For next PR, I will be tweaking exporter to special case this, as that is the behavior of the commonly used logging pattern with "message-templates", when using the ILogger.Log extension methods.

This PR is just preparing the tests to see if this is a good approach to test things..

@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #3178 (35da050) into main (a9d15c0) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3178      +/-   ##
==========================================
+ Coverage   84.79%   84.82%   +0.02%     
==========================================
  Files         259      259              
  Lines        9322     9322              
==========================================
+ Hits         7905     7907       +2     
+ Misses       1417     1415       -2     
Impacted Files Coverage Δ
...Telemetry/Internal/SelfDiagnosticsEventListener.cs 96.87% <0.00%> (-0.79%) ⬇️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 82.35% <0.00%> (+8.82%) ⬆️

@cijothomas cijothomas merged commit 02301b6 into open-telemetry:main Apr 14, 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