Commit Graph

27 Commits

Author SHA1 Message Date
Piotr Kiełkowicz 5067bc6bd5
AspNetCore Metrics instrumentation for .NET8 (#3130) 2023-11-20 08:19:52 +01:00
Rasmus Kuusmann 0dfcb28fe8
Remove contextual data in GraphQL integration tests (#2725)
* remove contextual data in GraphQL integration tests

* fix id numbering

* simplify hex
2023-07-12 07:33:02 -07:00
Rasmus Kuusmann cf5eae198d
GraphQL v7.5.0 instrumentation (#2681) 2023-06-26 10:35:47 +00:00
Piotr Kiełkowicz 2e4a4c25df
[IntegrationTests] Test other instrumentation with various library versions. (#2241) 2023-02-23 11:04:11 +01:00
Piotr Kiełkowicz fc205e349b
Env var instrumentation - uppercase id (#2141) 2023-02-02 09:21:54 +01:00
Piotr Kiełkowicz 740b802101
Env var instrumentation improvements (#2088) 2023-02-01 20:42:10 +01:00
Rasmus Kuusmann dd79e41efc
Enable implicit usings (#1966)
* use implicit usings

* enable implicit usings for nuke project

* fixes
2023-01-10 10:03:46 -08:00
Paulo Janotti de86993d60
Automatic netfx assembly redirection (#1825)
* Redirect assemblies for .NET Fx via CLR profiler

* Bump transitive dependencies to latest

* Revert "Bump transitive dependencies to latest"

This reverts commit e291eb893dbbe11bebccbf1957b01ff56a46f765.

We need some extra work to automate this process and also a friendly way
to register assemblies in the GAC.

* Add NETFX to dot-net.txt

* Link changelog addition to table in config.md

2nd round with changelog text

* Move MapToFolder to Build.Steps.cs

* Restore skip assemblies and prefixes if redirection is off

* Simplify auto generated redirection source file

* Shorten the env var used to control netfx redirection
2022-12-21 19:13:08 +00:00
Piotr Kiełkowicz 7f52c26bbf
IntegrationTests - enable nullable (#1828)
* Remove redundant nullable

* Nullable for IntegrationTests

* dotnet-format

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-12-19 19:02:54 +00:00
Piotr Kiełkowicz 0cd32f8553
[Instrumentation.GraphQL] Span kind based on the parent span context (#1729)
* [Instrumentation.GraphQL] Span kind based on the parent span context.

* dotnet-format --folder

* revert csproj

* simplify conditional compilation

* Fix activity kind

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-12-13 18:08:52 +00:00
Robert Pająk 46873fea5a
Remove HttpListener healthz endpoint and refine HealthzHelper (#1547)
* Remove healthz from HttpListener

* Improve HealthzHelper

* do not require testName

Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
2022-11-08 19:38:52 +00:00
Rasmus Kuusmann 64de5b4765
Update GraphQL tags and errors (#1592)
update GraphQL tags and errors

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-11-08 18:23:36 +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
Robert Pająk 5b8b690bc7
Use MockSpansCollector in GraphQLTests (#1484) 2022-10-21 17:46:56 +02:00
Robert Pająk 4e8fff6ba6
Rename MockZipkinCollector to LegacyMockZipkinCollector (#1428) 2022-10-17 14:56:24 +03:00
Piotr Kiełkowicz 96638cd6f5
Replace span.kind tag by ActivityKind (#1321) 2022-10-03 09:22:12 +02:00
Rasmus Kuusmann c32680660b
Add support for OTEL_DOTNET_AUTO_GRAPHQL_SET_DOCUMENT env var (#1265) 2022-09-26 16:09:37 +00: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
Rasmus Kuusmann fac86e25b6
Update GraphQL semantics (#1222)
* update graphql semantics

* Cleanup tags

* fix query bug

* fix WebServerSpanExpectation

* remove unnecessary library name expectation

* fix span library expectation for net462

* remove env and version

* Update test/IntegrationTests/Helpers/Models/SpanExpectation.cs

* refactor

* remove obsolete http requests

* PR feedback

Co-authored-by: Zach Montoya <zach.montoya@datadoghq.com>

* Update CHANGELOG.md

Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Zach Montoya <zach.montoya@datadoghq.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2022-09-21 11:32:15 -07:00
Rasmus Kuusmann c3ab169955
Change mock agent to async (#1147) 2022-09-12 09:44:38 +00:00
Robert Pająk ac0ddf9a71
Refactor GraphQLTests (#938) 2022-07-15 09:58:45 +00:00
Robert Pająk b413fde253
Add Prometheus exporter integration test (#918)
* Add Prometheus exporter integration test

* Refactor
2022-07-05 09:21:13 -07:00
Robert Pająk 77998bde98
Add PluginsTests (#910)
* Add PluginsTests

* Refactor RunTestApplicationAndWaitForExit

* Refactor MockZipkinCollector

* Refactor MockCollector

* Update test/IntegrationTests/Helpers/TestHelper.cs

Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>

* Update PluginsTests.cs

Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>
2022-07-01 11:53:02 -07:00
Robert Pająk f94589b41c
Add SmokeTests.ApplicationIsIncluded (#905)
* Add ApplicationIsIncluded test

* Rename AssertExpectationsMet to AssertSpanExpectations

* Refactor

* Refactor

* Refactor

* Rename TestApplication.StartupHook to TestApplication.Smoke

* Fix SmokeTests
2022-06-29 09:41:38 -07:00
Robert Pająk bf22f0350e
Reorganize integration tests into one project (#878)
* Move integration tests to Helpers project

* Remove empty projects

* Flatten test project structure

* Move IntegrationTests.AspNet to IntegrationTests

* Update dependabot.yml

* Update AspNetTests.cs
2022-06-23 17:42:56 +00:00