Skip to content

Commit

Permalink
Merge pull request #272 from tecchu11/feature/otel-newrelic
Browse files Browse the repository at this point in the history
add otel agent
  • Loading branch information
tecchu11 authored Nov 14, 2023
2 parents 18855db + e8c4975 commit c1139d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ docker/volumes/mysql/todo/data/

### misc ###
.DS_Store
.env
10 changes: 9 additions & 1 deletion buildSrc/src/main/kotlin/base.jib.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ jib {
}
val gitHash: String? by project
to.image = "ghcr.io/tecchu11/todo-${project.name}:$gitHash"
container.creationTime.set("USE_CURRENT_TIMESTAMP")
container {
this.creationTime.set("USE_CURRENT_TIMESTAMP")
this.jvmFlags = mutableListOf("-XX:MaxRAMPercentage=80", "-javaagent:opentelemetry-javaagent.jar")
}
extraDirectories.paths {
path {
this.setFrom("$rootDir/config/otel")
}
}
}
Binary file added config/otel/opentelemetry-javaagent.jar
Binary file not shown.

0 comments on commit c1139d3

Please sign in to comment.