Commit Graph

66 Commits

Author SHA1 Message Date
Piotr Kiełkowicz f7597fb622
Add EntityFrameworkCore traces instrumentation (#2065) 2023-01-24 08:40:06 +01:00
Robert Pająk 39868fd0d6
Support configuration via app/web.config (#2066) 2023-01-23 22:12:30 +01:00
Robert Pająk 3c7d02c7ee
Refactor Configuration namespace (#2027) 2023-01-23 12:25:18 +00:00
Piotr Kiełkowicz 9f5240f984
Add Quartz traces instrumentation (#2019)
Add Quartz traces instrumentation.

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2023-01-20 18:05:06 +00: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
Piotr Kiełkowicz b51a767c8a
Drop support for Jaeger exporter (#1896) 2023-01-04 16:26:15 -08:00
Piotr Kiełkowicz 5284642ae1
Add Elasticsearch traces instrumentations (#1890) 2023-01-04 11:24:53 +00:00
Piotr Kiełkowicz d1e9202c38
Add NServiceBus traces and metrics instrumentation (#1881) 2023-01-03 11:55:55 +01:00
Piotr Kiełkowicz 46896a72ef
Enable nullable for main project (#1861)
* nullable

* nullable util

* nullable Tagging

* nullable logging

* nullable loading

* nullable configuration

* nullable CallTarget

* nullable calltarget-handlers-continuation

* nullable calltarget handlers

* fix tests

* leftovers

* cleanup #nullable enable

* update publicapi

* nullable AutoInstrumentation.Tests

* IntegrationsJsonGenerator

* dotnet format

* pr feedback

* pr feedback - plugin manager

* pr feedback StackExchangeRedisInitializer

* pr feedback - attributes names for instrument method

* PR feedback stack exchange Redis part 2

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-12-21 20:45:28 +00:00
Rasmus Kuusmann 27e41c676e
Fix configuration sources (#1724) 2022-12-07 20:48:58 +01:00
Piotr Kiełkowicz 2a81d693ca
Enable Nullable - part 1 (#1710)
Enable Nullable by default
2022-12-05 12:02:13 -08:00
Piotr Kiełkowicz 47a6c3ac75
Support OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG (#1696) 2022-12-01 11:38:45 +01:00
Robert Pająk 73ea6721ba
Release 0.5.1-beta.1 (#1690) 2022-11-30 09:26:11 +00:00
Piotr Kiełkowicz 617081bbd0
Separate extension points for signal options (#1689) 2022-11-29 15:16:03 +01:00
Piotr Kiełkowicz fadc76d6a9
Add support to OTEL_DOTNET_AUTO_LOGS_ENABLED (#1629) 2022-11-18 23:32:02 +00:00
Piotr Kiełkowicz 5782c35eb2
Drop .NET Core 3.1 support (#1603) 2022-11-10 08:38:11 +00:00
Rasmus Kuusmann 79ff7dc750
Support options change in plugins (#1542) 2022-11-08 08:55:56 +00:00
Piotr Kiełkowicz 453612fe32
Rename _AT_STARTUP env vars to _ENABLED (#1518) 2022-10-31 09:42:37 +00:00
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
Piotr Kiełkowicz a997328b45
Process metrics (#1427) 2022-10-17 09:49:07 +02:00
Piotr Kiełkowicz eae60012f0
MassTransit 8.0+ tracing instrumentation (#1412) 2022-10-13 10:03:34 +02:00
Piotr Kiełkowicz fc4e409eee
Support for B3 Single propagator (#1385) 2022-10-10 10:13:26 +00:00
Piotr Kiełkowicz fa11b24c95
Fix potential null reference exceptions in ActivityHelper (#1328) 2022-10-04 06:24:11 +00:00
Piotr Kiełkowicz da42322b08
Limit PublicAPI (#1302)
* Bump Microsoft.NETFramework.ReferenceAssemblies to 1.0.3

* Scaffolding for Public API analyzer

* Make whole Public API internal

* adjust class and method visibility

* document minimal public api

* exclude empty project from api analysis

* update release process - PR feedback

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-10-03 20:34:20 +00:00
Rasmus Kuusmann cb5e267584
Add validation to disabled instrumentation and metric key (#1303) 2022-09-29 15:08:25 +02:00
Rajkumar Rangaraj b752d79045
Remove OTEL_DOTNET_AUTO_LOGS_PARSE_STATE_VALUES (#1301) 2022-09-29 06:38:22 +00:00
Rajkumar Rangaraj b9701ae974
Add ILogger bytecode instrumentation (#1262)
* Add logs using CLR Profiler.

* Update changelog

* PR feedback

* markdownlint

* PR feedback

* CLRAndHostingStartupTests

* doc update.

Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2022-09-27 12:54:25 -07: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 ec698ff833
Stabilize SdkSelfDiagnosticsEventListenerTests (#1230) 2022-09-15 14:14:51 +02: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
Rajkumar Rangaraj 509f26da4c
SettingsTests changes for logs configuration (#1164)
SettingsTests changes for log configuration.
2022-09-06 17:16:36 -07: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
Rajkumar Rangaraj d1d0d49191
Add Logs Plugin (#1141) 2022-09-01 12:57:08 +00:00
Piotr Kiełkowicz 7adbbc76c8
Update version tag after 0.3.0 release (#1129)
* Update version tag after 0.3.0 release

* add test to force us updating it
2022-08-29 11:51:06 -07:00
Piotr Kiełkowicz 9a859d8053
dotnet-format check step (#1121)
* cleanup

* dotnet format verification step
taken from OTel contrib repo

* dotnet-format fixes

* revert changes in vendored code

* revert changes in core clr code + mark as autogenerated

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2022-08-24 22:41:18 -07:00
Piotr Kiełkowicz b77323b293
b3multi nit fixes (#1118)
from previous PR

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2022-08-22 16:56:45 +00:00
Piotr Kiełkowicz e5d699e9bf
Support for B3 multi propagator (#1089)
* Support for B3 multi propagator

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* fix md lint

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-08-19 16:47:35 -07:00
Piotr Kiełkowicz 43ac1f1af7
Remove unused env variables (#1088)
* Remove unused env variables
OTEL_DOTNET_AUTO_METRICS_ENABLED and OTEL_DOTNET_AUTO_TRACES_ENABLED

* Update docs/config.md
2022-08-19 19:00:26 +00:00
Dawid Szmigielski 3dcfc4e2b0
Rename meter to metric in several places (#1071)
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2022-08-15 15:30:55 -07:00
Rasmus Kuusmann 43b816d2b6
Reogranize constants (#1024)
* reogranize constants

* Update src/OpenTelemetry.AutoInstrumentation/Constants.cs

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>

* cleanup

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2022-08-02 14:04:56 -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
Piotr Kiełkowicz 076306d06e
StackExchange.Redis instrumentation for .NET Core 3.1+ (#979)
* Cleanup conditional references

* StackExchange.Redis intrumentation

* code review feedback

* Support from 2.0.405

* GraphQL - typo fixes in defined integrations

* remove launch settings

* typo fix in tests

* cleanup file header

Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>
2022-07-28 12:06:27 -07:00
Piotr Kiełkowicz 57da5d9a64
[LazyInstrumentationLoader] Refactor OnAssemblyLoadInitializer (#967) 2022-07-28 07:26:19 +02:00
Piotr Kiełkowicz 67c68aac34
MySql.Data intrumentation (.NET Core 3.1+) (#950)
* Implement LazyInstrumentationLoader

Co-authored-by: Rasmus Kuusmann <rkuusmann@splunk.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2022-07-21 07:15:00 +02:00
Robert Pająk f951cd688b
Remove OTEL_DOTNET_AUTO_{0}_ENABLED (#940)
* OTEL_DOTNET_AUTO_{0}_ENABLED is not working

* Revert

* Remove OTEL_DOTNET_AUTO_{0}_ENABLED

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2022-07-15 18:05:52 +00:00
Rasmus Kuusmann 3cd582e247
Add none option to instrumentations configuration (#937)
* add none option

* Update CHANGELOG.md

* refactor tests

Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2022-07-15 10:50:04 -07:00
Rasmus Kuusmann c083d5f81d
Enable all metrics by default (#934)
* Enable all metrics by default

* fix asp.net metrics tests

* typo fix

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

Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Chris Ventura <45495992+nrcventura@users.noreply.github.com>
2022-07-14 12:46:40 -07:00
Piotr Kiełkowicz 1ae8fc48c3
Npgsql instrumentation (#933)
* add Npgsql do the dictionary

* Npgsql - traces instrumentation

* typo fixes

* code review feedback
2022-07-14 10:29:53 -07:00
Rasmus Kuusmann 224a622387
Enable all trace instrumentations by default (simplified) (#932)
* detect asp.net core framework

* fix accessor

* cut ASP.NET Core on .NET Framework support
2022-07-13 10:52:45 -07:00
Rasmus Kuusmann 8819966df4
Fix SdkSelfDiagnosticsEventListener logger leaking scope in tests (#927)
fix leaking logger

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2022-07-07 09:33:14 -07:00