cleaning props/targets
updating to new version of codecov
adding env_vars
updating yml
adding env_vars
solving compilation issue
adding source root
adding source root
fixing wrong tag
commenting sourceroot
enabling deterministic for packs only
changing job titles
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Pull logic out of gRPC client instrumentation into helper class + add tests
* Fix parsing rpc.service with package that has multiple parts
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Wire up Grpc.Net.Client instrumentation
* Fix missed namespace change
* Fix typos
* Make regex private static
* diagnosticSourceSubscriber cannot be null
* Use grpc.method tag from activity for span name and service attribute
* gRPC instrumentation set Span.Status
* Revert "gRPC instrumentation set Span.Status"
This reverts commit be89687865.
* Set span.Status from grpc.status_code tag on activity
* Remove code and comments regarding context propagation
* Remove OnException override. GrpcClient does not have an OnException event.
* Update GrpcClient instrumentation to use ActivitySource
* Add simple test of GrpcClient instrumentation
* Remove usused method
* Remove Grpc.Core reference and use version 2.25.0 of other Grpc dependencies
* Throw if activitySource is null
* Retrieve Activity.Kind PropertyInfo once
* Add grpc.system attribute
* Update rpc.service attribute per change to RPC spec
* Make ActivityKindPropertyInfo static
* Change default URI to localhost
* Add rpc.method attribute to span
* Add rpc.service and rpc.methods attributes only on successful match
* Add constants for the tags sourced from the Grpc.Net.Client library
* Simplify test scaffolding for Grpc tests
* Add test showing spans collected from Grpc instrumentation and underlying HttpClient instrumentation
* Include package in rpc.service attribute
* Make GrpcClientInstrumentation internal
* Validate that the HTTP span is a child of the gRPC span
* Set Activity.DefaultIdFormat in constructor
* After making call to gRPC stop the test host
* Revert "After making call to gRPC stop the test host"
This reverts commit e7a7cbb8ed.
* Upgrading gRPC dependencies to 2.30.0-pre1 to resolve test flicker
* Use Grpc.Tools 2.25.0
* Replace Grpc.AspNetCore reference with Grpc.AspNetCore.Server
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Make HttpClientInstrumentation and SqlClientInstrumentation internal
* Make AspNet and AspNetCore instrumentation internal
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Update to the latest stable OTLP proto files
From 1a931b4b57
The current proto files are incompatible with the latest opentelemetry-collector and opentelemetry-collector-contrib
* Update the README file
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Add Resource to OpenTelemetryBuilder for Activity
* ActivitySourceAdapter to pass parentcontext to sampling.
* More tests
* more tests
* refactoring a bit
moving folder
updating test to Tests.dll and folder to get less files
updating folder again
adding other versions to test
Adding linux and renaming
updating ubuntu version
updating yml linux
adding variables and using matrix
adding strategy to matrix
updating variables
new test
updating variables
updating variables
updating test packages
trying to add cache option
testing cache on windows
removing cache folder and trying to optmize files
updating
adding more workflows to test parallel
updating windows one job pipeline
updating
renaming
updating
updating test
adding verbose and breaking one test to double check
reverting test, adding new line, removing verbose from parallel
Update dotnet-core.yml
Update dotnet-core.yml
updating fetch depth
fetching all
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
- Coerce Activity tags into the correct OTLP attribute types
- Ensure that the attribute type is properly specified
At the very least, we need to set the attribute type, but I also think it is
important to use the attribute types accurately.
Verified against the latest versions of the collector.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Updated Console Sample for Zipkin exporter to incude activity exporter + fixed a bug in Annotation timestamp.
* Refactored
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Adding Zipkin activity exporter
* Added activitysource to tags
* Revert ZipkinTraceExporterOptions name change
* Refactored ProcessTags
* Removing sample files
* Modified UseZipkinActivityExporter to use AddProcessorPipeline
* Refactored based on Reiley's comments
* Added UseShortTraceIds to test
* Added useShortTraceIds to test
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Enable .net 452 - part 02
* moving DateTimeOffsetExtensions to OpenTelemetry.Internal, adding tests to projects
* revoving useless reference to netframework for prometheus.tests
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* expose ActivitySourceFake within OT which mimics ActivitySource for activities created using without ActivitySource.
* modify all instrumentation to use the ActivitySourceAdapter
* minor todo coment
* build fix
* Fix empty activitysource listening for asp.net
* Enable .NET 452 - part 01
* removing warning and adding net452 to shims.OpenTracing
* adding net452 condition to dependencies code
* undoing non-related changes to pull request
* adding sytem.tuple to dependencies.test for net 452. changing condition to netframework
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Adds HostingProject extension method to support new Activity based api.
* pr comment
* some test refactoring for better cleanup to ensure tests dnt interfere with each other
* Preserve the TraceId of root Activity
When creating the root Activity the sampler should return PropagateData to ensure that the traceID of the root is preserved even if not recorded (sampled per OpenTelemetry parlance).
* Refactor to encapsulate all OTel sampling code
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* use the same activity created by existing instrumentation. Simply enhance it.
* remove sampling from instrumentation
* add asp.net core instrumentation
* move sampling to Instrumentation for now.
Make Asp.Net instrumentation work with Activity API
* Add httpClient .net core instrumentation
* Ad SqlClientInstrumentation
* remove sqlclientinstrumentation from previous instrumentation
* Quick implementation for AzureClients - not validated as there are unit tests and this is not planned to be in this repo as well.
* fix examples
* fix sampling flag
* made sample app work with jaeger
* Mark todos and fix AspNet tests
* Fix asp.net core tests and mark TODOs
* Add TODO for httpclient .net core test and fix test
* add todo and fix httpclient test
* add todos and fil sqlclienttests
* Make OpenTelemetrySDK disposable and take care of disposing all ds subscriptions.
* Added OpenTelemetry.Default instead of static method
* AspNet, AspNetCore fix Dispose issue
* stylecop stuff lost i merge
* Enable StyleCop rules for Test projects
This enables most of the StyleCop for test projects cleaning up any
errors as appropriate.
* Enable StyleCop rules for Test projects
This enables most of the StyleCop for test projects cleaning up any
errors as appropriate.
* Add line break at end of ruleset files
* Correct multi-line parameter after rebase
* Classes scaffolding for zPages
Implemented Http Server to create HTML that displays span count using SimpleSpanProcessor
* incorporating review comments
- made ContentType const in zpages stats builder
- modified return statements in zpages exporter
- removed implementation folder from ZPages.csproj
- changed default uri for zpages test application
- changed data type of spanCount to long, and doing Interlocked.Increment when span starts
* fixing minor error
* Delete Exporters.csproj
Fix for https://github.com/open-telemetry/opentelemetry-dotnet/issues/480
* Delete Exporters.csproj
Fix for https://github.com/open-telemetry/opentelemetry-dotnet/issues/480
* displaying span status on zpages
* Adding Span Error Count and fixing build failure
* Adding Span Latency to zpages http server
* Adding class for storing span information
* Adding methods for calculating latency, count and error count values in last hour and last minutes
* Building HTML for zpage and adding timer for calculating metrics
* Implementation changes
- Added ZPages Span Processor
- Changed the logic for metrics calculation
* Update src/OpenTelemetry.Exporter.ZPages/Implementation/ZPagesStatsBuilder.cs
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
* Incoroporating Review Comments
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
* Updated HttpWebRequestDiagnosticSource to use the new .NET 5 ActivitySource API.
* Code review part 1 and string allocation reduction.
* Code review part 2 added ExceptionInitializingInstrumentation event.
* Code review feedback 3.
* Code review feedback 4.
* Updated unit tests and some code review feedback.
* Updated to JaegerActivityExporter since it was just merged.
* Refactored http tag value caching so that it can be shared in dependencies project.
* Code review.
* Noticed a couple comments needed to be updated.
* Added Activity.IsAllDataRequested logic.
* Code review.
* Reverted change to OpenTelemetrySdk.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>