Skip to content

Commit 16ee855

Browse files
committed
hibernate metadata
1 parent 3c58071 commit 16ee855

File tree

5 files changed

+334
-146
lines changed

5 files changed

+334
-146
lines changed

docs/instrumentation-list.yaml

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,6 +3244,169 @@ libraries:
32443244
- io.grpc:grpc-core:[1.6.0,)
32453245
library:
32463246
- io.grpc:grpc-core:1.6.0
3247+
telemetry:
3248+
- when: default
3249+
metrics:
3250+
- name: rpc.client.duration
3251+
description: The duration of an outbound RPC invocation.
3252+
type: HISTOGRAM
3253+
unit: ms
3254+
attributes:
3255+
- name: rpc.grpc.status_code
3256+
type: LONG
3257+
- name: rpc.method
3258+
type: STRING
3259+
- name: rpc.service
3260+
type: STRING
3261+
- name: rpc.system
3262+
type: STRING
3263+
- name: server.address
3264+
type: STRING
3265+
- name: server.port
3266+
type: LONG
3267+
- name: rpc.server.duration
3268+
description: The duration of an inbound RPC invocation.
3269+
type: HISTOGRAM
3270+
unit: ms
3271+
attributes:
3272+
- name: network.type
3273+
type: STRING
3274+
- name: rpc.grpc.status_code
3275+
type: LONG
3276+
- name: rpc.method
3277+
type: STRING
3278+
- name: rpc.service
3279+
type: STRING
3280+
- name: rpc.system
3281+
type: STRING
3282+
- name: server.address
3283+
type: STRING
3284+
- name: server.port
3285+
type: LONG
3286+
spans:
3287+
- span_kind: CLIENT
3288+
attributes:
3289+
- name: rpc.grpc.request.metadata.some-client-key
3290+
type: STRING_ARRAY
3291+
- name: rpc.grpc.status_code
3292+
type: LONG
3293+
- name: rpc.method
3294+
type: STRING
3295+
- name: rpc.service
3296+
type: STRING
3297+
- name: rpc.system
3298+
type: STRING
3299+
- name: server.address
3300+
type: STRING
3301+
- name: server.port
3302+
type: LONG
3303+
- span_kind: SERVER
3304+
attributes:
3305+
- name: network.peer.address
3306+
type: STRING
3307+
- name: network.peer.port
3308+
type: LONG
3309+
- name: network.type
3310+
type: STRING
3311+
- name: rpc.grpc.request.metadata.some-server-key
3312+
type: STRING_ARRAY
3313+
- name: rpc.grpc.status_code
3314+
type: LONG
3315+
- name: rpc.method
3316+
type: STRING
3317+
- name: rpc.service
3318+
type: STRING
3319+
- name: rpc.system
3320+
type: STRING
3321+
- name: server.address
3322+
type: STRING
3323+
- name: server.port
3324+
type: LONG
3325+
- when: otel.instrumentation.grpc.experimental-span-attributes=true
3326+
metrics:
3327+
- name: rpc.client.duration
3328+
description: The duration of an outbound RPC invocation.
3329+
type: HISTOGRAM
3330+
unit: ms
3331+
attributes:
3332+
- name: rpc.grpc.status_code
3333+
type: LONG
3334+
- name: rpc.method
3335+
type: STRING
3336+
- name: rpc.service
3337+
type: STRING
3338+
- name: rpc.system
3339+
type: STRING
3340+
- name: server.address
3341+
type: STRING
3342+
- name: server.port
3343+
type: LONG
3344+
- name: rpc.server.duration
3345+
description: The duration of an inbound RPC invocation.
3346+
type: HISTOGRAM
3347+
unit: ms
3348+
attributes:
3349+
- name: network.type
3350+
type: STRING
3351+
- name: rpc.grpc.status_code
3352+
type: LONG
3353+
- name: rpc.method
3354+
type: STRING
3355+
- name: rpc.service
3356+
type: STRING
3357+
- name: rpc.system
3358+
type: STRING
3359+
- name: server.address
3360+
type: STRING
3361+
- name: server.port
3362+
type: LONG
3363+
spans:
3364+
- span_kind: CLIENT
3365+
attributes:
3366+
- name: grpc.received.message_count
3367+
type: LONG
3368+
- name: grpc.sent.message_count
3369+
type: LONG
3370+
- name: rpc.grpc.request.metadata.some-client-key
3371+
type: STRING_ARRAY
3372+
- name: rpc.grpc.status_code
3373+
type: LONG
3374+
- name: rpc.method
3375+
type: STRING
3376+
- name: rpc.service
3377+
type: STRING
3378+
- name: rpc.system
3379+
type: STRING
3380+
- name: server.address
3381+
type: STRING
3382+
- name: server.port
3383+
type: LONG
3384+
- span_kind: SERVER
3385+
attributes:
3386+
- name: grpc.received.message_count
3387+
type: LONG
3388+
- name: grpc.sent.message_count
3389+
type: LONG
3390+
- name: network.peer.address
3391+
type: STRING
3392+
- name: network.peer.port
3393+
type: LONG
3394+
- name: network.type
3395+
type: STRING
3396+
- name: rpc.grpc.request.metadata.some-server-key
3397+
type: STRING_ARRAY
3398+
- name: rpc.grpc.status_code
3399+
type: LONG
3400+
- name: rpc.method
3401+
type: STRING
3402+
- name: rpc.service
3403+
type: STRING
3404+
- name: rpc.system
3405+
type: STRING
3406+
- name: server.address
3407+
type: STRING
3408+
- name: server.port
3409+
type: LONG
32473410
guava:
32483411
- name: guava-10.0
32493412
source_path: instrumentation/guava-10.0
@@ -3277,12 +3440,26 @@ libraries:
32773440
type: STRING
32783441
hibernate:
32793442
- name: hibernate-3.3
3443+
description: This instrumentation
32803444
source_path: instrumentation/hibernate/hibernate-3.3
32813445
scope:
32823446
name: io.opentelemetry.hibernate-3.3
32833447
target_versions:
32843448
javaagent:
32853449
- org.hibernate:hibernate-core:[3.3.0.GA,4.0.0.Final)
3450+
configurations:
3451+
- name: otel.instrumentation.hibernate.experimental-span-attributes
3452+
description: Enables the addition of the experimental `hibernate.session_id`
3453+
span attribute.
3454+
type: boolean
3455+
default: false
3456+
telemetry:
3457+
- when: default
3458+
spans:
3459+
- span_kind: INTERNAL
3460+
attributes:
3461+
- name: hibernate.session_id
3462+
type: STRING
32863463
- name: hibernate-4.0
32873464
source_path: instrumentation/hibernate/hibernate-4.0
32883465
scope:

