Commit Graph

17 Commits

Author SHA1 Message Date
Piotr Kiełkowicz db60adc2d4
Bump OpenTelemetry main packages to 1.10.0 (#3816)
* Bump OpenTelemetry main packages to 1.10.0

* Fix ActivityHelperTests tests + CHANGELOG

* Fix DefinedTransientDeps_Are_MatchingGeneratedDeps

* Update BuildTests verified files

* Bump Microsoft.AspNetCore.SignalR.Client to 9.0.0

Older version references to old ILogger

* [Tests] Bump Microsoft.Extensions.Hosting to 9.0.0

Older version brings old dependency on ILogger

* Execute windows containers tests only against .net fx 4.6.2

There is no tests for other frameworks. It leads to build failures

* CentOS Stream 9 - install dotnet by dotnet-install.sh

centos repositories contains only prereleased versions of .NET9

* docs/changelog
2024-11-29 05:55:27 +01:00
Piotr Kiełkowicz e205769091
.NET9 support (#3796)
* Typo fix

* Update End OF Support validation rule

* Update Min Supported framework rule

* Update code space

* CHANGELOG

* Update developing documentation

* Update documentation

* Use .NET9 in build pipeline
drops .NET7 and .NET6

* Bump LangVersion to 13

* Update SDK Version analyzer

* Compile against .NET9

drops .NET6 and .NET7

* Adjust nuke build

* Fix build tests

* Update examples documentation

* Cleanup net6 references in project files

* Fix tests

* Cleanup target frameworks for generated tests targets

* Adjust conditional compilation

* Remove legacy code from LogBuilderExtensions

* Fix dev comment

* Adjust CI to execute scripts tests against .net9

* revert demo target versions.

It should be fixed just after next release

* Centos Stream9 - install .NET9

* Fix LoggingBuilder integration for version 9.*

* drop debugger launch

* cleanup using

* sync versions in the comments

* DuckTyping - include GH item in TODO comment

* TransientDependenciesTests - update comment
2024-11-21 20:23:18 +01:00
Piotr Kiełkowicz 08402fdb24
Drop support for macOs 11 (#3464) 2024-06-20 08:50:04 +02:00
Piotr Kiełkowicz 86a32ceb4a
Capture HTTP Headers/gRPC Metadata as span attributes (#3444) 2024-06-12 05:25:47 +00:00
Piotr Kiełkowicz 9a96610008
Bump OTel to 1.7.0 (#3213) 2024-01-10 18:24:00 +00:00
Piotr Kiełkowicz 938d1b021d
Support for .NET 8 (#2996)
Co-authored-by: Andrew Lock <andrew.lock@datadoghq.com>
2023-11-16 06:34:31 +01:00
dependabot[bot] afefa2cac8
Bump Grpc.Net.Client from 2.56.0 to 2.57.0 (#2912)
* Bump Grpc.Net.Client from 2.52.0 to 2.57.0

Bumps [Grpc.Net.Client](https://github.com/grpc/grpc-dotnet) from 2.52.0 to 2.57.0.
- [Release notes](https://github.com/grpc/grpc-dotnet/releases)
- [Changelog](https://github.com/grpc/grpc-dotnet/blob/master/doc/release_process.md)
- [Commits](https://github.com/grpc/grpc-dotnet/compare/v2.52.0...v2.57.0)

---
updated-dependencies:
- dependency-name: Grpc.Net.Client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Generated files

* Revert changes in production code

* Fix build test application

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
2023-09-07 07:51:05 +02:00
Zach Montoya df78d34cb9
Update native code (#2280)
* Port all of the changes to the native product and native tests

* Pass integrations to the profiler via C# and PInvoke, instead of integrations.json

* Delete integrations.json and remove environment variable OTEL_DOTNET_AUTO_INTEGRATIONS_FILE

* Add ByRef improvements to the CallTarget infrastructure:
- struct CallTargetReturn/CallTargetReturn<T> is now a readonly ref struct
- Pass CallTargetState by ref into EndMethod integration callbacks
- Pass input arguments by ref into BeginMethod integration callbacks

See f2cbb4ba93

* Really small changes to CallTarget infrastructure

* Fix build when using C#11

* Run format-native.sh

* Update native headers

* Fix possible null reference exception

* Fix changelog lint error

* Fix yet another native header issue

* Skip the StrongNamedTests for now

* Add the instrumentation type ("Trace|Log|Metric") and the instrumentation name (e.g. "GraphQL") to each instrumentation to allow for enabling and disabling integrations via environment variables

* Fix native format errors

* Fix the StackExchangeRedis integration definitions, which should resolve the integration test issues for the CustomSdkTests case and the StackExchangeRedisTests case

* Drop: Temporary launchSettings.json

* Commit updates to NServiceBus to try and resolve multiple System.Diagnostics.DiagnosticSource dll's getting loaded

* Add DiagnosticSource package reference to fix .NET Frameowrk test applications

* Add test skip for "TestApplication.StrongNamedValidation" spans, and document the GH issue that tracks the follow-up work

* Remove Datadog log prefix

* PR feedback: Update comments in NativeCallTargetDefinition.cs to keep the native call target definitions struct in-sync on the managed and native side

---------
2023-04-14 07:24:06 +02:00
Piotr Kiełkowicz 94d4aff0b7
Grpc.Net.Client - multi library version test (#2347) 2023-03-20 08:24:12 +00:00
Piotr Kiełkowicz 309c20b29b
[IntegrationTests] Support for testing multiple nuget package versions (#2230)
* TestApplication - Compile shared classes into TestApplications

* ApiVersion -> TestedPackageVersion

* IntegrationTests - do not override compilation constants

* Prepare StackExchangeRedisTests to execute multiple libraries

* Adjust TestApplication building path
to allow to build it for more than one library version

* typo fix

* remove redundant usings

* temporary use default lib version

* Unify restore process for Windows and Linux

* Fix path while testing scripts

* Redis - execute tests for set of libraries

* Bump StackExchange.Redis to 2.6.90 (test folder)

* Empty TestedPackageVersionsGenerator

* Generates files for xUnit and Build

* Include test version generator into pipeline

* Refactor generator

* dotnet-format

* Fix compilation issue

* Add MassTransit to multiple lib tests

* remove unused parameter

* add missing file from previous commit

* TestedPackageVersion -> LibraryVersion

* PR feedback make class internal

* Fix BaseIntermediateOutputPath

* PR feedback update header file

* Fix StackExchangeRedis multiple versions

* PR feedback - improve restore/build process
2023-02-22 08:42:03 -08:00
xiang17 a36ba28e55
Manage dependencies with Central Package Management (#2004) 2023-01-23 11:46:12 +00:00
Rasmus Kuusmann 0b0aeec5af
Fix .NET Framework tests (#1698) 2022-11-30 17:53:12 +01:00
Piotr Kiełkowicz 4c4171c885
Bump OTel to 1.4.0-beta.3 (#1647)
* Bump OpenTelemetry.AutoInstrumentation dependencies to 1.4.0-beta.3
and other released to the newest versions

* Adjust setting up Prometheus exporter
based on https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.Prometheus.HttpListener/CHANGELOG.md#140-alpha2

* Remove Microsoft.Extensions.Logging.Abstractions from duplicated libraries list
After upgrade all places references 7.0.0

* Reintroduce DiagnosticSource source to additional deps
it is needed by .NET 6 applications

* Bump Additional Dependencies to 7.0
as we should always bring the newest packages

* Use HttpClientInstrumentationOptions instead of HttpWebRequestInstrumentationOptions
based on 399fbcfaab

* Add Microsoft.Extensions.Configuration.EnvironmentVariables to Additional Store
introduced by f191e846d3

* Fix references in Smoke tests

* Update SourceNames for Http Instrumentation
due to https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Instrumentation.Http/CHANGELOG.md#100-rc96

* Change expected span names for Http Instrumentation
changes due to
d8c017079f
https://github.com/open-telemetry/opentelemetry-dotnet/pull/3415
8add3db43a

* Update Sql Integration name
due to https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Instrumentation.SqlClient/CHANGELOG.md#100-rc95

* Update tests dependencies

* Binding to System.Memory 4.0.1.2 to avoid conflicts with loaded library
Workaround will be fixed in scope of https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/1646

* Update distributed structure

* Remove reference to HttpWebRequestInstrumentationOptions
from documentation. It was removed from instrumentation package

* Dotnet format fix

* Propagate workaround from 411e778fac to TestApplication.Http.NetFramework

* Bump OpenTelemetry.Instrumentation.Runtime to 1.1.0-beta.1

* Remove todo comment
we expect that it will be needed shortly

* Remove DiagnosticSource reference from TestApplication.Http
It is not used in the application, so it is loaded from additional store

* Update documentation
2022-11-25 07:44:59 +01:00
Piotr Kiełkowicz 1ceac49732
Support for .NET 7 (#1617) 2022-11-15 09:30:23 +00:00
Piotr Kiełkowicz 5782c35eb2
Drop .NET Core 3.1 support (#1603) 2022-11-10 08:38:11 +00:00
Piotr Kiełkowicz 6c61cf2ab3
typo fixes (#1077) 2022-08-16 08:55:35 -07:00
Piotr Kiełkowicz 773c5fb040
Grpc.Net.Client instrumentation (#1022)
* Grpc.Net.Client instrumentation

* code review feedback

Co-authored-by: Rasmus Kuusmann <rkuusmann@splunk.com>

Co-authored-by: Rasmus Kuusmann <rkuusmann@splunk.com>
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2022-08-02 20:10:51 +00:00