Skip to content

Commit 5046d7a

Browse files
authored
Merge pull request #170 from RADAR-base/fix/open-telemetry
feat: add sentry open telemetry agent jar to build
2 parents 5f3b010 + 0881a9c commit 5046d7a

File tree

6 files changed

+10
-54
lines changed

6 files changed

+10
-54
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ To enable Sentry monitoring for the generic REST, Fitbit, or Oura source connect
215215
1. Set a `SENTRY_DSN` environment variable that points to the desired Sentry DSN.
216216
2. (Optional) Set the `SENTRY_LOG_LEVEL` environment variable to control the minimum log level of
217217
events sent to Sentry.
218-
The default log level for Sentry is `WARN`. Possible values are `TRACE`, `DEBUG`, `INFO`, `WARN`,
218+
The default log level for Sentry is `ERROR`. Possible values are `TRACE`, `DEBUG`, `INFO`, `WARN`,
219219
and `ERROR`.
220220

221221
For further configuration of Sentry via environmental variables see [here](https://docs.sentry.io/platforms/java/configuration/#configuration-via-the-runtime-environment). For instance:

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ object Versions {
1919
const val log4j2 = "2.23.1"
2020
const val slf4j = "2.0.13"
2121
const val sentryLog4j = "1.7.30"
22+
const val sentryOpenTelemetryAgent = "8.1.0"
2223

2324
const val okhttp = "4.12.0"
2425

kafka-connect-fitbit-source/build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,5 @@ dependencies {
3434
compileOnly(platform("com.fasterxml.jackson:jackson-bom:${Versions.jackson}"))
3535
compileOnly("com.fasterxml.jackson.core:jackson-databind")
3636

37-
// Application monitoring
38-
// This dependency is not used by the REST connector, but copied into the Docker image (Dockerfile)
39-
compileOnly("io.sentry:sentry-log4j:${Versions.sentryLog4j}") {
40-
// Exclude log4j with security vulnerability (safe version is provided by docker image).
41-
exclude(group = "log4j", module = "log4j")
42-
}
43-
4437
testImplementation("org.apache.kafka:connect-api:${Versions.kafka}")
4538
}

kafka-connect-oura-source/build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,5 @@ dependencies {
3333
compileOnly(platform("com.fasterxml.jackson:jackson-bom:${Versions.jackson}"))
3434
compileOnly("com.fasterxml.jackson.core:jackson-databind")
3535

36-
// Application monitoring
37-
// This dependency is not used by the REST connector, but copied into the Docker image (Dockerfile)
38-
compileOnly("io.sentry:sentry-log4j:${Versions.sentryLog4j}") {
39-
// Exclude log4j with security vulnerability (safe version is provided by docker image).
40-
exclude(group = "log4j", module = "log4j")
41-
}
42-
4336
testImplementation("org.apache.kafka:connect-api:${Versions.kafka}")
4437
}

kafka-connect-rest-source/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,12 @@ dependencies {
1111
testImplementation("com.github.tomakehurst:wiremock:${Versions.wiremock}")
1212

1313
testImplementation("org.apache.kafka:connect-api:${Versions.kafka}")
14+
15+
// Application monitoring
16+
// These dependencies are not used by the REST connector, but copied into the Docker image (Dockerfile)
17+
runtimeOnly("io.sentry:sentry-log4j:${Versions.sentryLog4j}") {
18+
// Exclude log4j with security vulnerability (safe version is provided by docker image).
19+
exclude(group = "log4j", module = "log4j")
20+
}
21+
runtimeOnly("io.sentry:sentry-opentelemetry-agent:${Versions.sentryOpenTelemetryAgent}")
1422
}

oura-library/src/main/resources/log4j2.xml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)