Commit Graph

54 Commits

Author SHA1 Message Date
Mikel Blanchard 94f67d8a8c
Revert "[sdk] Use reflection and dynamic types to start providers (#4151)" (#4173)
This reverts commit b549e12148.
2023-02-09 10:14:12 -08:00
Mikel Blanchard b549e12148
[sdk] Use reflection and dynamic types to start providers (#4151)
* Remove StartWithHost extension and using reflection to do the work in SDK.

* Warning cleanup.

* Fix up.

* Improved logging.

* Remove OpenTelemetry.Extensions.Hosting dependency from examples & docs.

* Test fixes.

* Fixes and test updates.

* Bug fix.

* Patch CHANGELOGs.

* Clean up.

* Support Azure Functions TelemetryHostedService dependency inspection logic.

* Code review.

* Code review.

* Code review.

---------

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2023-02-08 15:20:02 -08:00
Mikel Blanchard da938d797e
[sdk] Remove System.Reflection.Emit.Lightweight dependency (#4140)
* Remove System.Reflection.Emit.Lightweight dependency from SDK.

* CHANGELOG patch.

* CHANGELOG patch.
2023-02-02 13:58:15 -08:00
Mikel Blanchard 3a491b14b2
[DI] Rename DI package to OpenTelemetry.Api.ProviderBuilderExtensions (#4125)
* Rename DI package to OpenTelemetry.Api.ProviderBuilderExtensions.

* Patch CHANGELOG.
2023-01-31 12:17:15 -08:00
Mikel Blanchard 61f5351638
[SDK] Remove the dependency on M.E.Options 5.0 (#4093) 2023-01-25 11:18:47 -05:00
Mikel Blanchard 03af717e23
[SDK] Remove the dependency on M.E.C.EnvironmentVariables (#4092)
* Remove the dependency on Microsoft.Extensions.Configuration.EnvironmentVariables from SDK.

* Added notes.

* CHANGELOG patch.
2023-01-24 13:22:36 -08:00
Mikel Blanchard 9708349641
Port package cleanup from closed PR. (#4062)
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
2023-01-06 14:20:33 -08:00
Mikel Blanchard 9836d3addb
[DependencyInjection] Introduce new package and refactor SDK (#3923) 2022-12-08 15:24:44 -08:00
Timothy Mothra 6fa6700753
remove `ImplicitUsings disable` from projects (part 8) (#3993) 2022-12-08 14:26:54 -08:00
Timothy Mothra 804c448d2e
add nullable enable to Common.props and disable in projects. (#3964) 2022-12-05 15:33:57 -08:00
Timothy Mothra 6bcb70b1fe
Add `ImplicitUsings` to Common.props (#3959) 2022-12-02 15:01:27 -08:00
Mikel Blanchard f191e846d3
[SDK + Jaeger] Support loading environment variables from IConfiguration in Traces & Metrics (#3720)
* Support retrieval of environment variables through IConfiguration in SDK.

* Update Jaeger to load environment variables through IConfiguration.

* Warning fix.

* CHANGELOG patch.

* Bug fixes.

* Warning cleanup.

* Code review.
2022-10-12 09:56:07 -07:00
Mikel Blanchard ee11de90a3
SDK: Nullable annotations for base classes & batch + shims to enable compiler features (#3374)
* Nullable annotations and shims for SDK base classes & batch.

* Target updates.

* Remove System.Collections.Immutable ref.

* ApiCompat attribute exclusions.
2022-06-17 10:46:11 -07:00
Cijo Thomas 5006370265
Post release cleanups (#3340) 2022-06-03 13:18:17 -07:00
Cijo Thomas 24a3bf4f56
Remove net461 support from API and SDK (#3191) 2022-04-15 11:50:20 -07:00
Travis Illig 5255917581
Improve VS Code and cross-platform dev experience (#2997) 2022-03-09 09:35:30 -08:00
Cijo Thomas d894c16f36
Remove NET452 NET46 from OpenTelemetry sdk (#2163)
* Remove NET452 NET46 from OpenTelemetry sdk
2021-07-19 22:40:21 -07:00
Robert Pająk 50b0148c2c
Improve Visual Studio Code support (#2015) 2021-04-28 10:46:57 -07:00
Cijo Thomas be5efda3d8
Add ability for MinVer to version 1.0.0 for core projects (#1774) 2021-02-02 11:25:17 -08:00
Eddy Nakamura 2785ffbbaa
Metrics are obsolete (#1611)
* Metrics are obsolete

* updating changelog

* updating changelog
2020-11-24 09:45:36 -08:00
Mikel Blanchard 41cd4f5d9c
OtlpExporter peer.service resolution (#1392)
* Refactor peer service logic into a shared location. Support building peer.service tag in OtlpExporter.

* Added unit tests for OtlpExporter peer service support. Refactored a few things around to resolve types ending up in multiple assemblies.

* Refactored Zipkin to use the new PeerServiceResolver.

* Updated changelog.

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-27 16:39:43 -07:00
Cijo Thomas 300dd3cffa
Minor changes to comments (#1390)
* Minor changes to comments

* remove tracestateutils
2020-10-23 17:39:44 -07:00
Reiley Yang 263f4ccf14
introduce net461 target for OpenTelemetry logging component (#1351) 2020-10-15 09:59:03 -07:00
Reiley Yang 6529c43bfb
ILogger integration - part 1 (#1308)
* ilogger integration

* update changelog

* s/name/categoryName/g

* TODO comment
2020-09-25 14:32:44 -07:00
Eddy Nakamura 50c60af259
Enable FxCop - part 05 (#1141)
* Enable FxCop - part 05

* removing using tag

* updating zpages and adding supression

* adding supressions

* undoing traceprovider change
2020-08-24 10:15:59 -07:00
Reiley Yang 4f8c351420
minor clean up (#1002)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-04 14:51:59 -07:00
Reiley Yang bde64f2b6a
use absolute path for project includes (#993)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-04 07:23:47 -07:00
Eddy Nakamura c6d020b49f
Adding XML comments - part 01 (#955)
* enabling cs1591 for OT project

Adding some xml comments - 1

Adding some xml comments - 2

changing some references to semantic

updating returns message from aggregator

Adding more comments

Adding dispose comments

undoing some changes

commenting rule

uncomment rule

* renaming from isdisposing to disposing

* updating comments

* cijo's comments

* updating texts

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-02 09:20:41 -07:00
Reiley Yang c612b40da4
Improve project props management (#966)
* improve project props management

* use less strict version

* add comment

* workaround redis test

* reduce the scope of change

* Revert "reduce the scope of change"

This reverts commit 059ef3a6ef956978c61b101ed5914203b214c2a0.

* revert

* try to fix docker

* try to fix docker

* manually update the sln file
2020-08-01 18:23:53 -07:00
Eddy Nakamura 052a09bebc
Merging ToInvariantString (#945)
* Merging ToInvariantString

* updating encoding

* removing merged method
2020-07-29 14:24:50 -07:00
Cijo Thomas 1b15224a6b
Project file cleanups (#907) 2020-07-23 23:07:37 -07:00
Cijo Thomas b19c7e09c7
Move Otel.Trace.Exporter namespace to just Otel.Trace (#903) 2020-07-23 15:48:45 -07:00
Cijo Thomas 13dd5d717e
More cleanups. (#875)
* Rename samplers

* Cleanups

* typos

* remove internal as it has nothing now

* rename more
2020-07-22 06:41:24 -07:00
Cijo Thomas d796db07b4
Replace Span with Shim Span. (#850)
* Remove tracerfactory and tracerbuilder

* Remove tracer extensions

* Add Span and Tracer shims. Remove all span code.

* more wrapper apis

* Wrap ActivityEvent

* wrap links

* change tracestate back to keyvalue pair in contxt

* ore tracer fix

* OpenTracing shim

* example change

* remove spancontext

* remove more of the new stuffs

* benchmark fixes

* remove Event class

* TraceState consistent name

* casing fix

* equality fix

* fix test

* test todo

* typo

* rename after accepting shim chanegs from Raj

* remove new from the end of many names.

* benchmark fix

* TraceStateUtils naming

* TraceStateUtilsNew rename to fix build issue at CI.

* renamings
2020-07-21 23:11:13 -07:00
Reiley Yang 6e66179a9b
Minor improvements over consistency (#860)
* make package description consistent

* remove nits

* better description

* avoid the .NET vs .NET Core confusion
2020-07-21 00:17:45 -07:00
Reiley Yang f256db8bc8
Make the SDK compile on .NET Framework 4.5.2 (#717)
* make the SDK compile on .NET Framework 4.5.2

* add comments
2020-06-09 11:55:12 -07:00
Mikel Blanchard 4729e8c154
Fixed up some inconsistency in the meta showing up in package managers. (#659)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-05-04 14:22:32 -07:00
Eddy Nakamura 31c7c65a45
Removing ruleset from projects (#615)
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-04-20 17:22:43 -07:00
Eddy Nakamura a7bf7f2168
Updating ruleset to OpenTelemetry.csproj (#601)
* Updating ruleset to OpenTelemetry.csproj

* updating return comments

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-04-15 16:13:02 -07:00
Alexey Zimarev 48dbba3304
Removing more generics for #392 (#560)
* Removing more generics for #392

* Fixing the formatting issue

* Removed Unsafe everywhere

* Fixing method order and file name in the header

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-04-15 12:46:17 -07:00
Mikel Blanchard b35311e75d
ZipkinExporter performance improvements. (#596)
* ZipkinExporter performance improvements.

* Bug fixes.

* Added a Zipkin integration test.

* Bug fixes.

* Fixed HttpClientCollectorOptions not filtering HttpWebRequest events.

* Removed LangVersion from project file, it wasn't needed.

* Fixed unit tests failing when IPv6 isn't available on host.

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2020-04-14 14:09:18 -07:00
Cijo Thomas 7c7440f742 Thread safe implementation of Counter aggregator and tests. (#406)
* Thread safe implementation of Counter aggregator and tests.

* comment

* Ctor of CounterSumAggregator to validate type.

* Make test orchestrator block until all 10 threads updating counter has started.
2019-12-18 12:42:18 -08:00
Sergey Kanzhelev 605760cf5a
Rename Abstractions to Api (#317)
* Rename Abstractions to Api

* fixed Api casing
2019-10-28 16:17:08 -07:00
Sergey Kanzhelev 5b9b43cad3
Re-enable 1591 on Abstractions (#311)
* documentation in Abstractions

* a few docs after merge
2019-10-23 14:49:50 -07:00
Liudmila Molkova c6c87ab59a
Multiple processors on tracer: configuration (#286)
* test

* Multiple processor chains

* Update src/OpenTelemetry/Trace/Export/Internal/NoopSpanProcessor.cs

Co-Authored-By: Sergey Kanzhelev <S.Kanzhelev@live.com>

* clean up and make tests pass

* more clean up

* Tests for multiple processors

* readme and rebase
2019-10-21 17:42:30 -07:00
Liudmila Molkova 7141ee23d8
Tracing configuration API (#267)
* tracer factory configuration

* review

* default factory

* review

* Tests and readme

* Update README.md

Co-Authored-By: Austin Parker <austin@lightstep.com>

* null checks

* rebase from master
2019-10-11 18:53:11 -07:00
Liudmila Molkova 58717abf27
Implement batching processor and use it by default (#228)
* Implement batching processor and use it by default

* up

* Tracer ctor fix

* relax tests checks for number of export calls

* Update src/OpenTelemetry/Trace/Export/SimpleSpanProcessor.cs

Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>

* relax tests
2019-09-26 12:05:47 -07:00
Bruno Garcia d1e66e1e0b Build all targets in all platforms. (#155)
* build all targets in all platforms
Resolves #154

* Tests for netfx run only on Windows

* AppInsights can build x-plat

* fix: TFMs for Jaeger
2019-07-24 10:46:09 -07:00
Liudmila Molkova 8aae2c02f1
Clean up (#147)
* Remove timestamp

* Remove timestamp, remove Timer, remove Duration. remove Span Stores, remove EndSpanOptions and EndSpanOptionsBuilder

* remove collections

* clean up more collections and span name

* missing files

* dups

* rebase issues
2019-07-15 10:21:44 -07:00
Liudmila Molkova c5f33e1742
Support .NET Activities (#140)
* StartSpanWithActivity

* Sampler builder tests

* cleanup start span

* span tests

* optimize tracestate

* public tracestate parsing

* more tracestate tests

* Scopes and scope tests

* minor merge issues

* Do not make Span's Activity Current until WithSpan is called

* CurrentSpanUtils to static

* Tracestate parsing is not public API, reuse code without exposing it

* more tests and fixes

* rename

* rename FromCurrentActivity to SetCreateChild

* fix rebase issues

* fix build warning

* undo separate test project for Abstractions.Tests to fix build

* up
2019-07-12 18:31:21 -07:00