Commit Graph

1022 Commits

Author SHA1 Message Date
Utkarsh Umesan Pillai fcde600f22
Add extension method to add ConsoleExporter for logs (#1452)
* Added an extension method to add ConsoleExporter for logs; Updated the logs getting-started docs to add ConsoleExporter

* Updated CHANGELOG.md

* Addressing PR comments

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-03 20:10:48 -08:00
Eddy Nakamura c55145b186
Fixing activityContext propagation (#1446)
* Fixing activityContext propagation

* Adding tests

* updating tests

* adding comments

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-03 17:21:06 -08:00
Mikel Blanchard 7be994a4be
Added a targets option to the console exporter. (#1449) 2020-11-03 16:10:31 -08:00
Eddy Nakamura 46094add40
Fixing OutOfMemory CodeQL (#1443) 2020-11-03 06:58:57 -08:00
Utkarsh Umesan Pillai d82ab98320
Extend ConsoleExporter to add support for Logs (#1438)
* Added support for Logs; Removed disaplayAsJson option from ConsoleExporter; Added net451 as a traget framework for OpenTelemetry.Exporter.Console

* Print LogRecord exception on console

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-02 23:02:13 -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
Mikel Blanchard ddac284e53
Updated Jaeger & Zipkin exporters to check for default activity.ParentSpanId (#1433)
* Updated Jaeger & Zipkin exporters to check for default activity.ParentSpanId.

* Tabs are less filling, but spaces taste great.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-02 10:07:41 -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
mbakalov 772ed953ff
Baggage.Current accross AppDomains. (#1435)
On net452 Baggage.Current is stored in the CallContext which uses a
workaround to avoid marshalling Baggage instance accross AppDomains.
In a diffent AppDomain the private field value is null so we need to return
default Baggage in that case.
2020-11-02 09:32:45 -08:00
Cijo Thomas 4ad73e4073
Namespace for Context? (#1429)
* Change namespace to OpenTelemetry.Trace for ActivityContext.IsValid extension

* namespan

* ns

* ns1

* move to just OpenTelemetry namespace

* remove ununsed ns
2020-10-30 19:21:22 -07:00
Alan West 56c0f7c383
Use GetSafeMetricName on PrometheusMetricValueBuilder (#1432) 2020-10-30 19:01:20 -07:00
Cijo Thomas 531d325142
Fix test namespace (#1430) 2020-10-30 17:05:55 -07:00
Eddy Nakamura 5205d05d28
Moving grpc status and helper to grpc project (#1422)
* Moving grpc status and helper to grpc project

* updating changelog

* fixing build in aspnetcore
2020-10-30 12:32:06 -07: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
Mikel Blanchard be5a7a752d
Added ServiceName option to OtlpExporter (#1420)
* Added ServiceName option to OtlpExporter.

* CHANGELOG update.

* Cleanup and tests.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-10-30 12:08:38 -07:00
Alan West e433b9c8ae
Fix DoubleObserver AggregationType (#1425)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-30 10:19:42 -07:00
Cijo Thomas bdf5ea3547
Add note that metrics api is alpha (#1426)
* Add note that metrics api is alpha

* fix doc isue

* link fix

* link

* fix lint
2020-10-30 07:22:02 -07:00
Alan West 7cd1961384
Add EnableGrpcAspNetCoreSupport option for ASP.NET Core instrumentation (#1423)
* Add netstandard2.1 target for AspNetCore instrumentation

* Add EnableGrpcAspNetCoreSupport option

* Update changelog

* Inline methods

* Use 3.1 SDK for build stage

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-29 21:39:28 -07:00
Eddy Nakamura a8c579757d
Jaeger Process is internal (#1421)
* Jaeger Process is internal

* updating changelog
2020-10-29 11:53:49 -07:00
christopher-taormina-zocdoc da4d352a19
add support for true in x-b3-sampled (#1413)
* add support for true in x-b3-sampled

* fix order of properties

* set string comparer on hashset and clean up tests

* add information to changelog

* fix line endings
2020-10-29 09:09:38 -07:00
Eddy Nakamura a388874f03
Updating proto files (#1409)
* Updating status and protos

* Fixing rule to send DeprecatedCode

* adding pragma to ignore warning

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-28 16:59:02 -07:00
Alan West 67f1e9f80b
Refactor gRPC tests (#1417) 2020-10-28 16:48:36 -07:00
Eddy Nakamura a5a9244677
Removing IsValid property (#1415)
* Removing IsValid property

* updating changelog

* checking if default == Status.Unset
2020-10-28 12:46:50 -07:00
Eddy Nakamura 9cd31cfeba
Removed IsOk property from Status and fixed StatusCode enum values (#1414)
* Removing IsOk property

* updating changelog

* Updating StatusCode enum and tests
2020-10-28 12:15:16 -07:00
Utkarsh Umesan Pillai 39711093aa
Update OpenTelemetry.API README.md to add Initial Tags using AcitivtyTagsCollection (#1411)
* Update the collection from IEnumerable<KeyValuePair<string, object>> to ActivityTagsCollection

* Removed extra space

* Use indexer to add tags instead of Add method

* Updated the tag names; Added a link to the spec for best practices in naming tags

* Fix markdown lint errors

* Fix markdown lint length limit exceeded error

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-28 10:30:30 -07:00
Chris Smith e848f936e7
aspnet: enrich the correct activity (#1412) 2020-10-28 07:39:11 -07:00
Eddy Nakamura 688ffd689a
Enable OnException for AspNetCore instrumentation (#1408)
* Enable OnException for AspNetCore instrumentation

* updating variable to enrich

* updating changelogs

* recording exceptions

* fixing spacing

* recording exception in activity if record is true

* reverting

* testing exception

* testing recordExceptionFlag

* fixing remarks text

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-27 19:20:47 -07: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
Eddy Nakamura 6e7e4b7ed4
Enable enrich for HttpWebRequest (#1407)
* Enable enrich for HttpWebRequest

* updating changelog

* renaming strings and changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-27 13:20:15 -07:00
Cijo Thomas 1766f851b7
Remove ununsed codes (#1406) 2020-10-27 12:59:42 -07:00
Cijo Thomas acafd0e58e
Status fixes, minor comment changes (#1404) 2020-10-27 12:34:09 -07:00
Cijo Thomas 296483c2d3
Document AspNetCore instrumentation Enrich action (#1399)
* Document AspNetCore instrumentation Enrich action

* fix lint

* pr comment

* fix doc link
2020-10-27 08:52:21 -07:00
Eddy Nakamura d93e425192
Enabling security workflow (#1324)
running once a day only

removing pr section

removing pr section

changing to windows
2020-10-27 07:55:12 -07:00
Cijo Thomas 7f34ab43d7
Minor comments change. (#1396)
* Minor comments change.

* typos

* min
2020-10-26 23:28:10 -07:00
Alan West dc29b9fc5a
Add test validating expected status for AspNetCore instrumentation (#1381)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-26 23:17:14 -07:00
Alan West a4d5a01bc6
Add benchmark for DiagnosticSourceSubscriber (#1391)
* Add benchmark for DiagnosticSourceSubscriber

* Subscribe using OTel method

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-26 13:27:28 -07:00
Cijo Thomas 300dd3cffa
Minor changes to comments (#1390)
* Minor changes to comments

* remove tracestateutils
2020-10-23 17:39:44 -07:00
Mikel Blanchard 2d6792af93
Support Resources in ZipkinExporter (#1385)
* Updated ZipkinExporter to take service name & send tags from Resource if it is set.

* Added LocalEndpoint.Tags code to net452 path.

* Updated CHANGELOG.

* Remove the old Zipkin LocalEndpoint override as it now has the Resource mechanism.

Co-authored-by: Eddy Nakamura <ednakamu@microsoft.com>
2020-10-23 13:22:54 -07:00
Utkarsh Umesan Pillai cb74484bf2
Removed Activity.ParentId from the example output (#1389) 2020-10-23 12:39:51 -07:00
Mikel Blanchard 5fa2f105e7
OtlpExporter Perf (#1344)
* Perf improvements for the OtlpExporter.

* Added an interface to the grpc service so that it is easier to mock.

* Fixed up unit tests.

* Fixed up formatting.

* Fixed up merge issues.

* Removed unused field.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-22 16:37:07 -07:00
Mikel Blanchard 478569966f
Eventsource perf (#1383)
* Added perf test for ActivityStarted event.

* Moved ActivityStarted & ActivityStopped events behind an IsEnabled check.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-22 15:51:01 -07:00
Eddy Nakamura a5e7d6e631
Organizing benchmark project (#1384) 2020-10-22 08:22:14 -07:00
Christoph Neumüller d76a00b205
remove discostu105 from approvers (#1380) 2020-10-20 23:02:00 -07:00
Mikel Blanchard 5e6242c531
Expanded AspNet test coverage. (#1379) 2020-10-20 22:11:36 -07:00
Mikel Blanchard e0b544fbe6
Fixed a couple bugs in AspNet instrumentation (#1376)
* Fixed a couple bugs in AspNet instrumentation.

* Updated AspNetCore for perf.
2020-10-20 21:08:49 -07:00
Mikel Blanchard 5614c17379
Jaeger async issue (#1374)
* Switched Jaeger Thrift objects to be synchronous. Removed unused read operations.

* Updated Apache Thrift README.

* Fix markdown.
2020-10-20 20:54:21 -07:00
Reiley Yang 8e62e74c70
fix the semantic (#1371) 2020-10-18 23:12:25 -07:00
Rajkumar Rangaraj de2f115094
Add persistent storage to exporter - Public API (#1359)
* Storage Public API

* PR feedback

* Renamed from IOffline to IPersistent

* Update copyright

* PutBlob with IPersistentBlob

* Reword GetBlobs

* Change PutBlob signature

* Update Lease summary

* Update src/OpenTelemetry.Shared/IPersistentBlob.cs

Co-authored-by: Reiley Yang <reyang@microsoft.com>

* PR feedback

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Reiley Yang <reyang@microsoft.com>
2020-10-18 22:17:16 -07:00
Reiley Yang 1170f3f20d
catch up the latest version of .NET RC (#1362)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-17 15:53:06 -07:00
Cijo Thomas 43b43be127
Fix releasing manual script (#1363) 2020-10-16 11:24:09 -07:00