Skip to content

Commit

Permalink
Merge pull request #297 from Netflix/feature/example-micrometer
Browse files Browse the repository at this point in the history
Adding the graphql-dgs-spring-boot-micrometer to the example
  • Loading branch information
berngp authored Apr 28, 2021
2 parents e3cf6d8 + 7c92a87 commit e81e22e
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 2 deletions.
9 changes: 9 additions & 0 deletions graphql-dgs-example-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ dependencies {
implementation(project(":graphql-dgs-subscriptions-websockets-autoconfigure"))
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("io.projectreactor:reactor-core")

// Enabling Spring Boot Actuators. We are not expressing any opinion on which Metric System should be used
// please review the Spring Boot Docs in the link below for additional information.
// https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-metrics-export-simple
implementation("org.springframework.boot:spring-boot-starter-actuator")
// Adding the DGS Micrometer integration that provides timers for gql.*
// For additional information go to the link below:
// https://netflix.github.io/dgs/advanced/instrumentation/
implementation(project(":graphql-dgs-spring-boot-micrometer"))
}
62 changes: 60 additions & 2 deletions graphql-dgs-example-java/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
},
"com.netflix.graphql.dgs:graphql-dgs": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc-autoconfigure"
],
Expand All @@ -74,6 +75,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand All @@ -83,6 +85,9 @@
],
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer": {
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter"
Expand Down Expand Up @@ -129,6 +134,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand All @@ -141,6 +147,9 @@
"org.springframework.boot:spring-boot-dependencies": {
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-actuator": {
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-web": {
"locked": "2.3.9.RELEASE"
},
Expand Down Expand Up @@ -347,6 +356,7 @@
},
"com.netflix.graphql.dgs:graphql-dgs": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc-autoconfigure",
Expand All @@ -372,6 +382,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand All @@ -382,6 +393,9 @@
],
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer": {
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter"
Expand All @@ -393,7 +407,6 @@
},
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc-autoconfigure"
],
"project": true
Expand Down Expand Up @@ -421,6 +434,12 @@
],
"project": true
},
"io.micrometer:micrometer-core": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer"
],
"locked": "1.5.11"
},
"io.projectreactor:reactor-core": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-client"
Expand All @@ -433,6 +452,12 @@
],
"locked": "4.0.4"
},
"net.bytebuddy:byte-buddy": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer"
],
"locked": "1.10.20"
},
"org.jetbrains.kotlin:kotlin-bom": {
"locked": "1.4.32"
},
Expand All @@ -447,6 +472,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand Down Expand Up @@ -479,6 +505,9 @@
],
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-actuator": {
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-web": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
Expand Down Expand Up @@ -583,6 +612,7 @@
},
"com.netflix.graphql.dgs:graphql-dgs": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc-autoconfigure"
],
Expand All @@ -605,6 +635,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand All @@ -614,6 +645,9 @@
],
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer": {
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter"
Expand Down Expand Up @@ -663,6 +697,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand All @@ -675,6 +710,9 @@
"org.springframework.boot:spring-boot-dependencies": {
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-actuator": {
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-test": {
"locked": "2.3.9.RELEASE"
},
Expand Down Expand Up @@ -746,6 +784,7 @@
},
"com.netflix.graphql.dgs:graphql-dgs": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc-autoconfigure",
Expand All @@ -771,6 +810,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand All @@ -781,6 +821,9 @@
],
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer": {
"project": true
},
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter"
Expand All @@ -792,7 +835,6 @@
},
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc-autoconfigure"
],
"project": true
Expand Down Expand Up @@ -820,6 +862,12 @@
],
"project": true
},
"io.micrometer:micrometer-core": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer"
],
"locked": "1.5.11"
},
"io.mockk:mockk": {
"locked": "1.10.3-jdk8"
},
Expand All @@ -835,6 +883,12 @@
],
"locked": "4.0.4"
},
"net.bytebuddy:byte-buddy": {
"firstLevelTransitive": [
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer"
],
"locked": "1.10.20"
},
"org.jetbrains.kotlin:kotlin-bom": {
"locked": "1.4.32"
},
Expand All @@ -849,6 +903,7 @@
"com.netflix.graphql.dgs:graphql-dgs",
"com.netflix.graphql.dgs:graphql-dgs-client",
"com.netflix.graphql.dgs:graphql-dgs-mocking",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-micrometer",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-oss-autoconfigure",
"com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter",
"com.netflix.graphql.dgs:graphql-dgs-spring-webmvc",
Expand Down Expand Up @@ -881,6 +936,9 @@
],
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-actuator": {
"locked": "2.3.9.RELEASE"
},
"org.springframework.boot:spring-boot-starter-test": {
"locked": "2.3.9.RELEASE"
},
Expand Down

0 comments on commit e81e22e

Please sign in to comment.