OpenTelemetry là một bộ các công cụ, APIs, SDKs giúp chúng ta có thể generate, thu thập và export các thông tin về các ứng dụng đang chạy bao gồm metrics, logs, và traces. Các thông tin này sau đó, có thể được import vào các công cụ khác để visualize, giúp chúng ta có thể nắm bắt kịp thời các vấn đề mà ứng dụng của chúng ta đang gặp phải. Trong bài viết này, mình sẽ hướng dẫn các bạn cách integrate OpenTelemetry với các ứng dụng Java, cụ thể là ứng dụng Spring Boot để hiểu cách cấu hình và cách OpenTelemetry làm việc là như thế nào các bạn nhé!
Đầu tiên, mình sẽ tạo mới một project Spring Boot với Web dependency để expose một API như sau:
Nội dung của API này đơn giản như sau:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
package com.huongdanjava.opentelemetry; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @GetMapping("/hello") public String hello() { return "Hello"; } } |
Chạy ứng dụng này lên, rồi request tới địa chỉ http://localhost:8080/hello, các bạn sẽ thấy kết quả như sau:
Trước khi nói về OpenTelemtry, mình xin đề cập một xí về các khái niệm metrics, logs hay traces trước. Nói nôm na thì metrics là các thông số, dùng để đo lường một tác vụ nào đó của ứng dụng. Logs thì là các log message được in ra khi chúng ta sử dụng ứng dụng. Traces là tracking các số liệu về request và response của ứng dụng. Sử dụng OpenTelemetry giúp chúng ta có thể collect các thông tin này của ứng dụng.
Để sử dụng OpenTelemetry, mặc định thì các bạn không cần phải modify code gì hết. Việc đầu tiên, các bạn cần làm là download một tập tin agent của OpenTelemetry, sau đó thì cấu hình tham số -javaagent trỏ đến tập tin agent này khi chạy ứng dụng.
Các bạn download latest version của tập tin opentelemetry-javaagent.jar tại đây nhé: https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases
Nếu các bạn muốn chạy OpenTelemetry cùng với ứng dụng Spring Boot trong IDE luôn thì có thể cấu hình như sau:
Nếu chạy với tập tin .jar thì command để chạy là “java -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar -jar <spring-boot>.jar” các bạn nhé!
Một cấu hình khác mà các bạn cần phải làm là cấu hình Exporter. Sau khi OpenTelemetry collect thông tin thì nó sẽ export những thông tin này ra sử dụng các Exporter này. OpenTelemetry hỗ trợ cho chúng ta nhiều loại Exporter khác nhau, bao gồm:
- OTLP exporter
- Jaeger exporter
- Zipkin exporter
- Prometheus exporter
- Logging exporter
- Logging OTLP JSON exporter
Để sử dụng exporter nào, các bạn có thể cấu hình sử dụng các system properties hoặc environment variable tương ứng. Xem chi tiết cho từng exporter từ các đường dẫn ở trên để biết mỗi loại exported hỗ trợ những system properties hay environment variable nào các bạn nhé!
Mình sẽ sử dụng Logger exporter cho ứng dụng ví dụ của mình để in các thông tin ra console bằng cách cấu hình thêm các biến môi trường vào cửa sổ Run Configuration của ứng dụng như sau:
Nếu chạy bằng tập tin .jar thì các bạn hãy cấu hình biến môi trường nhé!
Chạy lại ứng dụng rồi request lại địa chỉ http://localhost:8080/hello, các bạn sẽ thấy Console in ra rất nhiều thông tin như sau:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
[otel.javaagent 2023-05-23 15:14:14:573 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.memory.limit, description=Measure of max obtainable memory, unit=By, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="Compressed Class Space", type="non_heap"}, value=1073741824, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Old Gen", type="heap"}, value=2147483648, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="CodeCache", type="non_heap"}, value=50331648, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:574 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.classes.current_loaded, description=Number of classes currently loaded, unit=1, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={}, value=9793, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:574 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.cpu.utilization, description=Recent cpu utilization for the process, unit=1, type=DOUBLE_GAUGE, data=ImmutableGaugeData{points=[ImmutableDoublePointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={}, value=0.0, exemplars=[]}]}} [otel.javaagent 2023-05-23 15:14:14:575 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.classes.unloaded, description=Number of classes unloaded since JVM start, unit=1, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={}, value=1, exemplars=[]}], monotonic=true, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:575 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.memory.usage_after_last_gc, description=Measure of memory used after the most recent garbage collection event on this pool, unit=By, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Old Gen", type="heap"}, value=13631488, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Survivor Space", type="heap"}, value=4773568, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Eden Space", type="heap"}, value=0, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:576 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.memory.committed, description=Measure of memory committed, unit=By, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="Compressed Class Space", type="non_heap"}, value=7143424, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="Metaspace", type="non_heap"}, value=50659328, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Old Gen", type="heap"}, value=36700160, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Survivor Space", type="heap"}, value=5242880, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="CodeCache", type="non_heap"}, value=10747904, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Eden Space", type="heap"}, value=46137344, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:576 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.system.cpu.load_1m, description=Average CPU load of the whole system for the last minute, unit=1, type=DOUBLE_GAUGE, data=ImmutableGaugeData{points=[ImmutableDoublePointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={}, value=2.1806640625, exemplars=[]}]}} [otel.javaagent 2023-05-23 15:14:14:577 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.gc.duration, description=Duration of JVM garbage collection actions, unit=ms, type=HISTOGRAM, data=ImmutableHistogramData{aggregationTemporality=CUMULATIVE, points=[ImmutableHistogramPointData{getStartEpochNanos=1684869194539029000, getEpochNanos=1684869254550375000, getAttributes={action="end of minor GC", gc="G1 Young Generation"}, getSum=72.0, getCount=12, hasMin=true, getMin=3.0, hasMax=true, getMax=14.0, getBoundaries=[0.0, 5.0, 10.0, 25.0, 50.0, 75.0, 100.0, 250.0, 500.0, 750.0, 1000.0, 2500.0, 5000.0, 7500.0, 10000.0], getCounts=[0, 6, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], getExemplars=[]}]}} [otel.javaagent 2023-05-23 15:14:14:577 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.system.cpu.utilization, description=Recent cpu utilization for the whole system, unit=1, type=DOUBLE_GAUGE, data=ImmutableGaugeData{points=[ImmutableDoublePointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={}, value=0.0, exemplars=[]}]}} [otel.javaagent 2023-05-23 15:14:14:578 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.classes.loaded, description=Number of classes loaded since JVM start, unit=1, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={}, value=9794, exemplars=[]}], monotonic=true, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:579 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.memory.init, description=Measure of initial memory requested, unit=By, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="Compressed Class Space", type="non_heap"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="Metaspace", type="non_heap"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Old Gen", type="heap"}, value=119537664, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Survivor Space", type="heap"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="CodeCache", type="non_heap"}, value=2555904, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="G1 Eden Space", type="heap"}, value=14680064, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:579 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.threads.count, description=Number of executing threads, unit=1, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={daemon=true}, value=32, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={daemon=false}, value=4, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:579 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.buffer.usage, description=Memory that the Java virtual machine is using for this buffer pool, unit=By, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="mapped - 'non-volatile memory'"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="mapped"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="direct"}, value=65536, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} [otel.javaagent 2023-05-23 15:14:14:579 -0400] [PeriodicMetricReader-1] INFO io.opentelemetry.exporter.logging.LoggingMetricExporter - metric: ImmutableMetricData{resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.19.0, attributes={host.arch="x86_64", host.name="Khanhs-MacBook-Pro.local", os.description="Mac OS X 10.15.7", os.type="darwin", process.command_args=[/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java, -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=50812, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.ssl=false, -Djava.rmi.server.hostname=localhost, -Dspring.jmx.enabled=true, -Dmanagement.endpoints.jmx.exposure.include=*, -Dspring.application.admin.enabled=true, -Djava.security.egd=file:/dev/./urandom, -javaagent:/Users/khanh/Downloads/opentelemetry-javaagent.jar, -XX:TieredStopAtLevel=1, -Dspring.boot.project.name=spring-boot-opentelemetry-example, -Dfile.encoding=UTF-8, -classpath, /Users/khanh/Documents/workspace-spring-tool-suite-4-4.18.1.RELEASE/spring-boot-opentelemetry-example/target/classes:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.0/spring-boot-starter-web-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.0/spring-boot-starter-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot/3.1.0/spring-boot-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.0/spring-boot-autoconfigure-3.1.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.0/spring-boot-starter-logging-3.1.0.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-classic/1.4.7/logback-classic-1.4.7.jar:/Users/khanh/.m2/repository/ch/qos/logback/logback-core/1.4.7/logback-core-1.4.7.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/khanh/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/khanh/.m2/repository/org/slf4j/jul-to-slf4j/2.0.7/jul-to-slf4j-2.0.7.jar:/Users/khanh/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/khanh/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.0/spring-boot-starter-json-3.1.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.0/jackson-databind-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.0/jackson-annotations-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.0/jackson-core-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.0/jackson-datatype-jdk8-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.0/jackson-datatype-jsr310-2.15.0.jar:/Users/khanh/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.0/jackson-module-parameter-names-2.15.0.jar:/Users/khanh/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.0/spring-boot-starter-tomcat-3.1.0.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.8/tomcat-embed-core-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.8/tomcat-embed-el-10.1.8.jar:/Users/khanh/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.8/tomcat-embed-websocket-10.1.8.jar:/Users/khanh/.m2/repository/org/springframework/spring-web/6.0.9/spring-web-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-beans/6.0.9/spring-beans-6.0.9.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-observation/1.11.0/micrometer-observation-1.11.0.jar:/Users/khanh/.m2/repository/io/micrometer/micrometer-commons/1.11.0/micrometer-commons-1.11.0.jar:/Users/khanh/.m2/repository/org/springframework/spring-webmvc/6.0.9/spring-webmvc-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-aop/6.0.9/spring-aop-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-context/6.0.9/spring-context-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-expression/6.0.9/spring-expression-6.0.9.jar:/Users/khanh/.m2/repository/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar:/Users/khanh/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar:/Users/khanh/.m2/repository/org/springframework/spring-jcl/6.0.9/spring-jcl-6.0.9.jar, -XX:+ShowCodeDetailsInExceptionMessages, com.huongdanjava.opentelemetry.SpringBootOpentelemetryExampleApplication, --spring.output.ansi.enabled=always], process.executable.path="/Applications/SpringToolSuite4.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.7.v20230425-1502/jre/bin/java", process.pid=3057, process.runtime.description="Eclipse Adoptium OpenJDK 64-Bit Server VM 17.0.7+7", process.runtime.name="OpenJDK Runtime Environment", process.runtime.version="17.0.7+7", service.name="unknown_service:java", telemetry.auto.version="1.26.0", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.26.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.runtime-metrics, version=1.26.0-alpha, schemaUrl=null, attributes={}}, name=process.runtime.jvm.buffer.count, description=The number of buffers in the pool, unit={buffers}, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="mapped - 'non-volatile memory'"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="mapped"}, value=0, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1684869194539029000, epochNanos=1684869254550375000, attributes={pool="direct"}, value=8, exemplars=[]}], monotonic=false, aggregationTemporality=CUMULATIVE}} 2023-05-23T19:14:28.049Z INFO 'Initializing Spring DispatcherServlet 'dispatcherServlet'' : d16e21bbb64d966269c1d128bd9b853d 7c661c92a8ba640b [scopeInfo: org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:] {} [2m2023-05-23T15:14:28.050-04:00[0;39m [32m INFO[0;39m [35m3057[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [36mo.a.c.c.C.[Tomcat].[localhost].[/] [0;39m [2m:[0;39m Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-05-23T19:14:28.05Z INFO 'Initializing Servlet 'dispatcherServlet'' : d16e21bbb64d966269c1d128bd9b853d 7c661c92a8ba640b [scopeInfo: org.springframework.web.servlet.DispatcherServlet:] {} [2m2023-05-23T15:14:28.050-04:00[0;39m [32m INFO[0;39m [35m3057[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [36mo.s.web.servlet.DispatcherServlet [0;39m [2m:[0;39m Initializing Servlet 'dispatcherServlet' 2023-05-23T19:14:28.053Z INFO 'Completed initialization in 2 ms' : d16e21bbb64d966269c1d128bd9b853d 7c661c92a8ba640b [scopeInfo: org.springframework.web.servlet.DispatcherServlet:] {} [2m2023-05-23T15:14:28.053-04:00[0;39m [32m INFO[0;39m [35m3057[0;39m [2m---[0;39m [2m[nio-8080-exec-1][0;39m [36mo.s.web.servlet.DispatcherServlet [0;39m [2m:[0;39m Completed initialization in 2 ms [otel.javaagent 2023-05-23 15:14:28:188 -0400] [http-nio-8080-exec-1] INFO io.opentelemetry.exporter.logging.LoggingSpanExporter - 'HelloController.hello' : d16e21bbb64d966269c1d128bd9b853d a7638251631cd784 INTERNAL [tracer: io.opentelemetry.spring-webmvc-6.0:1.26.0-alpha] AttributesMap{data={thread.id=30, thread.name=http-nio-8080-exec-1}, capacity=128, totalAddedValues=2} [otel.javaagent 2023-05-23 15:14:28:190 -0400] [http-nio-8080-exec-1] INFO io.opentelemetry.exporter.logging.LoggingSpanExporter - 'GET /hello' : d16e21bbb64d966269c1d128bd9b853d 7c661c92a8ba640b SERVER [tracer: io.opentelemetry.tomcat-10.0:1.26.0-alpha] AttributesMap{data={user_agent.original=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36, net.host.name=localhost, http.target=/hello, net.sock.peer.addr=0:0:0:0:0:0:0:1, thread.name=http-nio-8080-exec-1, http.status_code=200, net.host.port=8080, net.sock.host.addr=0:0:0:0:0:0:0:1, http.response_content_length=5, http.route=/hello, net.protocol.name=http, http.method=GET, thread.id=30, net.protocol.version=1.1, net.sock.peer.port=50835, http.scheme=http}, capacity=128, totalAddedValues=16} |
Rất nhiều thông tin phải không các bạn? Cho request tới context path “/hello”, các bạn có thể thấy những thông tin về request và response như sau:
1 2 |
[otel.javaagent 2023-05-23 15:14:28:188 -0400] [http-nio-8080-exec-1] INFO io.opentelemetry.exporter.logging.LoggingSpanExporter - 'HelloController.hello' : d16e21bbb64d966269c1d128bd9b853d a7638251631cd784 INTERNAL [tracer: io.opentelemetry.spring-webmvc-6.0:1.26.0-alpha] AttributesMap{data={thread.id=30, thread.name=http-nio-8080-exec-1}, capacity=128, totalAddedValues=2} [otel.javaagent 2023-05-23 15:14:28:190 -0400] [http-nio-8080-exec-1] INFO io.opentelemetry.exporter.logging.LoggingSpanExporter - 'GET /hello' : d16e21bbb64d966269c1d128bd9b853d 7c661c92a8ba640b SERVER [tracer: io.opentelemetry.tomcat-10.0:1.26.0-alpha] AttributesMap{data={user_agent.original=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36, net.host.name=localhost, http.target=/hello, net.sock.peer.addr=0:0:0:0:0:0:0:1, thread.name=http-nio-8080-exec-1, http.status_code=200, net.host.port=8080, net.sock.host.addr=0:0:0:0:0:0:0:1, http.response_content_length=5, http.route=/hello, net.protocol.name=http, http.method=GET, thread.id=30, net.protocol.version=1.1, net.sock.peer.port=50835, http.scheme=http}, capacity=128, totalAddedValues=16} |
Nếu các bạn review kỹ, các bạn sẽ thấy HTTP status code cho response là 200 và một số thông tin khác nữa từ những dòng log trên.
Như vậy là trong bài viết này, mình đã hướng dẫn các bạn cách integrate OpenTelemetry với các ứng dụng Java để observability chúng với các thông tin mặc định được hỗ trợ.