Skip to content

Commit ebb37d7

Browse files
committed
couple more
1 parent 30dd30c commit ebb37d7

File tree

5 files changed

+336
-146
lines changed

5 files changed

+336
-146
lines changed

docs/instrumentation-list.yaml

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,6 +3236,8 @@ libraries:
32363236
type: STRING
32373237
grpc:
32383238
- name: grpc-1.6
3239+
description: This instrumentation enables RPC CLIENT and SERVER spans and metrics
3240+
for gRPC version 1.6 and above.
32393241
source_path: instrumentation/grpc-1.6
32403242
scope:
32413243
name: io.opentelemetry.grpc-1.6
@@ -3244,6 +3246,182 @@ libraries:
32443246
- io.grpc:grpc-core:[1.6.0,)
32453247
library:
32463248
- io.grpc:grpc-core:1.6.0
3249+
configurations:
3250+
- name: otel.instrumentation.grpc.emit-message-events
3251+
description: Determines whether to emit a span event for each individual message
3252+
received and sent.
3253+
type: boolean
3254+
default: true
3255+
- name: otel.instrumentation.grpc.experimental-span-attributes
3256+
description: |
3257+
Enable the capture of experimental span attributes `grpc.received.message_count`, `grpc.sent.message_count` and `grpc.canceled`.
3258+
type: boolean
3259+
default: false
3260+
- name: otel.instrumentation.grpc.capture-metadata.client.request
3261+
description: |
3262+
A comma-separated list of request metadata keys. gRPC client instrumentation will capture metadata values corresponding to configured keys as span attributes.
3263+
type: list
3264+
default: ''
3265+
- name: otel.instrumentation.grpc.capture-metadata.server.request
3266+
description: |
3267+
A comma-separated list of request metadata keys. gRPC server instrumentation will capture metadata values corresponding to configured keys as span attributes.
3268+
type: list
3269+
default: ''
3270+
telemetry:
3271+
- when: default
3272+
metrics:
3273+
- name: rpc.client.duration
3274+
description: The duration of an outbound RPC invocation.
3275+
type: HISTOGRAM
3276+
unit: ms
3277+
attributes:
3278+
- name: rpc.grpc.status_code
3279+
type: LONG
3280+
- name: rpc.method
3281+
type: STRING
3282+
- name: rpc.service
3283+
type: STRING
3284+
- name: rpc.system
3285+
type: STRING
3286+
- name: server.address
3287+
type: STRING
3288+
- name: server.port
3289+
type: LONG
3290+
- name: rpc.server.duration
3291+
description: The duration of an inbound RPC invocation.
3292+
type: HISTOGRAM
3293+
unit: ms
3294+
attributes:
3295+
- name: network.type
3296+
type: STRING
3297+
- name: rpc.grpc.status_code
3298+
type: LONG
3299+
- name: rpc.method
3300+
type: STRING
3301+
- name: rpc.service
3302+
type: STRING
3303+
- name: rpc.system
3304+
type: STRING
3305+
- name: server.address
3306+
type: STRING
3307+
- name: server.port
3308+
type: LONG
3309+
spans:
3310+
- span_kind: CLIENT
3311+
attributes:
3312+
- name: rpc.grpc.status_code
3313+
type: LONG
3314+
- name: rpc.method
3315+
type: STRING
3316+
- name: rpc.service
3317+
type: STRING
3318+
- name: rpc.system
3319+
type: STRING
3320+
- name: server.address
3321+
type: STRING
3322+
- name: server.port
3323+
type: LONG
3324+
- span_kind: SERVER
3325+
attributes:
3326+
- name: network.peer.address
3327+
type: STRING
3328+
- name: network.peer.port
3329+
type: LONG
3330+
- name: network.type
3331+
type: STRING
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+
- when: otel.instrumentation.grpc.experimental-span-attributes=true
3345+
metrics:
3346+
- name: rpc.client.duration
3347+
description: The duration of an outbound RPC invocation.
3348+
type: HISTOGRAM
3349+
unit: ms
3350+
attributes:
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+
- name: rpc.server.duration
3364+
description: The duration of an inbound RPC invocation.
3365+
type: HISTOGRAM
3366+
unit: ms
3367+
attributes:
3368+
- name: network.type
3369+
type: STRING
3370+
- name: rpc.grpc.status_code
3371+
type: LONG
3372+
- name: rpc.method
3373+
type: STRING
3374+
- name: rpc.service
3375+
type: STRING
3376+
- name: rpc.system
3377+
type: STRING
3378+
- name: server.address
3379+
type: STRING
3380+
- name: server.port
3381+
type: LONG
3382+
spans:
3383+
- span_kind: CLIENT
3384+
attributes:
3385+
- name: grpc.received.message_count
3386+
type: LONG
3387+
- name: grpc.sent.message_count
3388+
type: LONG
3389+
- name: rpc.grpc.status_code
3390+
type: LONG
3391+
- name: rpc.method
3392+
type: STRING
3393+
- name: rpc.service
3394+
type: STRING
3395+
- name: rpc.system
3396+
type: STRING
3397+
- name: server.address
3398+
type: STRING
3399+
- name: server.port
3400+
type: LONG
3401+
- span_kind: SERVER
3402+
attributes:
3403+
- name: grpc.received.message_count
3404+
type: LONG
3405+
- name: grpc.sent.message_count
3406+
type: LONG
3407+
- name: network.peer.address
3408+
type: STRING
3409+
- name: network.peer.port
3410+
type: LONG
3411+
- name: network.type
3412+
type: STRING
3413+
- name: rpc.grpc.status_code
3414+
type: LONG
3415+
- name: rpc.method
3416+
type: STRING
3417+
- name: rpc.service
3418+
type: STRING
3419+
- name: rpc.system
3420+
type: STRING
3421+
- name: server.address
3422+
type: STRING
3423+
- name: server.port
3424+
type: LONG
32473425
guava:
32483426
- name: guava-10.0
32493427
source_path: instrumentation/guava-10.0

instrumentation-docs/collect.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@ main() {
154154
run_gradle_tasks "${gradle_tasks[@]}"
155155

156156
# 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
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)