Skip to content

Commit 1e861ba

Browse files
authored
JFinal metadata (open-telemetry#15419)
1 parent 536f21a commit 1e861ba

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

docs/instrumentation-list.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6573,12 +6573,33 @@ libraries:
65736573
type: STRING
65746574
jfinal:
65756575
- name: jfinal-3.2
6576+
display_name: JFinal
6577+
description: |
6578+
This instrumentation enriches HTTP server spans with route information, and enables controller spans for JFinal controller methods (controller spans are disabled by default).
6579+
library_link: https://github.com/jfinal/jfinal
6580+
features:
6581+
- HTTP_ROUTE
6582+
- CONTROLLER_SPANS
65766583
source_path: instrumentation/jfinal-3.2
65776584
scope:
65786585
name: io.opentelemetry.jfinal-3.2
65796586
target_versions:
65806587
javaagent:
65816588
- com.jfinal:jfinal:[3.2,)
6589+
configurations:
6590+
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
6591+
description: Enables the creation of experimental controller spans.
6592+
type: boolean
6593+
default: false
6594+
telemetry:
6595+
- when: default
6596+
spans:
6597+
- span_kind: INTERNAL
6598+
attributes:
6599+
- name: code.function
6600+
type: STRING
6601+
- name: code.namespace
6602+
type: STRING
65826603
jms:
65836604
- name: jms-1.1
65846605
display_name: JMS (Java Message Service)

instrumentation-docs/instrumentations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ readonly INSTRUMENTATIONS=(
148148
"jsf:jsf-myfaces-3.0:javaagent:test"
149149
"jsp-2.3:javaagent:test"
150150
"jsp-2.3:javaagent:testExperimental"
151+
"jfinal-3.2:javaagent:test"
151152
"kafka:kafka-clients:kafka-clients-2.6:library:test"
152153
"kafka:kafka-connect-2.6:testing:test"
153154
"ktor:ktor-1.0:library:test"

instrumentation/jfinal-3.2/javaagent/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ dependencies {
2828

2929
tasks.withType<Test>().configureEach {
3030
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
31+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
3132
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
display_name: JFinal
2+
description: >
3+
This instrumentation enriches HTTP server spans with route information, and enables
4+
controller spans for JFinal controller methods (controller spans are disabled by default).
5+
features:
6+
- HTTP_ROUTE
7+
- CONTROLLER_SPANS
8+
library_link: https://github.com/jfinal/jfinal
9+
configurations:
10+
- name: otel.instrumentation.common.experimental.controller-telemetry.enabled
11+
description: Enables the creation of experimental controller spans.
12+
type: boolean
13+
default: false

0 commit comments

Comments
 (0)