Skip to content

Commit

Permalink
Merge branch 'main' into release-1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek authored Sep 27, 2024
2 parents 19b31a6 + baf1f78 commit 483f0e6
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-centos-native-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-nuget-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: cat /etc/os-release

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # tag: v3.3.0
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0
with:
fetch-depth: 0 # fetching all, needed to correctly calculate version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Test demo
run: make test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Setup .NET 8
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # tag: v4.0.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Install Clang tools
shell: bash
Expand All @@ -32,7 +32,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # tag: v5.0.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Test the Shell scripts from README.md in Docker container
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # tag: v4.1.8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Install shellcheck
run: sudo apt update && sudo apt install --assume-yes shellcheck
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Run markdown links chceks
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release PR') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # tag: v4.2.0

- name: Setup ARM64 Environment Variables
if: ${{ matrix.machine == 'otel-linux-arm64' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,30 @@ private static string ResolveManagedProfilerDirectory()
return null;
}

Logger.Debug("Requester [{0}] requested [{1}]", args?.RequestingAssembly?.FullName ?? "<null>", args?.Name ?? "<null>");
Logger.Debug("Requester [{0}] requested [{1}]", args.RequestingAssembly?.FullName ?? "<null>", args.Name ?? "<null>");

// All MongoDB* are signed and does not follow https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/versioning#assembly-version
// There is no possibility to automatically redirect from 2.28.0 to 2.29.0.
// Loading assembly and ignoring this version.
if (assemblyName.StartsWith("MongoDB", StringComparison.OrdinalIgnoreCase) &&
(string.Equals(assemblyName, "MongoDB.Driver.Core", StringComparison.OrdinalIgnoreCase) ||
string.Equals(assemblyName, "MongoDB.Bson", StringComparison.OrdinalIgnoreCase) ||
string.Equals(assemblyName, "MongoDB.Libmongocrypt", StringComparison.OrdinalIgnoreCase)))
{
try
{
var mongoAssembly = Assembly.Load(assemblyName);
Logger.Debug<string, bool>("Assembly.Load(\"{0}\") succeeded={1}", assemblyName, mongoAssembly != null);
return mongoAssembly;
}
catch (Exception ex)
{
Logger.Debug(ex, "Assembly.Load(\"{0}\") Exception: {1}", assemblyName, ex.Message);
}

return null;
}

var path = Path.Combine(ManagedProfilerDirectory, $"{assemblyName}.dll");
if (File.Exists(path))
{
Expand Down

0 comments on commit 483f0e6

Please sign in to comment.