Skip to content

Commit 5ba402f

Browse files
authored
opentelemetry -> openTelemetry (#9858)
1 parent 61f3a64 commit 5ba402f

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

instrumentation/elasticsearch/elasticsearch-rest-common/library/src/main/java/io/opentelemetry/instrumentation/elasticsearch/rest/internal/ElasticsearchRestInstrumenterFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public final class ElasticsearchRestInstrumenterFactory {
2323
private ElasticsearchRestInstrumenterFactory() {}
2424

2525
public static Instrumenter<ElasticsearchRestRequest, Response> create(
26-
OpenTelemetry opentelemetry,
26+
OpenTelemetry openTelemetry,
2727
String instrumentationName,
2828
List<AttributesExtractor<ElasticsearchRestRequest, Response>> attributesExtractors,
2929
Set<String> knownMethods,
@@ -36,7 +36,7 @@ public static Instrumenter<ElasticsearchRestRequest, Response> create(
3636
new ElasticsearchSpanNameExtractor(dbClientAttributesGetter);
3737

3838
return Instrumenter.<ElasticsearchRestRequest, Response>builder(
39-
opentelemetry, instrumentationName, nameExtractor)
39+
openTelemetry, instrumentationName, nameExtractor)
4040
.addAttributesExtractor(DbClientAttributesExtractor.create(dbClientAttributesGetter))
4141
.addAttributesExtractor(esClientAtrributesExtractor)
4242
.addAttributesExtractors(attributesExtractors)

instrumentation/grpc-1.6/library/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ The instrumentation library provides the implementation of `ClientInterceptor` a
3232

3333
```java
3434
// For client-side, attach the interceptor to your channel builder.
35-
void configureClientInterceptor(Opentelemetry opentelemetry, NettyChannelBuilder nettyChannelBuilder) {
36-
GrpcTelemetry grpcTelemetry = GrpcTelemetry.create(opentelemetry);
35+
void configureClientInterceptor(OpenTelemetry openTelemetry, NettyChannelBuilder nettyChannelBuilder) {
36+
GrpcTelemetry grpcTelemetry = GrpcTelemetry.create(openTelemetry);
3737
nettyChannelBuilder.intercept(grpcTelemetry.newClientInterceptor());
3838
}
3939

4040
// For server-side, attatch the interceptor to your service.
41-
ServerServiceDefinition configureServerInterceptor(Opentelemetry opentelemetry, ServerServiceDefinition serviceDefinition) {
42-
GrpcTelemetry grpcTelemetry = GrpcTelemetry.create(opentelemetry);
41+
ServerServiceDefinition configureServerInterceptor(OpenTelemetry openTelemetry, ServerServiceDefinition serviceDefinition) {
42+
GrpcTelemetry grpcTelemetry = GrpcTelemetry.create(openTelemetry);
4343
return ServiceInterceptors.intercept(serviceDefinition, grpcTelemetry.newServerInterceptor());
4444
}
4545
```

instrumentation/ratpack/ratpack-1.7/library/src/test/groovy/io/opentelemetry/instrumentation/ratpack/v1_7/client/InstrumentedHttpClientTest.groovy

+8-8
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,15 @@ class InstrumentedHttpClientTest extends Specification {
311311
class BarService implements Service {
312312
private final String url
313313
private final CountDownLatch latch
314-
private final OpenTelemetry opentelemetry
314+
private final OpenTelemetry openTelemetry
315315

316-
BarService(CountDownLatch latch, String url, OpenTelemetry opentelemetry) {
316+
BarService(CountDownLatch latch, String url, OpenTelemetry openTelemetry) {
317317
this.latch = latch
318318
this.url = url
319-
this.opentelemetry = opentelemetry
319+
this.openTelemetry = openTelemetry
320320
}
321321

322-
private Tracer tracer = opentelemetry.tracerProvider.tracerBuilder("testing").build()
322+
private Tracer tracer = openTelemetry.tracerProvider.tracerBuilder("testing").build()
323323

324324
void onStart(StartEvent event) {
325325
def parentContext = Context.current()
@@ -345,15 +345,15 @@ class BarService implements Service {
345345
class BarForkService implements Service {
346346
private final String url
347347
private final CountDownLatch latch
348-
private final OpenTelemetry opentelemetry
348+
private final OpenTelemetry openTelemetry
349349

350-
BarForkService(CountDownLatch latch, String url, OpenTelemetry opentelemetry) {
350+
BarForkService(CountDownLatch latch, String url, OpenTelemetry openTelemetry) {
351351
this.latch = latch
352352
this.url = url
353-
this.opentelemetry = opentelemetry
353+
this.openTelemetry = openTelemetry
354354
}
355355

356-
private Tracer tracer = opentelemetry.tracerProvider.tracerBuilder("testing").build()
356+
private Tracer tracer = openTelemetry.tracerProvider.tracerBuilder("testing").build()
357357

358358
void onStart(StartEvent event) {
359359
Execution.fork().start {

instrumentation/runtime-telemetry/runtime-telemetry-java8/library/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ runtimeOnly("io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-ja
3232
Register observers for the desired runtime metrics:
3333

3434
```java
35-
OpenTelemetry opentelemetry = // OpenTelemetry instance configured elsewhere
36-
37-
BufferPools.registerObservers(opentelemetry);
38-
Classes.registerObservers(opentelemetry);
39-
Cpu.registerObservers(opentelemetry);
40-
MemoryPools.registerObservers(opentelemetry);
41-
Threads.registerObservers(opentelemetry);
42-
GarbageCollector.registerObservers(opentelemetry);
35+
OpenTelemetry openTelemetry = // OpenTelemetry instance configured elsewhere
36+
37+
BufferPools.registerObservers(openTelemetry);
38+
Classes.registerObservers(openTelemetry);
39+
Cpu.registerObservers(openTelemetry);
40+
MemoryPools.registerObservers(openTelemetry);
41+
Threads.registerObservers(openTelemetry);
42+
GarbageCollector.registerObservers(openTelemetry);
4343
```
4444

4545
## Garbage Collector Dependent Metrics

instrumentation/spring/spring-boot-autoconfigure/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ implementation("io.opentelemetry:opentelemetry-extension-annotations:OPENTELEMET
151151

152152
#### OpenTelemetry Tracer Auto Configuration
153153

154-
Provides a OpenTelemetry tracer bean (`io.opentelemetry.api.trace.Tracer`) if one does not exist in the application context of the spring project. This tracer bean will be used in all configurations listed below. Feel free to declare your own Opentelemetry tracer bean to overwrite this configuration.
154+
Provides a OpenTelemetry tracer bean (`io.opentelemetry.api.trace.Tracer`) if one does not exist in the application context of the spring project. This tracer bean will be used in all configurations listed below. Feel free to declare your own OpenTelemetry tracer bean to overwrite this configuration.
155155

156156
#### Spring Web Auto Configuration
157157

0 commit comments

Comments
 (0)