Skip to content

Commit 3cab977

Browse files
committed
PR feedback
1 parent 6ec03dd commit 3cab977

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

doc-snippets/api/src/main/java/otel/LogRecordUsage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public static void logRecordUsage(Logger logger) {
5555
AttributeKey.doubleArrayKey("come.acme.double-array-key"), Arrays.asList(1.1, 2.2))
5656
.setAllAttributes(WIDGET_RED_CIRCLE)
5757
// Uncomment to optionally explicitly set the context used to correlate with spans. If
58-
// omitted,
59-
// Context.current() is used.
58+
// omitted, Context.current() is used.
6059
// .setContext(context)
6160
// Emit the log record
6261
.emit();

doc-snippets/api/src/main/java/otel/SpanUsage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ public static void spanUsage(Tracer tracer) {
4343
.setAttribute("come.acme.double-key", 1.1)
4444
.setAllAttributes(WIDGET_RED_CIRCLE)
4545
// Uncomment to optionally explicitly set the parent span context. If omitted, the
46-
// span's parent will
47-
// be set using Context.current()
46+
// span's parent will be set using Context.current().
4847
// .setParent(parentContext)
49-
// Uncomment to optionally add links
48+
// Uncomment to optionally add links.
5049
// .addLink(linkContext, linkAttributes)
5150
// Start the span
5251
.startSpan();

0 commit comments

Comments
 (0)