Commit Graph

385 Commits

Author SHA1 Message Date
Peter Wiese 57e98ad61a Build OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj based on latest .proto files (#331)
* Build OpenTelemetry.Exporter.Ocagent.csproj based on latest .proto files

.proto files forked from https://github.com/open-telemetry/opentelemetry-proto
@4b6ff88e525739a2b1d2cbed619301076c6687e7

and build using Grpc.Tools

* Adding README file with a SHA for .proto files fork

* Moving OpenTelemetry.Exporter.Ocagent to OpenTelemetry.Exporter.OpenTelemetryProtocol
2019-11-11 11:17:28 -08:00
Sergey Kanzhelev 4711b87c89
minor corrections for IsRemote for completeness (#336)
* minor corrections for IsRemote for completeness

* Update src/OpenTelemetry.Api/Trace/SpanContext.cs

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

* RemoteBlandk->BlankRemote for better intellisense
2019-11-11 10:59:03 -08:00
Sergey Kanzhelev 7a6efc651a
Reolving TracerFactory is not required when use Opentelemetry.hosting (#333) 2019-11-09 12:46:56 -08:00
Sergey Kanzhelev 9223282da8
fix sampling setters (#327)
* fix sampling setters

* Update src/OpenTelemetry/Trace/Configuration/TracerFactory.cs

Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
2019-11-07 14:26:35 -08:00
Cijo Thomas a7449e619f Modify metric api as per offline feebacks (#326)
* Modify metric api as per offline feebacks

* FileName change

* fix missing measure methods on Meter

* fix no op meter
2019-11-07 14:17:37 -08:00
Peter Wiese 2a931fcdee Repair the build for the OpenTelemetry.Exporter.Ocagent.csproj (#330)
Apparently the build pipeline for the master branch ci is not looking
exclusively at the .sln, so this project must build.

This is simply a build fix and nothing else.

Adding the otelcol exporter to the .sln
2019-11-07 10:38:12 -08:00
Peter Wiese 5fdcab9c83 Restoring the exporter to the OpenTelemetry collector (#329)
* Revert "remove Ocagent exporter (#235)"

This reverts commit 2e14b8c69c
except for the changes to the .sln file.

* Removing unused file for now

* Restore most current version of the .sln file
2019-11-07 09:34:43 -08:00
Sergey Kanzhelev 4fcefae2a2
Segkanz/more context (#324)
* Tags -> DistributedContext rename in SDK

* remove TaggerState

* added DistributedContext class

* remove support for net46

* revert back to net45
2019-11-06 13:28:12 -08:00
Sergey Kanzhelev cb0630c8f9
icon is in the package (#325) 2019-11-06 11:19:23 -08:00
Sergey Kanzhelev 26f00c433a
rename Tags namespace to DistributedContext namespace (#323) 2019-10-31 14:18:33 -07:00
Pavel Krymets 28c90ab821 Subscribe to all Azure SDK diagnostic sources (#322)
* Subscribe to all Azure SDK diagnostic sources

* Feedback

* Fix stylecop

* Dispose test factories
2019-10-30 22:01:55 -07:00
Sergey Kanzhelev 0867dd0238
added DistributedContext metadata (#321)
* added DistributedContext metadata

* Update src/OpenTelemetry.Api/Tags/DistributedContextEntry.cs

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

* Update src/OpenTelemetry.Api/Tags/DistributedContextEntry.cs

Co-Authored-By: Bruno Garcia <bruno@brunogarcia.com>
2019-10-30 15:06:50 -07:00
Sergey Kanzhelev 230f441c85
Removed TagKey and TagValue in favor of simply using strings (#320)
* TagKey -> string

* TagValue -> string

* remove failing tests as tags verification logic was removed
2019-10-29 09:44:00 -07:00
Sergey Kanzhelev 89f6ed82f2
Update HttpInListener.cs (#315) 2019-10-28 16:40:07 -07:00
Sergey Kanzhelev d64a008c62
more docs (#318)
* more docs

* Update src/OpenTelemetry.Exporter.Zipkin/TracerBuilderExtensions.cs

Co-Authored-By: Liudmila Molkova <lmolkova@microsoft.com>

* Update src/OpenTelemetry.Exporter.ApplicationInsights/TracerBuilderExtensions.cs

Co-Authored-By: Liudmila Molkova <lmolkova@microsoft.com>
2019-10-28 16:31:20 -07: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 6eb3fe32a5
Fixes #265 - endianess in Jaeger (#314)
* failing jaeger test

* fixed endianess of bytes
2019-10-27 21:52:06 -07:00
Liudmila Molkova 5090cf777b
Add convenience methods to start active span (#305)
* first

* Add friendly API to start active spans

* update readme and add test

* rename benchmarks

* Remove StartActiveRootSpan - this is rare case

* Move active spans creation to extensions, WithSpan has flag to control lifetime

* tests pass

* cleanup

* a few more tests

* test

* docs

* I hate stylecop

* fix broken test

* Dispose spans on end (when span lifetime is the same as scope lifetime)
2019-10-25 07:11:09 -10:00
Peter Wiese 523a7c1255 Populate SpanContext in the Span ctor BEFORE calling any SpanProcessor (#312)
* Populate SpanContext in the Span ctor BEFORE calling any SpanProcessor

* Fixing a cut and paste error

* Patching a timestamp comparison function used in a bunch of non-deterministic time checks. :(
2019-10-24 22:12:28 -07:00
Chris Kleinknecht 48410e0fb5 Fix typo in README (#313)
Remove a duplicate `:` in the README.
2019-10-24 22:01:37 -07:00
Sergey Kanzhelev 0c3b1102d9
Update CODEOWNERS (#310) 2019-10-23 16:06:07 -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
Sergey Kanzhelev 450fc19d91
Move peoples list out of community repo (#309)
Related to https://github.com/open-telemetry/community/issues/233
2019-10-23 14:26:56 -07:00
Cijo Thomas 32ec627cb4 Added new Metric API from the latest spec. (#307)
This is not complete, but an attempt to get early feedback. Full compliance to spec will be done after initial reviews.
2019-10-23 13:52:53 -07:00
Liudmila Molkova bf0e3df820
Move advanced span creation options to new class to simply API (#304)
* Move advanced span creation options to new class to simply API

* docs

* fix tests
2019-10-23 11:23:55 -07:00
Cijo Thomas 83be8c1a24 Removed old metric api as they are out of touch with new spec. (#306) 2019-10-23 11:07:02 -07:00
Wolfgang Ziegler 997112b875 Logging Exporter (#300)
* Add missing shutdown call to Exporter from Span Processor

* Logging Exporter

Simple exporter (proof of concept) that prints to console.

* LoggingExporter

Also log span ids.
Add helper method for indenting.
Rename test methods (RunFoo...)

* Fix build issue due to AddProcessorPipeline refactoring.

* Fix build issue

* Fix build error. File is not part of this PR

* Logging Exporter

Simple exporter (proof of concept) that prints to console.

* LoggingExporter

Also log span ids.
Add helper method for indenting.
Rename test methods (RunFoo...)

* Fix build issue due to AddProcessorPipeline refactoring.

* Fix build error. File is not part of this PR

* Fixed conflict

* Prefix for named Tracer was never set
2019-10-22 12:32:27 -07:00
Wolfgang Ziegler 44b42f4715 Add missing call to Exporter.ShutdownAsync (#294)
* Add missing shutdown call to Exporter from Span Processor

* Fix test expectations

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

Co-Authored-By: Liudmila Molkova <lmolkova@microsoft.com>

* Test for "Shutdown" case explicitly in TestExporter.
2019-10-22 11:48:52 -07:00
Liudmila Molkova 46d5e11d63
Don't calculate start timestamp in noop case (#299)
* Don't calculate timestamp by default

* calculate timestamp in span only
2019-10-21 23:04:23 -07:00
Bruno Garcia 0610a5b530 Span creation takes Func<IEnumerable<Links>> to optimize on NoOp (#282)
* wip

* ref: Take func for Links

* ref: Avoid allocation when no links

* ref: Allocate only if necessary

* fix some unit tests

* ref: Overload taking IEnumerable

* fix: overload

* ref: use overload with enumerator

* ref; use enumerator overload

* fix: Cast double to long to match expected

* ref: Use .Any()

* ref: Pass null thru for IEnumerable

* test: SpanTest

* ref: Align params

* ref: Use List<Link> in Span

* ref: Got cough being lazy

* fix: Ludimila fixes my shitty code

* ref: including max value

Co-Authored-By: Liudmila Molkova <lmolkova@microsoft.com>

* ref: remove redundant list allocation
2019-10-21 19:17:30 -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
Peter Wiese 66a65cbc31 Support binary SpanContext propagation in the OpenTracing shim (#296) 2019-10-21 17:18:33 -07:00
Liudmila Molkova c8fbb0a4a9
minor Span impl improvements, no locks on atomic assignments (#293)
* Remove lock on Span Add methods - span does not need to be thread safe

* optimization for noop case

* return lock back as per spec

* up
2019-10-21 17:06:26 -07:00
Sergey Kanzhelev aa8f42fbd8 rename IsRecordingEvents -> IsRecording (#291) 2019-10-21 16:36:34 -07:00
Sergey Kanzhelev fb3e02a9c5
Added IsRemote to SpanContext (#292) 2019-10-21 12:56:29 -07:00
Liudmila Molkova ee07aef46e
Azure SDK don't set client kind on http spans - workaround that (#290) 2019-10-18 15:25:16 -07:00
Liudmila Molkova e9a0218525
Fix InvalidCastException in AzureSdkListener (#289) 2019-10-18 14:51:22 -07:00
Liudmila Molkova fe5f228b8a
Don't require SpanExporter in SpanProcessor constructor (#285) 2019-10-18 11:26:58 -07:00
Andy Gardner 31cec9d1ba Adding Jeager Exporter links (#288) 2019-10-18 09:52:18 -07:00
James Newton-King e7bd851f32 Add OpenTelemetry.Hosting (#275)
* Add OpenTelemetry.Hosting

* Update README.md

* Docs and additional test
2019-10-17 22:05:39 -07:00
Peter Wiese cbde4c14cd Reduce unnecessary exceptions from TraceContextFormat::Extract (#284)
If the incoming request contains no W3C Trace Context, Extract was throwing

System.InvalidOperationException: 'Sequence contains no elements'

from
var traceparent = traceparentCollection?.First();

We can filter out that condition (no traceparent) without the exception.
2019-10-16 14:29:14 -07:00
Bruno Garcia e299734f80 chore: bump OT dependency (#278) 2019-10-15 09:03:00 -07:00
Liudmila Molkova cc41648685 Move TracerBuilderExtensions to the same namespace (#280) 2019-10-14 21:48:00 -07:00
Liudmila Molkova 3838e81aca minor style fixes (#274)
* usings outside in Abstractions

* Move usings outside of namespace and apply style

* more style fixes

* merge with master

* build fix
2019-10-14 11:57:21 -07:00
Bruno Garcia d48e702286 ref: Move using outside namespace (#277) 2019-10-12 10:03:45 -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 afb1381bbd
Remove span builder (#268)
* Remove SpanBuilder

* tests

* more tests and readme

* review feedback
2019-10-11 15:47:19 -07:00
Liudmila Molkova 61fe06036a
Separate auto-collectors and make them accept Tracer (#266) 2019-10-09 09:29:29 -07:00
Liudmila Molkova 3e35c23b5f
Basic benchmarks (#262) 2019-10-08 17:42:07 -07:00
Liudmila Molkova 6097bb3136
Use IsEnabled DS callback to filter out requests (#259)
* Use IsEnabled DS callback to filter out requests

* Update src/OpenTelemetry.Collector.Dependencies/DependenciesCollectorOptions.cs

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

* Update src/OpenTelemetry.Collector.AspNetCore/RequestsCollectorOptions.cs
2019-10-08 17:24:46 -07:00