File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
doc-snippets/api/src/main/java/otel Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments