Skip to content

Commit

Permalink
Simplify Trace validation in Lambda case (#305)
Browse files Browse the repository at this point in the history
*Description of changes:*
Simplify Trace validation in Lambda case

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
  • Loading branch information
mxiamxia authored Oct 30, 2024
1 parent eaa6a45 commit 1dda66b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,11 @@
[{
"name": "^{{serviceName}}$",
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^{{serviceName}}/FunctionHandler$"
},
"metadata": {
"default": {
"faas.id": "arn:aws:lambda:{{region}}:{{accountId}}:function:{{serviceName}}$"
}
"name": "^{{serviceName}}/default$",
},
"subsegments": [
{
"name": "^S3$",
"name": "^Lambda$",
"aws": {
"span.kind": "^CLIENT$"
},
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^S3.ListBuckets$",
"aws.remote.service": "^AWS::S3$",
"aws.remote.operation": "^ListBuckets$"
},
"metadata": {
"default": {
"rpc.service": "^S3$",
"rpc.method": "^ListBuckets$",
"rpc.system": "^aws-api$"
}
"function_name": "^{{serviceName}}$",
},
"namespace": "^aws$"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,11 @@
[{
"name": "^{{serviceName}}$",
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^{{serviceName}}/FunctionHandler$"
},
"metadata": {
"default": {
"faas.id": "arn:aws:lambda:{{region}}:{{accountId}}:function:{{serviceName}}$"
}
"name": "^{{serviceName}}/default$",
},
"subsegments": [
{
"name": "^S3$",
"name": "^Lambda$",
"aws": {
"span.kind": "^CLIENT$"
},
"annotations": {
"aws.local.service": "^{{serviceName}}$",
"aws.local.operation": "^S3.ListBuckets$",
"aws.remote.service": "^AWS::S3$",
"aws.remote.operation": "^ListBuckets$"
},
"metadata": {
"default": {
"rpc.service": "^S3$",
"rpc.method": "^ListBuckets$",
"rpc.system": "^aws-api$"
}
"function_name": "^{{serviceName}}$",
},
"namespace": "^aws$"
}
Expand Down

0 comments on commit 1dda66b

Please sign in to comment.