Adding constant type in spring instrumentation README.md (#1116)
This commit is contained in:
parent
2203a37771
commit
c38db413a7
|
@ -105,7 +105,7 @@ import io.opentelemetry.exporters.logging.*;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
public class OtelConfig {
|
public class OtelConfig {
|
||||||
private static final tracerName = "fooTracer";
|
private static final String tracerName = "fooTracer";
|
||||||
@Bean
|
@Bean
|
||||||
public Tracer otelTracer() throws Exception {
|
public Tracer otelTracer() throws Exception {
|
||||||
Tracer tracer = OpenTelemetry.getTracer(tracerName);
|
Tracer tracer = OpenTelemetry.getTracer(tracerName);
|
||||||
|
|
Loading…
Reference in New Issue