opentelemetry-dotnet icon indicating copy to clipboard operation
opentelemetry-dotnet copied to clipboard

OTLPLogExporter tests

Open cijothomas opened this issue 3 years ago • 2 comments

https://github.com/open-telemetry/opentelemetry-dotnet/pull/2871 - A very basic test is added here. Opening an issue to track adding more tests to OTLP Log Exporter. The exporter itself is not fully ready and is tracked here - https://github.com/open-telemetry/opentelemetry-dotnet/issues/2482

cijothomas avatar Feb 07 '22 20:02 cijothomas

Hi @cijothomas! I'd like to contribute to this repo. Do you know if this is still active? I'm new to the codebase but pretty excited to get started!

dbgoytia avatar May 27 '22 01:05 dbgoytia

Yes! This issue is still open. You can start by looking at the existing tests and identify gaps. The issue description has a link to PR adding basic tests.

cijothomas avatar May 27 '22 01:05 cijothomas

Hi @dbgoytia and @cijothomas. I am wondering if this issue is still open and needing help? Please let me know. Thanks.

moonbox3 avatar Nov 28 '22 17:11 moonbox3

@moonbox3 This is still open! Sorry for getting back very late.

cijothomas avatar Jan 19 '23 22:01 cijothomas

@cijothomas I see that additional unit tests were added since you first introduced OtlpLogExporterTests in #2871. In fact, the "TODO" comment no longer exists and seems there are now unit tests asserting all Attributes, Severity, TraceId and SpanId.

Do you think there's still any case missing that I could add?

mfogliatto avatar Feb 25 '23 14:02 mfogliatto

Scopes are missing from the tests. It may no longer be a "good first issue" to add coverage for that, as testing Scopes might be non-trivial. Do you want to explore?

cijothomas avatar Feb 25 '23 14:02 cijothomas

Scopes are missing from the tests. It may no longer be a "good first issue" to add coverage for that, as testing Scopes might be non-trivial. Do you want to explore?

Sure sounds good! I'll give it a try. In the meantime I have introduced in the PR above some basic tests to increase code coverage in a related class.

mfogliatto avatar Feb 25 '23 17:02 mfogliatto

Reopening as Scopes are not yet part of the tests

cijothomas avatar Mar 16 '23 05:03 cijothomas