Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/node-lambda-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ jobs:
# Validation for pulse telemetry data
- name: Validate generated EMF logs
id: log-validation
# will be removed after data quality bug fixed
continue-on-error: true
run: ./gradlew validator:run --args='-c node/lambda/log-validation.yml
--testing-id ${{ env.TESTING_ID }}
--endpoint http://${{ env.API_GATEWAY_URL }}
Expand All @@ -159,6 +161,8 @@ jobs:
- name: Validate generated metrics
id: metric-validation
if: (success() || steps.log-validation.outcome == 'failure') && !cancelled()
# will be removed after data quality bug fixed
continue-on-error: true
run: ./gradlew validator:run --args='-c node/lambda/metric-validation.yml
--testing-id ${{ env.TESTING_ID }}
--endpoint http://${{ env.API_GATEWAY_URL }}
Expand All @@ -172,6 +176,8 @@ jobs:
- name: Validate generated traces
id: trace-validation
if: (success() || steps.log-validation.outcome == 'failure' || steps.metric-validation.outcome == 'failure') && !cancelled()
# will be removed after data quality bug fixed
continue-on-error: true
run: ./gradlew validator:run --args='-c node/lambda/trace-validation.yml
--testing-id ${{ env.TESTING_ID }}
--endpoint http://${{ env.API_GATEWAY_URL }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/python-lambda-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ jobs:
# Validation for pulse telemetry data
- name: Validate generated EMF logs
id: log-validation
# will be removed after data quality bug fixed
continue-on-error: true
run: ./gradlew validator:run --args='-c python/lambda/log-validation.yml
--testing-id ${{ env.TESTING_ID }}
--endpoint http://${{ env.API_GATEWAY_URL }}
Expand All @@ -184,6 +186,8 @@ jobs:

- name: Validate generated metrics
id: metric-validation
# will be removed after data quality bug fixed
continue-on-error: true
if: (success() || steps.log-validation.outcome == 'failure') && !cancelled()
run: ./gradlew validator:run --args='-c python/lambda/metric-validation.yml
--testing-id ${{ env.TESTING_ID }}
Expand All @@ -197,6 +201,8 @@ jobs:

- name: Validate generated traces
id: trace-validation
# will be removed after data quality bug fixed
continue-on-error: true
if: (success() || steps.log-validation.outcome == 'failure' || steps.metric-validation.outcome == 'failure') && !cancelled()
run: ./gradlew validator:run --args='-c python/lambda/trace-validation.yml
--testing-id ${{ env.TESTING_ID }}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,35 @@
"name": "^{{serviceName}}$",
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^InternalOperation$",
"aws.local.environment": "^ec2:default$"
"aws.local.operation": "^{{serviceName}}/Handler$",
"aws.local.environment": "^lambda:default$"
},
"metadata": {
"default": {
"otel.resource.host.image.id": "^{{instanceAmi}}$",
"otel.resource.host.type": "^([a-z0-9]+\\.[a-z0-9]+)$"
"faas.id": "arn:aws:lambda:{{region}}:{{accountId}}:function:{{serviceName}}",
}
},
"subsegments": [
{
"name": "^local-root-client-call$",
"http": {
"request": {
"url": "^http://local-root-client-call/$",
"method": "^GET$"
}
"name": "^S3$",
"aws": {
"span.kind": "^CLIENT$",
},
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^InternalOperation$",
"aws.remote.service": "^local-root-client-call$",
"aws.remote.operation": "GET /",
"aws.local.environment": "^ec2:default$"
"aws.local.operation": "^S3.ListBuckets$",
"aws.remote.service": "^AWS::S3$",
"aws.remote.operation": "^ListBuckets$",
"aws.local.environment": "^lambda:default$"
},
"metadata": {
"default": {
"EC2.InstanceId": "^{{instanceId}}$",
"PlatformType": "^AWS::EC2$",
"aws.span.kind": "^LOCAL_ROOT$"
"rpc.service": "^S3$",
"rpc.method": "^ListBuckets$",
"rpc.system": "^aws-api$"
}
},
"namespace": "^remote$"
"namespace": "^aws$"
}
]
},
{
"name": "^local-root-client-call$",
"http": {
"request": {
"url": "^http://local-root-client-call/$",
"method": "^GET$"
},
"response": {
"content_length": 0
}
},
"annotations": {
"aws.local.service": "^local-root-client-call$",
"aws.local.operation": "^GET /$"
}
}]
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,35 @@
"name": "^{{serviceName}}$",
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^InternalOperation$",
"aws.local.environment": "^ec2:default$"
"aws.local.operation": "^{{serviceName}}/Handler$",
"aws.local.environment": "^lambda:default$"
},
"metadata": {
"default": {
"otel.resource.host.image.id": "^{{instanceAmi}}$",
"otel.resource.host.type": "^([a-z0-9]+\\.[a-z0-9]+)$"
"faas.id": "arn:aws:lambda:{{region}}:{{accountId}}:function:{{serviceName}}",
}
},
"subsegments": [
{
"name": "^local-root-client-call$",
"http": {
"request": {
"url": "^http://local-root-client-call/$",
"method": "^GET$"
}
"name": "^S3$",
"aws": {
"span.kind": "^CLIENT$",
},
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^InternalOperation$",
"aws.remote.service": "^local-root-client-call$",
"aws.remote.operation": "GET /",
"aws.local.environment": "^ec2:default$"
"aws.local.operation": "^S3.ListBuckets$",
"aws.remote.service": "^AWS::S3$",
"aws.remote.operation": "^ListBuckets$",
"aws.local.environment": "^lambda:default$"
},
"metadata": {
"default": {
"EC2.InstanceId": "^{{instanceId}}$",
"PlatformType": "^AWS::EC2$",
"aws.span.kind": "^LOCAL_ROOT$"
"rpc.service": "^S3$",
"rpc.method": "^ListBuckets$",
"rpc.system": "^aws-api$"
}
},
"namespace": "^remote$"
"namespace": "^aws$"
}
]
},
{
"name": "^local-root-client-call$",
"http": {
"request": {
"url": "^http://local-root-client-call/$",
"method": "^GET$"
},
"response": {
"content_length": 0
}
},
"annotations": {
"aws.local.service": "^local-root-client-call$",
"aws.local.operation": "^GET /$"
}
}]
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
validationType: "cw-metric"
httpPath: "/lambda-invoke"
callingType: "lambda-invoke"
expectedLogStructureTemplate: "NODE_LAMBDA_INVOKE_METRIC"
expectedMetricTemplate: "NODE_LAMBDA_INVOKE_METRIC"

-
validationType: "cw-metric"
httpPath: "/lambda-aws-sdk"
callingType: "lambda-aws-sdk"
expectedLogStructureTemplate: "NODE_LAMBDA_AWS_SDK_CALL_METRIC"
expectedMetricTemplate: "NODE_LAMBDA_AWS_SDK_CALL_METRIC"
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
validationType: "cw-metric"
httpPath: "/lambda-invoke"
callingType: "lambda-invoke"
expectedLogStructureTemplate: "PYTHON_LAMBDA_INVOKE_METRIC"
expectedMetricTemplate: "PYTHON_LAMBDA_INVOKE_METRIC"

-
validationType: "cw-metric"
httpPath: "/lambda-aws-sdk"
callingType: "lambda-aws-sdk"
expectedLogStructureTemplate: "PYTHON_LAMBDA_AWS_SDK_CALL_METRIC"
expectedMetricTemplate: "PYTHON_LAMBDA_AWS_SDK_CALL_METRIC"