Commit Graph

56 Commits

Author SHA1 Message Date
dependabot[bot] 0ad6a95bf2
Bump dotnet-sdk from 9.0.203 to 9.0.300 (#6283)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2025-05-30 09:38:20 -07:00
dependabot[bot] ab32e39c14
Bump dotnet-sdk from 9.0.202 to 9.0.203 (#6243)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
2025-04-10 12:20:37 -07:00
Yevhenii Solomchenko fbbe939dd4
[Examples.Microservice] migrate to Minimal Hosting Model (#6247) 2025-04-10 11:19:39 -07:00
Piotr Kiełkowicz ff009146a9
[Example/WorkerService] enable analysis (#6220)
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2025-04-09 09:17:08 -07:00
Piotr Kiełkowicz 6e6ce171e8
[repo] OpenSSF Scorecard - pin docker images to exact digest (#6230)
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2025-04-07 16:49:40 -07:00
Piotr Kiełkowicz 72a5f7c36e
[Example/WebApi] enable analysis (#6215) 2025-03-31 10:55:12 -07:00
Piotr Kiełkowicz 3e8c537192
[Examples/Utils] enable analysis (#6211) 2025-03-28 09:06:24 -07:00
Simon Cropp cccf1ec3b7
fix incorrect as usage in MessageReceiver (#6105)
Co-authored-by: Rajkumar Rangaraj <rajrang@microsoft.com>
2025-01-31 09:53:07 -08:00
Simon Cropp c44984ef93
[repo] Clean up unused variables (#6100)
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2025-01-27 10:08:25 -08:00
Yevhenii Solomchenko 36d5900be0
[Examples] Nullable (#5881)
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2024-10-11 11:27:43 -07:00
Mikel Blanchard 25d99a56bf
[repo] Mitigate vulnerabilities in System.Text.Json 8.0.0 packages (#5874) 2024-10-04 13:38:15 -07:00
Piotr Kiełkowicz 104c9f0e82
[repo] Extend NugetAudit by indirect references (#5812) 2024-09-04 09:34:20 -07:00
Piotr Kiełkowicz abb680143a
[Instrumentation.AspNetCore] Move to contrib repository (#5599) 2024-05-08 09:54:22 -07:00
Vishwesh Bankwar b0c95307dd
Migrate to docker compose v2 (#5503) 2024-04-03 10:01:02 -07:00
Reiley Yang 57ee852470
Simplify copyright disclaimer (#5140) 2023-12-07 10:04:56 -08:00
Utkarsh Umesan Pillai c337d1ea84
[repo] Misc changes (#5053) 2023-11-15 14:08:03 -08:00
Dan Nelson 00750ddcca
Fix broken links (#5033) 2023-11-09 10:21:01 -08:00
Cijo Thomas e2943128c1
Use net7.0 for example projects (#4726) 2023-08-11 14:31:44 -07:00
jarosal ef9576c073
Update examples to use filescoped namespaces (#4713) 2023-07-27 17:29:00 -07:00
Luiz Lelis fea6793a55
Clean up package version definitions using Directory.Packages.props (#4298)
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2023-05-09 09:35:05 -07:00
condezero 990deee419
fix target framework (#4278) 2023-03-08 12:06:49 -05:00
Mikel Blanchard 74212a2402
[sdk+hosting] Move AddOpenTelemetry & OpenTelemetryBuilder into Hosting package (#4174)
* Move AddOpenTelemetry & OpenTelemetryBuilder into Hosting package.

* Added Azure Functions warning.

* Test fixes.

* Test fixes.

* Patch CHANGELOGs.

* Hosting README updates.

* Comment tweak.

* Clean up.

* Test cleanup.

* MD lint.

* Test fixes.
2023-02-10 12:11:26 -08:00
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
Utkarsh Umesan Pillai 3157b5ce12
Remove unnecessary using statements (#4023)
* Remove unnecessary using statements from docs, examples, benchmarks and stress tests
2022-12-20 11:20:15 -08:00
Timothy Mothra 64f1d74561
fix analysis issues: CA2007 (part2) (#4018)
* fix analysis issues: CA2007

* remove duplicate

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2022-12-15 16:31:49 -08:00
Mikel Blanchard 9836d3addb
[DependencyInjection] Introduce new package and refactor SDK (#3923) 2022-12-08 15:24:44 -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 dfd1f25c95
Add `AnalysisLevel` to Common.props (#3960)
* add AnalysisLevel to Common.props

* fix CA2017
2022-12-02 12:42:56 -08:00
Mikel Blanchard e6d39b8b14
[Tracing] Improve dependency injection support in tracing build-up using SDK (#3533)
* TracerBuilder depedency injection improvements.

* Fixes and API updates.

* Update skipped test.

* Tweak.

* Tweaks.

* Test fix.

* Turn on options in TracerProviderBuilderBase.

* Updated CHANGELOGs.

* Added XML comments to AddOpenTelemetryTracing methods.

* Tweaks.

* Added export helpers and restored removed API from hosting library so that there is no breakage during upgrades.

* Export extension tweaks.

* Tweak.

* Tracer builder improvements.

* Fix hosting multiple configurations test.

* Cleanup.

* Cleanup and fixes.

* Added "UseOpenTelemetry" extensions.

* Cleanup.

* Code review.

* Code review.

* Rename SDK extension "Configure" and restore "Add" in the hosting lib.

* Doc clarification.

* Some test coverage.

* README updates.

* Fix double dispose of TracerProvider when using Sdk.CreateTracerProviderBuilder.

* AddExporter tests.

* More test coverage.

* More test coverage.

* Code review.
2022-08-29 13:14:24 -07:00
Mikel Blanchard 58ee541cff
[net7-main] Fixes to get solution building in VS (#3552)
* Fixes to get solution building in VS with net7 changes.

* More fixes + some code review.

* CONTRIBUTING update.

* Attempting to fix integration tests.

* Attempting to fix integration tests.

* Attempt to fix integration tests.

* Attempt to fix integration tests.
2022-08-05 10:49:06 -07:00
Travis Illig d55de344f1
Fix IDE0090: 'using' statement can be simplified. (#3017) 2022-03-10 21:32:41 -08:00
Travis Illig 2a97920ff0
Fix IDE0090: 'new' expression can be simplified. (#3012)
* Set rule for new() usage.

* Fix IDE0090 "'new' expression can be simplified"
2022-03-10 08:57:53 -08:00
Alan West a2c1b6e69e
Invoke SDK initialization when using OpenTelemetry.Extensions.Hosting (#2901) 2022-02-16 06:48:45 -08:00
ktmitton 76d944130f
Reworded documentation based on recommendation from another PR (#2689)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-30 14:34:01 -08:00
ktmitton 580a2a5cc0
Removed explicit setting of default guest user (#2682)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-11-26 12:15:36 -08:00
ktmitton d7ea809ef6
Updated the target frameworks for the microservice example projects to net6.0 to support the c# 10 requirement during build through the docker pipeline (#2677) 2021-11-24 14:13:45 -08:00
Michael Maxwell baa37f3a05
Remove 'en-us' from URLs (#2329) 2021-09-09 11:24:47 -07:00
Austin Tan c14177996a
Rely on DefaultResource's Service.Name for Exporters (#1768)
* Jaeger and API changes and ProviderMethod

* Changelog

* Fix whitespace

* Not just checking first element of default resource but querying for servicename

* Including the servicename fallback in Zipkin options

* Resolving tests

* we previously removed the adapting of new servicenames from resources in jaeger, this undoes that

* Removing servicename from Jaeger ctor

* re-adding servicename to Ctor for Jaeger

* CodeBlanch 's implementation for preserving servicename

* Scrubbed ServiceName from ZipkinExporterOptions

* Messed up ternary operator order again

* reordering using for SA compliance

* more instances of zipkinoptions.servicename

* removed servicename from API

* Changelog in right places

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-02-02 11:04:54 -08:00
Cijo Thomas fe24768521
fix spec repo links to main branch (#1746) 2021-01-29 12:07:34 -08:00
Cijo Thomas 097925980d
Add GlobalPropagators API and have instrumentation default to it (#1428)
* Add GlobalPropagators API and have instrumentation default to it

* changelog

* fix name

* reset after

* min comment address

* move id format to same place as context propagator

* renam

* renai

* text initialize correctly

* modify microsoervice example to pick global propagator

* make Global propagator get only in api

* Add SetDefaultPropagato to SDK
2020-11-02 20:40:31 -08:00
Cijo Thomas 985c5378c5
Propagate context from either created activity or Current (#1431)
* Propagate context from either created activity or Current

* minor wording change
2020-11-02 09:52:35 -08:00
Cijo Thomas 4975fb062b
Rename of Propagators (#1427)
* Rename IPropagator to ITextMapPropagator, TextMapPropagator to TraceContextPropagator

* changelogs

* build fix

* make ITextMapPropagator an abstract class

* Renaming ITextMapPropagator to TextMapPropagator

* CompositeTextMapPropagator rename

* fix changhelog
2020-10-30 12:18:07 -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
Eddy Nakamura c025116c3e
Replacing Tags for TagObjects and AddTag for SetTag (#1227)
* Replacing Tags for TagObjects and AddTag for SetTag

updating tests

updating tests

* removing toString from stackExchange test method

* tentative to solve redis test failure

* updating tests

* updating test

* checking for only one element

* Trying GetTagValue extension in http-in unit test projects.

* Grpc now uses GetTagValue.

* Updated new unit tests to use SetTag.

* Updated Http instrumentation for GetTagValue.

* Update Sql instrumentation to use GetTagValue.

* Updated Redis instrumentation to use GetTagValue.

* Removed references from test projects that weren't needed.

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-09-06 10:13:08 -07:00
Alan West 255889f84a
Centralize package versions for example projects (#1230)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-09-04 13:25:59 -07:00
Cijo Thomas fd7876416f
Renaming to AddOpenTelemetryTracing (#1209)
* AspNet Instrumentation docs

* Renaming to AddOpenTelemetryTracing

* Revert "AspNet Instrumentation docs"

This reverts commit 4cbb620533.

* typo

* changelog entry
2020-08-31 17:32:29 -07:00
Eddy Nakamura dd4bd3e0bd
Renaming ITextFormat to IPropagator (#1190)
* Renaming ITextFormat to IPropagator

* updating changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-28 07:46:14 -07:00
Eddy Nakamura da72b13b72
Renaming TraceContextFormat/B3Format/BaggageFormat (#1175)
* Renaming TraceContextFormat to TextMapPropagator

updating changelog

renaming b3Format to B3PRopagator

renaming BaggageFormat to BaggagePropagator

renaming file

* renaming variables after merge

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-27 18:59:09 -07:00
Mikel Blanchard d11dc0a962
CorrelationContext -> Baggage (#1106)
* Baggage context part 1.

* A little cleanup.

* Return strings instead of objects. Removed default value in ctor because it generates a compiler warning about struct default constructor being used.

* Updated SDK & API projects for BaggageContext.

* Fixed broken areas, except for CorrelationContext tests.

* First round of tests and bug fixes.

* FIxed up HTTP instrumentation tests.

* Fixed up shim tests.

* More tests and improvements.

* Fixed broken test.

* Test coverage and bug fixes.

* Deterministic GetHashCode + tests.

* Added a link to the baggage api.

* Updated CHANGELOG.

* Renamed BaggageContext -> Baggage.

* CHANGELOG update.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-27 16:03:38 -07:00