Commit Graph

17 Commits

Author SHA1 Message Date
Piotr Kiełkowicz 8e3bb33d27
Bytecode instrumentation from plugins and unskip StrongNamedTests (#2566) 2023-05-25 06:20:45 +00:00
Piotr Kiełkowicz 941600a79a
[Tests] Ensure that StrongName application has strong name (#2567)
[Tests] Ensure that StronaName application has strong name
2023-05-23 10:25:31 +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 689bbb4f76
Cleanup usings (#2191) 2023-02-13 09:36:00 +00:00
Piotr Kiełkowicz 5782c35eb2
Drop .NET Core 3.1 support (#1603) 2022-11-10 08:38:11 +00:00
Robert Pająk 3656f610bc
Refactor TestHttpServer and fix HttpListener leakage (#1545) 2022-11-08 11:21:22 +00:00
Robert Pająk 43c5e26497
Add TestHelper.EnableBytecodeInstrumentation (#1544) 2022-11-08 11:30:45 +01:00
Robert Pająk c587f56bc5
Refine tests to reduce usage of optional args and optimize defaults (#1543) 2022-11-08 08:29:15 +01:00
Paulo Janotti 63a5236970
Log error if missing bytecode instrumentation method (#1520) 2022-11-02 08:58:07 +01:00
Robert Pająk e8bcd8d01e
Replace LegacyMockZipkinCollector with MockSpansCollector (#1471) 2022-10-20 14:20:37 +02:00
Robert Pająk 4e8fff6ba6
Rename MockZipkinCollector to LegacyMockZipkinCollector (#1428) 2022-10-17 14:56:24 +03:00
Paulo Janotti 719bfd1e3d
Force ReJIT before 1st execution of a method (#1279)
* Make request for ReJIT synchronous

* Remove EnqueueForRejit

* Remove request ReJIT thread related code

* Remove RejitItem code

* Add CHANGELOG.md fix note

* Fix space on change log

Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
2022-09-27 15:35:39 -07:00
Piotr Kiełkowicz c5527e4533
Ensure that mock collectors are available (#1270)
* Healthzz for MockZipkinCollector

* Healthzz for MockMetricCollector

* Healthzz for MockLogsCollector

* Extract HealthZ handler to common class
2022-09-23 11:01:19 -07:00
Robert Pająk 8a9c6f5c53
Skip StrongNamedTests until reJITing is fixed (#1264) 2022-09-22 08:49:50 +00:00
Robert Pająk 554c0c09b2
Fix race condition in mock collectors (#1254)
* Fix race condition in mock collectors

* Add missing lines

* Fix build

* Revert one little change

* Remove usage of timeout when calling WaitFor

* Same as before

Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-09-21 19:41:53 +00:00
Rasmus Kuusmann c3ab169955
Change mock agent to async (#1147) 2022-09-12 09:44:38 +00:00
Paulo Janotti 4d5167f5da
Fix bytecode instrumentation of strong named assemblies (#1153)
* Fix instrumentation of strong-named assemblies

* Add strong name where required

* Native changes for strong name only on .NET Framework

* Doc that StrongNamedValidation is temporary

* Add test application to sln

* dotnet-format fixes for new cs code

* Remove output log from test

* Add CHANGELOG.md note
2022-09-06 17:30:50 +00:00