Commit Graph

26 Commits

Author SHA1 Message Date
Piotr Kiełkowicz b4a4120bbd
Enable/disable log instrumentations (#1475)
* Introduce instrumentation types

* extend generator

* support for disabling logs bytecode integrations

* update documentation

* change LoggingBuilder instrumentation name to ILogger

* Support managing log instrumentation in managed code

* update changelog

* PR feedback - config

* add LogsNoneInstrumentations test

Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>
2022-10-21 13:31:53 -07:00
Robert Pająk e8bcd8d01e
Replace LegacyMockZipkinCollector with MockSpansCollector (#1471) 2022-10-20 14:20:37 +02:00
Robert Pająk c4168ec632
Add MockZipkinCollector and Zipkin exporter smoke test (#1439) 2022-10-18 11:17:38 +02:00
Robert Pająk 4e8fff6ba6
Rename MockZipkinCollector to LegacyMockZipkinCollector (#1428) 2022-10-17 14:56:24 +03:00
Robert Pająk fa6c733c6f
Add "telemetry" resources for logs (#1419) 2022-10-17 10:55:10 +02:00
Robert Pająk d05630fa57
Prometheus exporter is not stable on Linux and macOS (#1369) 2022-10-05 23:42:40 +00:00
Paulo Janotti f234f76b51
Reduce smoke tests duration (#1355) 2022-10-04 08:00:23 +02:00
Piotr Kiełkowicz 96638cd6f5
Replace span.kind tag by ActivityKind (#1321) 2022-10-03 09:22:12 +02:00
Rajkumar Rangaraj 31adafea2f
Fix ILogger instrumentation for non-host console app (#1300) 2022-09-29 17:40:53 +00:00
Chris Ventura bc0b36847f
Add telemetry.* attributes to resource (#1274) 2022-09-28 08:57:36 +00:00
Robert Pająk 4636af2267
MockMetricsCollector can assert resource attributes (#1280) 2022-09-28 02:53:07 +02:00
Robert Pająk ad16e9c11e
Refine MockMetricsCollector and metrics tests (#1276)
* Refine MockMetricsCollector and metrics tests

* Add missing metrics expectation in AspNetTests

* Fix checking InstrumentationScopeName

* Remove space

* Fix AssertExpectations and cleanup

* Fix missingExpectations loop

* Do not expect OpenTelemetry.Instrumentation.Http in AspNetTests

* Refine AssertExpectations in MockMetricsCollector

* Refine looping logic in AssertExpectations

* Fix race condition

* Better comment
2022-09-26 16:51:09 -07:00
Piotr Kiełkowicz cadccf4e57
Prometheus exporter cache duration set to 300ms (#1271)
* Prometheus exporter cache duration set to 300ms

it is backport from OTel SDK 1.4.0

* PR feedback
2022-09-23 18:37:46 +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
Robert Pająk 2072410667
Increase timeout in tests (#1263) 2022-09-22 17:51:41 +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
Robert Pająk 0e90c16ebd
Stabilize PrometheusExporter test (#1259) 2022-09-21 19:27:51 +00: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
Piotr Kiełkowicz d4be5903f1
Prometheus.Tests - log test app output (#1239) 2022-09-19 11:53:19 +00:00
Rasmus Kuusmann c3ab169955
Change mock agent to async (#1147) 2022-09-12 09:44:38 +00:00
Piotr Kiełkowicz 137926eb4e
Bump OTLP proto files to v0.19.0 (#1065)
https://github.com/open-telemetry/opentelemetry-proto/releases/tag/v0.19.0
2022-08-05 11:04:58 -07:00
Robert Pająk 376e83bc4d
Stabilize SmokeTests.PrometheusExporter (#1000) 2022-07-27 19:18:17 +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
Rajkumar Rangaraj 243025eb8f
Manual metrics test (#898) 2022-06-29 22:33:26 +02: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