Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exporters/otlp/logs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ plugins {
id("org.unbroken-dome.test-sets")
}

description = "OpenTelemetry Protocol Trace Exporter"
otelJava.moduleName.set("io.opentelemetry.exporter.otlp.trace")
description = "OpenTelemetry Protocol Logs Exporter"
otelJava.moduleName.set("io.opentelemetry.exporter.otlp.logs")

testSets {
create("testGrpcNetty")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.opentelemetry.exporter.otlp.internal.logs.LogsRequestMarshaler;
import java.io.InputStream;

// Adapted from the protoc generated code for LogsServiceGrpc.
/** Adapted from the protoc generated code for LogsServiceGrpc. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think @anuraaga had deliberately not made this a Javadoc comment. Anuraag, can you confirm?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This isn't really javadoc so a comment it more appropriate. Let's revert this change

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I realized my comment was in "pending status". 🤦🏽

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, but I think this style is aligned with other source codes in project;
In addition, Javadoc single-line comment can not pass spotlessJavaCheck, just like this:

/**
 * Adapted from the protoc generated code for LogsServiceGrpc.
 */

Do I need revert this change or keep it, @anuraaga @jkwatson

@anuraaga anuraaga Dec 7, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In addition, Javadoc single-line comment can not pass spotlessJavaCheck, just like this:

I don't follow this - spotless is currently passing right? Let's go ahead and revert this - this is an internal class so it doesn't need real javadoc, this is an implementation detail comment targeted at code authors, not docs for end users. We like to make that distinction where possible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see, already revert

final class MarshalerLogsServiceGrpc {

private static final String SERVICE_NAME = "opentelemetry.proto.collector.logs.v1.LogsService";
Expand Down