Skip to content

Commit

Permalink
commiting working copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ff-sdesai committed Jun 28, 2023
1 parent e51489d commit 38ca7bc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 39 deletions.
38 changes: 4 additions & 34 deletions spring-boot-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,59 +28,29 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<!--<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
<version>4.0.1</version>
</dependency>

<!--<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-zipkin</artifactId>
</dependency>-->

<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-observation</artifactId>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-zipkin</artifactId>
</dependency>

<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>

<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk-trace</artifactId>
</dependency>

<!-- https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-exporter-otlp -->
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>

<!-- https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-sdk -->
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk</artifactId>
</dependency>

<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-extension-trace-propagators</artifactId>
</dependency>

<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
<version>1.22.1</version>
</dependency>

<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing</artifactId>
</dependency>


</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,19 @@ public static void main( String[] args ) {
SpringApplication.run( ApplicationStarter.class, args );
}


// @Bean
// @ConditionalOnMissingBean
// OtlpHttpSpanExporter otlpHttpSpanExporter() {
// OtlpHttpSpanExporterBuilder builder = OtlpHttpSpanExporter.builder().setEndpoint( "http://otel-collector:4317" );
//
// for( Entry<String, String> header : properties.getHeaders().entrySet() ) {
// builder.addHeader( header.getKey(), header.getValue() );
// }
//
// return builder.build();
//
// }

}

11 changes: 6 additions & 5 deletions spring-boot-test/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
spring.application.name=spring-boot-test
server.port=8000
spring.config.import=optional:configserver:http://localhost:8888
#spring.config.import=optional:configserver:http://localhost:8888

management.endpoints.web.exposure.include=*
management.tracing.sampling.probability=1.0
management.tracing.enabled=true
logging.level.root=info
#management.endpoints.web.exposure.include=*
#management.tracing.sampling.probability=1.0
#management.tracing.enabled=true
#logging.level.root=info
#management.zipkin.tracing.endpoint=localhost:8181:4317

0 comments on commit 38ca7bc

Please sign in to comment.