Skip to content

Commit 8a7b0e1

Browse files
Merge branch 'main' into skip-admin-tests
2 parents 24a571c + 7b8b263 commit 8a7b0e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+400
-50
lines changed

.cspell/dot-net.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ stdlibc
4141
struct
4242
TRACEFILE
4343
typeof
44+
WCFCORE
4445
Xunit

.github/workflows/format-native.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # tag: v6.0.1
4848

4949
- name: Setup Go
50-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # tag: v6.1.0
50+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # tag: v6.2.0
5151
with:
5252
go-version: '1.23.5'
5353
cache: false # Suppress a warning given that there are no go.sum files in the repo

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ This component adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
1717
- Support for file-based configuration of the IL rewrite for
1818
SqlClient instrumentation setting
1919
- Add support for `StackExchange.Redis` for applications targeting .NET Framework.
20+
- Automatically set the `service.instance.id` resource attribute if not provided.
21+
- Support for [CoreWCF.Primitives](https://www.nuget.org/packages/CoreWCF.Primitives/)
22+
traces instrumentation for versions `1.8.0`+.
2023

2124
### Changed
2225

OpenTelemetry.AutoInstrumentation.sln

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApplication.NoCode", "t
256256
EndProject
257257
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenTelemetry.AutoInstrumentation.Assemblies.NetFramework", "src\OpenTelemetry.AutoInstrumentation.Assemblies.NetFramework\OpenTelemetry.AutoInstrumentation.Assemblies.NetFramework.csproj", "{B69564D4-7D5B-7147-6CBA-233BB8A33C50}"
258258
EndProject
259+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApplication.Wcf.Core", "test\test-applications\integrations\TestApplication.Wcf.Core\TestApplication.Wcf.Core.csproj", "{0F864722-CE44-4D99-9B67-CF0ED1893FF1}"
260+
EndProject
259261
Global
260262
GlobalSection(SolutionConfigurationPlatforms) = preSolution
261263
Debug|Any CPU = Debug|Any CPU
@@ -1620,6 +1622,22 @@ Global
16201622
{B69564D4-7D5B-7147-6CBA-233BB8A33C50}.Release|x64.Build.0 = Release|Any CPU
16211623
{B69564D4-7D5B-7147-6CBA-233BB8A33C50}.Release|x86.ActiveCfg = Release|Any CPU
16221624
{B69564D4-7D5B-7147-6CBA-233BB8A33C50}.Release|x86.Build.0 = Release|Any CPU
1625+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|Any CPU.ActiveCfg = Debug|x64
1626+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|Any CPU.Build.0 = Debug|x64
1627+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|ARM64.ActiveCfg = Debug|Any CPU
1628+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|ARM64.Build.0 = Debug|Any CPU
1629+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|x64.ActiveCfg = Debug|Any CPU
1630+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|x64.Build.0 = Debug|Any CPU
1631+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|x86.ActiveCfg = Debug|Any CPU
1632+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Debug|x86.Build.0 = Debug|Any CPU
1633+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|Any CPU.ActiveCfg = Release|x64
1634+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|Any CPU.Build.0 = Release|x64
1635+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|ARM64.ActiveCfg = Release|Any CPU
1636+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|ARM64.Build.0 = Release|Any CPU
1637+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|x64.ActiveCfg = Release|Any CPU
1638+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|x64.Build.0 = Release|Any CPU
1639+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|x86.ActiveCfg = Release|Any CPU
1640+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1}.Release|x86.Build.0 = Release|Any CPU
16231641
EndGlobalSection
16241642
GlobalSection(SolutionProperties) = preSolution
16251643
HideSolutionNode = FALSE
@@ -1715,6 +1733,7 @@ Global
17151733
{665280EB-F428-4C04-A293-33228C73BF8A} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
17161734
{500BF40F-EECB-4F6A-377B-EDBDFFDE09BE} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
17171735
{B69564D4-7D5B-7147-6CBA-233BB8A33C50} = {9E5F0022-0A50-40BF-AC6A-C3078585ECAB}
1736+
{0F864722-CE44-4D99-9B67-CF0ED1893FF1} = {E409ADD3-9574-465C-AB09-4324D205CC7C}
17181737
EndGlobalSection
17191738
GlobalSection(ExtensibilityGlobals) = postSolution
17201739
SolutionGuid = {160A1D00-1F5B-40F8-A155-621B4459D78F}

