Commit Graph

35 Commits

Author SHA1 Message Date
Timothy Mothra 55556af592
fix analysis issues: CA2000 (#4038) 2022-12-22 13:59:59 -08:00
Utkarsh Umesan Pillai f8f205757f
Remove unnecessary usings from OpenTelemetry Tests (#4029) 2022-12-20 21:07:24 -08:00
Cijo Thomas f4b27df779
Improve Sampler tests to validate initial tags and links are passed (#3615) 2022-08-30 16:59:57 -04:00
Cijo Thomas 8700d5dd9b
Update test and other tools versions (#3611) 2022-08-28 13:09:24 -04:00
Piotr Kiełkowicz d93606ea71 typo fixes (#3459) 2022-07-20 07:31:43 -07:00
Christian Neumüller 34efdbf448
Add & use ConfigureResource API. (#3307) 2022-06-27 08:59:59 -07:00
Mikel Blanchard a58c7a3f62
SDK: Forward SetParentProvider to children of CompositeProcessor (#3368) 2022-06-16 07:23:45 -07:00
Vishwesh Bankwar 5a566e6b76
Add isRemote check for context propagation (#3329) 2022-06-06 12:09:50 -07:00
Vishwesh Bankwar 0b09346426
Propagation in case of remote parent (#3310) 2022-06-01 18:51:31 -07:00
Travis Illig 7ed97be908
Fix analyzers (#3053) 2022-04-01 07:46:32 -07:00
Travis Illig f6b627134b
Fix IDE0017: Use object initializers (#3022) 2022-03-11 07:43:21 -08:00
Travis Illig d55de344f1
Fix IDE0090: 'using' statement can be simplified. (#3017) 2022-03-10 21:32:41 -08:00
Reiley Yang 1b5765bf43
Support question mark in wildcard (#2875) 2022-02-10 12:15:11 -08:00
Timothy Mothra d56f925a73
fix skipped Test: TraceProviderSdkTest.TracerProviderSdkInvokesSamplingWithCorrectParameters (#2809) 2022-01-25 18:17:18 -08:00
Vishwesh Bankwar 381e0b8713
Update TraceProviderSdkTest for legacy activities (#2704) 2021-11-29 15:21:07 -08:00
Reiley Yang 794450b178
Clean up test cases by using consistent variable name (#2672) 2021-11-23 21:26:29 -08:00
Blake 9591cb95e9
Add basic wildcard support for listening to legacy activities. (#2444) 2021-10-04 13:42:49 -07:00
Cijo Thomas 7c611c8537
Metrics to Main (#2174) 2021-07-22 07:35:38 -07:00
Austin Tan 073ce6cedc
Move AddLegacySource to API (#2019) 2021-05-03 14:03:58 -07:00
Utkarsh Umesan Pillai af4aa3622d
Update ActivityTraceFlags for every sampling decision (#1915)
* Update ActivityTraceFlags for every sampling decision

* Simplify unit tests

* Fix the ActivityTraceFlags update logic

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-03-16 19:37:10 -07:00
Cijo Thomas 3fead48435
Legacy activity support for SuppressInstrumentation (#1886)
* Legacy activity support for SupressInstrumentation
2021-03-09 14:12:56 -08:00
Utkarsh Umesan Pillai fa8d00c5e4
Updated AddLegacyActivity method name to AddLegacySource (#1860)
* Updated AddLegacyActivity method name to AddLegacySource

* Updated CHANGELOG.md

* Addressed PR comments

* Updated the CHANGELOG.md

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-03-09 12:42:54 -08:00
Utkarsh Umesan Pillai 0581ce2957
Remove ActivitySourceAdapter (#1836)
Removed ActivitySourceAdapater and made TracerProviderSdk natively support legacy activites
2021-02-25 11:32:17 -08:00
Kirill Ivanov cb066cb5c9
Add ForceFlush to TracerProvider (#1837)
* Add ForceFlush to TracerProvider

* Fixed inlinedoc

* Change the wording

* Remove creating activity

* Update src/OpenTelemetry/CHANGELOG.md

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-02-23 12:34:22 -08:00
Austin Tan 18db60d8c7
Default Resource should have service.name attribute (#1744)
* Moving the previous default (SDK info) into separate method

* Add CreateDefault and add to API

* Converting tests and adding actual default servicename

* Fixing Tracer Test with SDKResoruce

* removing api reference

* Fixing tests

* Changelog and API

* Re-add test with default ProviderBuilder and privatize method

* reverting API changes

* Removing AddDfault method altogether, performing addition inside CreateDefault

* Resolving comments - main instead of master, shortened changelog.md

* Moved to unreleased

* markdownlint fix (blank lines)

* Closing brace should not be preceded by blank line

* Removing colon from unknown_service when no processname

* removing comma check from sdk test

* link to correct spec section

* one other case of the colon missing

* Correcting - reversing string.empty and processname in ternary
2021-02-01 12:51:11 -08:00
Eddy Nakamura eee0036b2e
Fixing ActivitySource from DiagnosticSource (#1515)
* Fixing ActivitySource from DiagnosticSource

* updating changelog

* fixing changelog, updating instrumentation aspnetcore benchmark

* undoing

* updating assembly naming

* updating changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-12 10:46:57 -08:00
Prashant Srivastava 4ab6da0812
Adding support for default resource creation with environment variable (#1436)
* Adding default and envVar resource. Initial commit

* Adding Create method for resource creation with default resource and relevant unit tests.

* Adding isNullOrEmpty check to env var value to remove redundant condition.

* TracerProviderBuilder now calls Resource.Create to get the default resource with EnvVar attributes as well

* The default reource now includes the attributes from env var as well. Refactoring unit tests for the same.

* Adding ResourceDetector interface and public methods to add attributes from default and env var resources

* Missed out new resource files. Adding

* adding some more tests

* Adding missing import

* Updating public api list

* Refactoring method name for new methods

* Making IResourceDetector and corresponding impl internal until spec is official about detectors

* Refactoring return

* Was using wrong Sdk in test. Fixed.

* Adding error handling to OtelEnvResourceDetector

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-12 10:16:05 -08:00
Cijo Thomas 55cac800f9
AddInstrumentation and AddDiagnosticSourceInstrumentation APIs. (#1454)
* Separate AddInstrumentation and AddDSInstrumentation

* Mark AddDiagnosticSourceInstrumentation as internal

* changelog

* order

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-11-04 17:05:27 -08:00
Cijo Thomas b415b8a07f
Activity ParentSpanId check fix for Rc2 (#1358) 2020-10-15 22:25:21 -07:00
Eddy Nakamura f1ebf05ecb
Renaming SamplingDecision options (#1297)
* Renaming enum

* updating changelog
2020-09-21 16:57:29 -07:00
Cijo Thomas 987c5ac79e
Correct check for activity is root in OTLP (#1295)
* Correct check for activity is root in OTLP

* comment about runtime issue

* removing sync linux

* adding TODO and removing rsync section

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-09-21 15:35:08 -07:00
Eddy Nakamura c7429d25c9
Normalizing format (#1289)
updating gitattributes

updating

updating

updating

Revert "Normalizing format"

This reverts commit b571e430a73f65605481ef0a622a372bc8a787ae.

Updating everything to utf-8

applying lf

Revert "applying lf"

This reverts commit a54947f24ba69eecc931525f2a69647040fdc28d.

updating config

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-09-19 09:45:29 -07:00
Cijo Thomas f679960e03
Update diagnosticsource to rc1 (#1203)
* Step1 of updating to Rc1 of diagnostic source

* Update parent.spanid to parent.traceid as traceid will be default for root.

* add samplingatributes to activity tags

* updating to isremote=true

* updating tests

* changelogs

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-08-31 17:22:45 -07:00
Cijo Thomas 7b3980f309
Move Activity.SetKind to ActivitySourceAdapter (#1187)
* Move Activity.SetKind to ActivitySourceAdapter

* Set kind test
2020-08-28 00:13:38 -07:00
Cijo Thomas 0e305b34c4
Minor rearrangement of tests (#1109)
* Minor rearrangement of tests

* Update ActivitySourceAdapterTest.cs
2020-08-20 10:31:23 -07:00