Skip to content

Commit 0cfc38e

Browse files
authored
Merge branch 'develop' into fix/downgrade-aspect-injector
2 parents bd98859 + 3c780df commit 0cfc38e

File tree

6 files changed

+557
-7
lines changed

6 files changed

+557
-7
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
38+
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
3939
with:
4040
languages: ${{ matrix.language }}
4141

@@ -45,7 +45,7 @@ jobs:
4545
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4646
# If this step fails, then you should remove it and run the build manually (see below)
4747
- name: Autobuild
48-
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
48+
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
4949

5050
# ℹ️ Command-line programs to run using the OS shell.
5151
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -58,4 +58,4 @@ jobs:
5858
# ./location_of_script_within_repo/buildscript.sh
5959

6060
- name: Perform CodeQL Analysis
61-
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
61+
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v3.29.5

.github/workflows/ossf_scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ jobs:
4343

4444
# Upload the results to GitHub's code scanning dashboard.
4545
- name: "Upload to code-scanning"
46-
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
46+
uses: github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
4747
with:
4848
sarif_file: results.sarif

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
44
documentation, we greatly value feedback and contributions from our community.
55

6+
We encourage contributions from the community and we will work with contributors to merge their pull requests.
7+
Rarely, we may close pull requests that do not meet our guidelines specified in CONTRIBUTING.md, or will require unreasonable effort to meet our quality bar.
8+
69
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
710
information to effectively respond to your bug report or contribution.
811

docs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# v9.1.18
2-
FROM squidfunk/mkdocs-material@sha256:00f9276315990b82f5af8c47bb2b71e2c69aef9f02a08f8dffd2515f42310753
2+
FROM squidfunk/mkdocs-material@sha256:f5c556a6d30ce0c1c0df10e3c38c79bbcafdaea4b1c1be366809d0d4f6f9d57f
33

44
COPY requirements.txt /tmp/
55
RUN pip install --require-hashes -r /tmp/requirements.txt

libraries/src/AWS.Lambda.Powertools.Tracing/Tracing.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,20 @@ public static void WithSubsegment(string nameSpace, string name, Action<TracingS
154154
XRayRecorder.Instance.SetNamespace(GetNamespaceOrDefault(nameSpace));
155155
try
156156
{
157-
var entity = XRayRecorder.Instance.GetEntity() as TracingSubsegment;
158-
subsegment?.Invoke(entity);
157+
var entity = XRayRecorder.Instance.GetEntity();
158+
var tracingSubsegment = new TracingSubsegment("## " + name);
159+
160+
// Copy properties from the current entity
161+
if (entity != null)
162+
{
163+
if (entity is Subsegment subsegmentEntity)
164+
{
165+
tracingSubsegment.Namespace = subsegmentEntity.Namespace;
166+
}
167+
tracingSubsegment.Sampled = entity.Sampled;
168+
}
169+
170+
subsegment?.Invoke(tracingSubsegment);
159171
}
160172
finally
161173
{

0 commit comments

Comments
 (0)