Commit Graph

21 Commits

Author SHA1 Message Date
Piotr Kiełkowicz e0a0202757
Drop reference to FluentAssertions (#3947)
* Drop reference to FluentAssertions

* PR feedback

* PR feedback - assertions for repeated executions
2025-01-17 09:24:47 -08: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 b5eed495a7
Resource detectors: Process and Host (#3195) 2023-12-21 13:27:34 +01:00
Piotr Kiełkowicz 8516612166
Simplify copyright disclaimer (#3181) 2023-12-08 09:41:25 +01:00
Piotr Kiełkowicz 689bbb4f76
Cleanup usings (#2191) 2023-02-13 09:36:00 +00:00
Piotr Kiełkowicz 6e69ae298e
Add Initializing plugin extensions point (#1705) 2022-12-06 10:20:54 +01:00
Piotr Kiełkowicz 617081bbd0
Separate extension points for signal options (#1689) 2022-11-29 15:16:03 +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 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
Rasmus Kuusmann 79ff7dc750
Support options change in plugins (#1542) 2022-11-08 08:55:56 +00: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 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
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 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 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
Rajkumar Rangaraj aed55dfa53
Introduce OTEL_DOTNET_AUTO_PLUGINS (#1174)
* Replaced `OTEL_DOTNET_AUTO_TRACES_PLUGINS` and `OTEL_DOTNET_AUTO_METRICS_PLUGINS`
  with new environment variable `OTEL_DOTNET_AUTO_PLUGINS`.

* Remove PluginTypeMissingExpectedMethod

* test update

* PR feedback

* Remove space.

* PR feedback

* Update changelog
2022-09-09 01:09:41 +00:00
Piotr Kiełkowicz de15f868c5
Change Tracing sampler to parentbased_always_on. (#1090)
It is default required by OTel specification 6ce62202e5/specification/sdk-environment-variables.md?plain=1#L46.

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-08-19 20:15:46 +00: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