Skip to content

Commit f37bba0

Browse files
committed
Update TestLambdaContext from Amazon.Lambda.TestUtilities with interface updates on ILambdaContext
1 parent 7c1c6ff commit f37bba0

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.autover/changes/6298bf78-28f9-45b6-a978-12313b7ea849.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"ChangelogMessages": [
1414
"Add missing TraceId property on the ILambdaContext"
1515
]
16-
}
16+
},
17+
{
18+
"Name": "Amazon.Lambda.TestUtilities",
19+
"Type": "Patch",
20+
"ChangelogMessages": [
21+
"Add missing TraceId property on the ILambdaContext"
22+
]
23+
}
1724
]
1825
}

Libraries/src/Amazon.Lambda.TestUtilities/TestLambdaContext.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Threading.Tasks;
@@ -70,5 +70,15 @@ public class TestLambdaContext : ILambdaContext
7070
/// Remaining execution time till the function will be terminated.
7171
/// </summary>
7272
public TimeSpan RemainingTime { get; set; }
73+
74+
/// <summary>
75+
/// Gets the tenant id for the Lambda function.
76+
/// </summary>
77+
public string TenantId { get; set; }
78+
79+
/// <summary>
80+
/// The trace id generated by Lambda for distributed tracing across AWS services.
81+
/// </summary>
82+
public string TraceId { get; set; }
7383
}
7484
}

0 commit comments

Comments
 (0)