Skip to content

Commit d64ffa9

Browse files
authored
Merge branch 'main' into wcf-error-errorhandler
2 parents 5defa5f + 4448613 commit d64ffa9

15 files changed

Lines changed: 22 additions & 21 deletions

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3838

3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
40+
uses: github/codeql-action/init@d6bbdef45e766d081b84a2def353b0055f728d3e # v3.29.3
4141
with:
4242
languages: ${{ matrix.language }}
4343

@@ -48,4 +48,4 @@ jobs:
4848
run: dotnet pack opentelemetry-dotnet-contrib.proj --configuration Release
4949

5050
- name: Perform CodeQL Analysis
51-
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
51+
uses: github/codeql-action/analyze@d6bbdef45e766d081b84a2def353b0055f728d3e # v3.29.3

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
45+
uses: github/codeql-action/upload-sarif@d6bbdef45e766d081b84a2def353b0055f728d3e # v3.29.3
4646
with:
4747
sarif_file: results.sarif

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ shipped through CI.
218218
> [!NOTE]
219219
> It is generally helpful to reference a previous pull request when adding a new
220220
project to the repository. A good example to follow is the pull request which
221-
added the `OpenTelemetry.Resources.OperatingSystem` project:
222-
[#1943](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/1943).
221+
added the `OpenTelemetry.OpAmp.Client` project:
222+
[#2917](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2917).
223223

224224
* Based on what your project is, you may need to depend on the [OpenTelemetry
225225
SDK](https://www.nuget.org/packages/OpenTelemetry) or the [OpenTelemetry

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ repository](https://github.com/open-telemetry/community/blob/main/guides/contrib
7979

8080
[@open-telemetry/dotnet-contrib-approvers](https://github.com/orgs/open-telemetry/teams/dotnet-contrib-approvers):
8181

82+
* [Martin Costello](https://github.com/martincostello), Grafana Labs
8283
* [Mikel Blanchard](https://github.com/CodeBlanch), Microsoft
8384
* [Timothy "Mothra" Lee](https://github.com/TimothyMothra)
8485

src/OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule/ActivityHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using OpenTelemetry.Context;
88
using OpenTelemetry.Context.Propagation;
99
using OpenTelemetry.Internal;
10+
using OpenTelemetry.Trace;
1011

1112
namespace OpenTelemetry.Instrumentation.AspNet;
1213

@@ -68,7 +69,7 @@ public static bool HasStarted(HttpContext context, out Activity? aspNetActivity)
6869
{
6970
tags = cachedTagsStorage ??= new KeyValuePair<string, object?>[1];
7071

71-
tags[0] = new KeyValuePair<string, object?>("url.path", path);
72+
tags[0] = new KeyValuePair<string, object?>(SemanticConventions.AttributeUrlPath, path);
7273
}
7374
else
7475
{

src/OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule/AspNetTelemetryEventSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace OpenTelemetry.Instrumentation.AspNet;
1414
internal sealed class AspNetTelemetryEventSource : EventSource
1515
{
1616
/// <summary>
17-
/// Instance of the PlatformEventSource class.
17+
/// Instance of the AspNetTelemetryEventSource class.
1818
/// </summary>
1919
public static readonly AspNetTelemetryEventSource Log = new();
2020

src/OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule/OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<Compile Include="$(RepoRoot)\src\Shared\AssemblyVersionExtensions.cs" Link="Includes\AssemblyVersionExtensions.cs" />
2020
<Compile Include="$(RepoRoot)\src\Shared\ExceptionExtensions.cs" Link="Includes\ExceptionExtensions.cs" />
2121
<Compile Include="$(RepoRoot)\src\Shared\Guard.cs" Link="Includes\Guard.cs" />
22+
<Compile Include="$(RepoRoot)\src\Shared\SemanticConventions.cs" Link="Includes\SemanticConventions.cs" />
2223
</ItemGroup>
2324

2425
<ItemGroup>

src/OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule/TelemetryHttpModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class TelemetryHttpModule : IHttpModule
3434
/// <summary>
3535
/// Gets the <see cref="TelemetryHttpModuleOptions"/> applied to requests processed by the handler.
3636
/// </summary>
37-
public static TelemetryHttpModuleOptions Options { get; } = new TelemetryHttpModuleOptions();
37+
public static TelemetryHttpModuleOptions Options { get; } = new();
3838

3939
/// <inheritdoc />
4040
public void Dispose()

src/OpenTelemetry.Instrumentation.AspNet/AspNetInstrumentationMeterProviderBuilderExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public static MeterProviderBuilder AddAspNetInstrumentation(
4040
services.Configure(configure);
4141
}
4242

43-
services.ConfigureOpenTelemetryMeterProvider((sp, builder) =>
43+
services.ConfigureOpenTelemetryMeterProvider((sp, meterProviderBuilder) =>
4444
{
4545
var options = sp.GetRequiredService<IOptionsMonitor<AspNetMetricsInstrumentationOptions>>().Get(name: null);
4646

47-
builder.AddInstrumentation(() => new AspNetMetrics(options));
48-
builder.AddMeter(AspNetMetrics.InstrumentationName);
47+
meterProviderBuilder.AddInstrumentation(() => new AspNetMetrics(options));
48+
meterProviderBuilder.AddMeter(AspNetMetrics.InstrumentationName);
4949
});
5050
});
5151
}

src/OpenTelemetry.Instrumentation.AspNet/AspNetInstrumentationTracerProviderBuilderExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ public static TracerProviderBuilder AddAspNetInstrumentation(
4343
services.RegisterOptionsFactory(
4444
configuration => new AspNetTraceInstrumentationOptions(configuration));
4545

46-
services.ConfigureOpenTelemetryTracerProvider((sp, builder) =>
46+
services.ConfigureOpenTelemetryTracerProvider((sp, tracerProviderBuilder) =>
4747
{
4848
var options = sp.GetRequiredService<IOptionsMonitor<AspNetTraceInstrumentationOptions>>().Get(name: null);
4949

50-
builder.AddInstrumentation(() => new AspNetInstrumentation(options));
51-
builder.AddSource(TelemetryHttpModule.AspNetSourceName);
50+
tracerProviderBuilder.AddInstrumentation(() => new AspNetInstrumentation(options));
51+
tracerProviderBuilder.AddSource(TelemetryHttpModule.AspNetSourceName);
5252
});
5353
});
5454
}

0 commit comments

Comments
 (0)