build/LibraryVersions.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,11 @@ public static partial class LibraryVersion
190190
new("2.12.0"),
191191
]
192192
},
193+
{
194+
"TestApplication.Wcf.Core",
195+
[
196+
new("1.8.0", supportedFrameworks: [ "net10.0", "net9.0", "net8.0" ]),
197+
]
198+
},
193199
};
194200
}

docker/debian-arm64.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0.308-bookworm-slim@sha256:51060ced0e5dc1282a587a092783132ba8b0ec25150d3bc61e99bf0ef2d62593
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0.308-bookworm-slim@sha256:ddc0e6d46a459d1c740dd9e3d2668bc50f24d420274fb751e39cbf75154b9485
22
# There is no official base image for .NET SDK 10+ on Debian, so install .NET10 via dotnet-install
33

44
RUN apt-get update && \

docker/debian.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0.308-bookworm-slim@sha256:51060ced0e5dc1282a587a092783132ba8b0ec25150d3bc61e99bf0ef2d62593
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0.308-bookworm-slim@sha256:ddc0e6d46a459d1c740dd9e3d2668bc50f24d420274fb751e39cbf75154b9485
22
# There is no official base image for .NET SDK 10+ on Debian, so install .NET10 via apt-get
33

44
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \

docs/config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ due to lack of stable semantic convention.
152152
| `SQLCLIENT` | [Microsoft.Data.SqlClient](https://www.nuget.org/packages/Microsoft.Data.SqlClient), [System.Data.SqlClient](https://www.nuget.org/packages/System.Data.SqlClient) \[7\] and `System.Data` (shipped with .NET Framework) | * \[8\] | source | [Experimental](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md) |
153153
| `STACKEXCHANGEREDIS` | [StackExchange.Redis](https://www.nuget.org/packages/StackExchange.Redis) | ≥2.6.122 & < 3.0.0 | source & bytecode | [Experimental](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md) |
154154
| `WCFCLIENT` | WCF | * | source & bytecode | [Experimental](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md) |
155+
| `WCFCORE` | [CoreWCF.Primitives](https://www.nuget.org/packages/CoreWCF.Primitives) **Not supported on .NET Framework** | ≥1.8.0 | source | [Experimental](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md) |
155156
| `WCFSERVICE` | WCF **Not supported on .NET**. | * | source & bytecode | [Experimental](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md) |
156157

157158
\[1\]: Only integrated pipeline mode is supported.

docs/file-based-configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ instrumentation/development:
513513
sqlclient: # Microsoft.Data.SqlClient & System.Data.SqlClient
514514
stackexchangeredis: # StackExchange.Redis
515515
wcfclient: # WCF Client
516+
wcfcore: # CoreWCF.Primitives
516517
wcfservice: # WCF Service
517518
metrics:
518519
aspnet: # ASP.NET metrics

src/OpenTelemetry.AutoInstrumentation/Configurations/EnvironmentConfigurationTracerHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public static TracerProviderBuilder UseEnvironmentVariables(
5252
TracerInstrumentation.MySqlData => builder.AddSource("connector-net"),
5353
TracerInstrumentation.EntityFrameworkCore => Wrappers.AddEntityFrameworkCoreInstrumentation(builder, pluginManager, lazyInstrumentationLoader, settings),
5454
TracerInstrumentation.GraphQL => Wrappers.AddGraphQLInstrumentation(builder, pluginManager, lazyInstrumentationLoader, settings),
55+
TracerInstrumentation.WcfCore => builder.AddSource("CoreWCF.Primitives"),
5556
#endif
5657
_ => null
5758
};

0 commit comments

Comments
 (0)