File tree Expand file tree Collapse file tree 4 files changed +36
-9
lines changed
java/com/amazon/aoc/fileconfigs
expected-data-template/python/ec2/adot-genai
validations/python/ec2/adot-genai Expand file tree Collapse file tree 4 files changed +36
-9
lines changed Original file line number Diff line number Diff line change @@ -127,15 +127,15 @@ jobs:
127
127
--instance-id ${{ env.INSTANCE_ID }}
128
128
--trace-id ${{ env.W3C_TRACE_ID }}'
129
129
130
- # - name: Validate generated metrics
131
- # if: (success() || failure()) && !cancelled()
132
- # run: ./gradlew validator:run --args='-c python/ec2/default /metric-validation.yml
133
- # --testing-id ${{ env.TESTING_ID }}
134
- # --endpoint http://${{ env.INSTANCE_IP }}:8000
135
- # --region ${{ env.E2E_TEST_AWS_REGION }}
136
- # --metric-namespace ${{ env.METRIC_NAMESPACE }}
137
- # --service-name langchain-traceloop-app
138
- # --instance-id ${{ env.INSTANCE_ID }}'
130
+ - name : Validate generated metrics
131
+ if : (success() || failure()) && !cancelled()
132
+ run : ./gradlew validator:run --args='-c python/ec2/adot-genai /metric-validation.yml
133
+ --testing-id ${{ env.TESTING_ID }}
134
+ --endpoint http://${{ env.INSTANCE_IP }}:8000
135
+ --region ${{ env.E2E_TEST_AWS_REGION }}
136
+ --metric-namespace ${{ env.METRIC_NAMESPACE }}
137
+ --service-name langchain-traceloop-app
138
+ --instance-id ${{ env.INSTANCE_ID }}'
139
139
140
140
- name : Validate generated traces
141
141
if : (success() || failure()) && !cancelled()
Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ public enum PredefinedExpectedTemplate implements FileConfig {
249
249
/** Python EC2 ADOT Gen AI Test Case Validation */
250
250
PYTHON_EC2_ADOT_GENAI_LOG ("/expected-data-template/python/ec2/adot-genai/genai-log.mustache" ),
251
251
PYTHON_EC2_ADOT_GENAI_TRACE ("/expected-data-template/python/ec2/adot-genai/genai-trace.mustache" ),
252
+ PYTHON_EC2_ADOT_GENAI_METRIC ("/expected-data-template/python/ec2/adot-genai/genai-metric.mustache" ),
252
253
253
254
/** Python K8S Test Case Validations */
254
255
PYTHON_K8S_OUTGOING_HTTP_CALL_LOG ("/expected-data-template/python/k8s/outgoing-http-call-log.mustache" ),
Original file line number Diff line number Diff line change
1
+ -
2
+ metricName: gen_ai.client.token.usage
3
+ namespace: { {metricNamespace} }
4
+ dimensions:
5
+ -
6
+ name: gen_ai.system
7
+ value: Langchain
8
+ -
9
+ name: gen_ai.token.type
10
+ value: input
11
+ -
12
+ metricName: gen_ai.client.token.usage
13
+ namespace: { {metricNamespace} }
14
+ dimensions:
15
+ -
16
+ name: gen_ai.system
17
+ value: Langchain
18
+ -
19
+ name: gen_ai.token.type
20
+ value: output
Original file line number Diff line number Diff line change
1
+ -
2
+ validationType : " cw-metric"
3
+ httpPath : " ai-chat"
4
+ httpMethod : " post"
5
+ callingType : " http"
6
+ expectedMetricTemplate : " PYTHON_EC2_ADOT_GENAI_METRIC"
You can’t perform that action at this time.
0 commit comments