Skip to content

Commit 3c6dd21

Browse files
committed
noop to no-op
1 parent d799e04 commit 3c6dd21

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public class GlobalOpenTelemetryNativeInstrumentationUsage {
77

88
public static void globalOpenTelemetryUsage(OpenTelemetry openTelemetry) {
9-
// Initialized with OpenTelemetry from java agent if present, otherwise noop implementation.
9+
// Initialized with OpenTelemetry from java agent if present, otherwise no-op implementation.
1010
MyClient client1 = new MyClientBuilder().build();
1111

1212
// Initialized with an explicit OpenTelemetry instance, overriding the java agent instance.
@@ -30,7 +30,7 @@ private MyClient(OpenTelemetry openTelemetry) {
3030
/** Builder for {@link MyClient}. */
3131
public static class MyClientBuilder {
3232
// OpenTelemetry defaults to the GlobalOpenTelemetry instance if set, e.g. by the java agent or
33-
// by the application, else to a noop.
33+
// by the application, else to a no-op implementation.
3434
private OpenTelemetry openTelemetry = GlobalOpenTelemetry.getOrNoop();
3535

3636
/** Explicitly set the OpenTelemetry instance to use. */

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public class NoopUsage {
2020
private static final String SCOPE_NAME = "fully.qualified.name";
2121

2222
public static void noopUsage() {
23-
// Access the noop OpenTelemetry instance
23+
// Access the no-op OpenTelemetry instance
2424
OpenTelemetry noopOpenTelemetry = OpenTelemetry.noop();
2525

26-
// Noop tracing
26+
// No-op tracing
2727
Tracer noopTracer = OpenTelemetry.noop().getTracer(SCOPE_NAME);
2828
noopTracer
2929
.spanBuilder("span name")
@@ -33,7 +33,7 @@ public static void noopUsage() {
3333
.addEvent("event-name", Attributes.builder().put(WIDGET_COLOR, "red").build())
3434
.end();
3535

36-
// Noop metrics
36+
// No-op metrics
3737
Attributes attributes = WIDGET_RED_CIRCLE;
3838
Meter noopMeter = OpenTelemetry.noop().getMeter(SCOPE_NAME);
3939
DoubleHistogram histogram = noopMeter.histogramBuilder("fully.qualified.histogram").build();
@@ -61,7 +61,7 @@ public static void noopUsage() {
6161
.gaugeBuilder("fully.qualified.gauge")
6262
.buildWithCallback(observable -> observable.record(10, attributes));
6363

64-
// Noop logs
64+
// No-op logs
6565
Logger noopLogger = OpenTelemetry.noop().getLogsBridge().get(SCOPE_NAME);
6666
noopLogger
6767
.logRecordBuilder()

0 commit comments

Comments
 (0)