instrumentation-docs/collect.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,18 @@ main() {
153153
done < <(process_descriptors "${INSTRUMENTATIONS[@]}")
154154
run_gradle_tasks "${gradle_tasks[@]}"
155155

156-
# Setup colima if needed
157-
setup_colima
158-
159-
# Process colima-specific instrumentations
160-
echo "Processing colima instrumentations..."
161-
gradle_tasks=()
162-
while IFS= read -r line; do
163-
gradle_tasks+=("$line")
164-
done < <(process_descriptors "${COLIMA_INSTRUMENTATIONS[@]}")
165-
run_gradle_tasks "${gradle_tasks[@]}"
166-
167-
colima stop
156+
# # Setup colima if needed
157+
# setup_colima
158+
#
159+
# # Process colima-specific instrumentations
160+
# echo "Processing colima instrumentations..."
161+
# gradle_tasks=()
162+
# while IFS= read -r line; do
163+
# gradle_tasks+=("$line")
164+
# done < <(process_descriptors "${COLIMA_INSTRUMENTATIONS[@]}")
165+
# run_gradle_tasks "${gradle_tasks[@]}"
166+
#
167+
# colima stop
168168

169169
# uncomment the next line to remove all .telemetry directories
170170
#find_and_remove_all_telemetry

0 commit comments

Comments
 (0)