Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/instrumentation-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10263,12 +10263,46 @@ libraries:
type: STRING
powerjob:
- name: powerjob-4.0
display_name: PowerJob
description: This instrumentation enables spans for PowerJob job processor executions.
library_link: https://github.com/PowerJob/PowerJob
source_path: instrumentation/powerjob-4.0
scope:
name: io.opentelemetry.powerjob-4.0
target_versions:
javaagent:
- tech.powerjob:powerjob-worker:[4.0.0,)
configurations:
- name: otel.instrumentation.powerjob.experimental-span-attributes
description: |
Enables experimental span attributes `job.system`, `scheduling.powerjob.job.id`, `scheduling.powerjob.job.param`, `scheduling.powerjob.job.instance.param`, and `scheduling.powerjob.job.type`.
type: boolean
default: false
telemetry:
- when: default
spans:
- span_kind: INTERNAL
attributes:
- name: code.function
type: STRING
- name: code.namespace
type: STRING
- when: otel.instrumentation.powerjob.experimental-span-attributes=true
spans:
- span_kind: INTERNAL
attributes:
- name: code.function
type: STRING
- name: code.namespace
type: STRING
- name: job.system
type: STRING
- name: scheduling.powerjob.job.id
type: LONG
- name: scheduling.powerjob.job.param
type: STRING
- name: scheduling.powerjob.job.type
type: STRING
pulsar:
- name: pulsar-2.8
source_path: instrumentation/pulsar/pulsar-2.8
Expand Down
2 changes: 2 additions & 0 deletions instrumentation-docs/instrumentations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ readonly INSTRUMENTATIONS=(
"play:play-ws:play-ws-1.0:javaagent:test"
"play:play-ws:play-ws-2.0:javaagent:test"
"play:play-ws:play-ws-2.1:javaagent:test"
"powerjob-4.0:javaagent:test"
"powerjob-4.0:javaagent:testExperimental"
"reactor:reactor-netty:reactor-netty-0.9:javaagent:test"
"reactor:reactor-netty:reactor-netty-1.0:javaagent:test"
"spring:spring-batch-3.0:javaagent:test"
Expand Down
24 changes: 19 additions & 5 deletions instrumentation/powerjob-4.0/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,23 @@ dependencies {
library("tech.powerjob:powerjob-official-processors:1.1.0")
}

tasks.withType<Test>().configureEach {
// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
jvmArgs("-Dotel.instrumentation.powerjob.experimental-span-attributes=true")
tasks {
withType<Test>().configureEach {
// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
}

val testExperimental by registering(Test::class) {
testClassesDirs = sourceSets.test.get().output.classesDirs
classpath = sourceSets.test.get().runtimeClasspath

jvmArgs("-Dotel.instrumentation.powerjob.experimental-span-attributes=true")
systemProperty("metadataConfig", "otel.instrumentation.powerjob.experimental-span-attributes=true")
}

check {
dependsOn(testExperimental)
}
}
Loading
Loading