Skip to content

Commit 14d3403

Browse files
committed
feat: enhance telemetry with GitHub event number for both Clearcut and OTLP
1 parent ad28b76 commit 14d3403

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ runs:
444444
sed -e "s#OTLP_GOOGLE_CLOUD_PROJECT#${OTLP_GOOGLE_CLOUD_PROJECT}#g" \
445445
-e "s#GITHUB_REPOSITORY_PLACEHOLDER#${GITHUB_REPOSITORY}#g" \
446446
-e "s#GITHUB_RUN_ID_PLACEHOLDER#${GITHUB_RUN_ID}#g" \
447+
-e "s#GITHUB_EVENT_NUMBER_PLACEHOLDER#${GITHUB_EVENT_NUMBER}#g" \
447448
"${GITHUB_ACTION_PATH}/scripts/collector-gcp.yaml.template" > ".gemini/collector-gcp.yaml"
448449
449450
# Ensure credentials file has the right permissions
@@ -494,6 +495,7 @@ runs:
494495
GITHUB_ACTION_PATH: '${{ github.action_path }}'
495496
GITHUB_REPOSITORY: '${{ github.repository }}'
496497
GITHUB_RUN_ID: '${{ github.run_id }}'
498+
GITHUB_EVENT_NUMBER: '${{ github.event.issue.number || github.event.pull_request.number }}'
497499

498500
branding:
499501
icon: 'terminal'

scripts/collector-gcp.yaml.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ processors:
1212
- key: 'github.run_id'
1313
value: 'GITHUB_RUN_ID_PLACEHOLDER'
1414
action: 'upsert'
15+
- key: 'github.event.number'
16+
value: 'GITHUB_EVENT_NUMBER_PLACEHOLDER'
17+
action: 'upsert'
1518
batch:
1619
send_batch_size: 100
1720
timeout: '10s'

0 commit comments

Comments
 (0)