Skip to content

Commit

Permalink
Add spring version info in resource_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Jul 10, 2024
1 parent ae32b51 commit 89d0f74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ management.observations.enable.spring.security=false
management.opentelemetry.instrumentation.logback-appender.capture-experimental-attributes=true
management.opentelemetry.instrumentation.logback-appender.capture-key-value-pair-attributes=true
management.opentelemetry.resource-attributes.git.commit.id.abbrev=${git.commit.id.abbrev:N/A}
management.opentelemetry.resource-attributes.git.commit.message.short"=${git.commit.message.short:N/A}
management.opentelemetry.resource-attributes.git.commit.message.short=${git.commit.message.short:N/A}
management.opentelemetry.resource-attributes.hostname=${HOSTNAME:N/A}
management.opentelemetry.resource-attributes.spring.boot.version=${build.spring.boot.version:N/A}
management.opentelemetry.resource-attributes.spring.framework.version=${build.spring.framework.version:N/A}
management.otlp.logging.compression=gzip
management.otlp.tracing.compression=gzip
management.tracing.sampling.probability=1.0
Expand All @@ -42,7 +44,7 @@ server.shutdown=graceful
server.tomcat.mbeanregistry.enabled=true
server.tomcat.threads.min-spare=4
spring.application.name=blog-api
spring.config.import=optional:classpath:git.properties
spring.config.import=optional:classpath:git.properties,optional:classpath:META-INF/build-info.properties
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.hikari.connection-timeout=2000
spring.datasource.hikari.data-source-properties.cancelSignalTimeout=2
Expand Down

0 comments on commit 89d0f74

Please sign in to comment.