Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Add tracing AOP
Browse files Browse the repository at this point in the history
  • Loading branch information
plamentotev committed Jan 7, 2024
1 parent c2b38f9 commit 6b40267
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies {

// implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.google.cloud:spring-cloud-gcp-starter-data-datastore")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package mosquitobytes.carboncritters.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import io.micrometer.observation.ObservationRegistry;
import io.micrometer.observation.aop.ObservedAspect;

@Configuration
public class TracingConfig {

@Bean
ObservedAspect observedAspect(ObservationRegistry observationRegistry) {
return new ObservedAspect(observationRegistry);
}

}

0 comments on commit 6b40267

Please sign in to comment.