Commit Graph

28 Commits

Author SHA1 Message Date
Reiley Yang 78baf7c261
Implement the metrics dispose/shutdown logic (#2404) 2021-09-23 08:02:09 -07:00
Reiley Yang 886b39f0fa
Refactor MetricExporter AggregationTemporality (#2347) 2021-09-13 21:35:53 -07:00
Reiley Yang bec00a9a92
Refactor MetricReader AggregationTemporality (#2342) 2021-09-13 11:05:37 -07:00
Cijo Thomas 16b3188496
Metrics -> Main (#2332)
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
Co-authored-by: Michael Maxwell <micmax@microsoft.com>
2021-09-10 15:34:54 -07:00
Alan West 67b6a83932
HttpClient http.client.duration metric (#2243) 2021-08-10 09:20:18 -07:00
Cijo Thomas b74491801b
Run HttpClient .NET Core tests for .NET 5 as well (#1988) 2021-04-15 15:58:56 -07:00
Cijo Thomas 12da9a05b5
Add RecordException support for HttpClient (.NETCore) (#1987) 2021-04-15 15:32:37 -07:00
Mikel Blanchard 1bab62cb71
Exporter spec fixup 2 (#1620)
* Jaeger & Zipkin status enums are now uppercase. Zipkin error tag is an empty string.

* Updated CHANGELOGs.

* Attempting to fix build.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-27 18:43:29 -08:00
Mikel Blanchard 932c2587d2
Status Improvements (#1579)
* Send StatusCode as a string. Send error flag in Zipkin & Jaeger when StatusCode == Error.

* Missed one spot.

* Removed code setting otel.status_description to http status description.

* Unit test fixup.

* Update CHANGELOG.

* Updated http instrumentation CHANGELOG.

* Code review.

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-17 23:39:28 -08:00
Mikel Blanchard b956a5f7e9
Resource allocation improvement (#1463)
* Introduces the concept of IProviderContainer which allows injection of a TracerProvider into lower levels (Processor, Exporter, etc.).

* Removed IProviderContainer and fixed the provider types.

* Removed log provider example.

* Working on getting everything working with the new API.

* Attempting to get all the tests passing.

* Added concept of BaseProvider. Updated public API.

* Project fixup.

* Removed OnParentProviderSet.

* Updated changelog.

* Test fixup.

* Test fixup.

* Cleanup.
2020-11-09 13:39:25 -08:00
Eddy Nakamura 378ba54b77
Updating Status based on the new spec (#1313)
* Updating Status based on the new spec

commenting OtlpTrace.Status.Type check

fixing test

undoing change to statuscanonicalcode

fixing tests

reiley's comments

SetStatus now saves enum instead of string

fixing changes after conversion

fixing redis tests

from http spec, if 1xx,2xx,3xx => unset, otherwise error.
from rpc spec, if ok => unset, otherwise error.

fixing sql tests

fixing redis tests

* fixing sqlclient framework tests

* adding benchmark to status

* changing from hashset to simple if, readding statuscode for grpc
2020-10-13 10:11:32 -07:00
Reiley Yang 71bb3635f5
ILogger integration - part 3 (#1328)
* extract common part

* make process/exporter generic

* update dependencies

* update all the tests and docs

* clean up

* changelog

* update readme

* prevent LogRecord to be inherited

* simplify example

* simplify the code

* revert accidental change
2020-10-07 09:55:54 -07:00
Eddy Nakamura 874f9d7863
CustomProperty improvements (#1261)
* CustomProperty improvements

updating tests

updating to RuntimeContextSlot

updating to runtimeContext

adding runtime/subscibe/flag benchmark

updating aspnet and http

updating ramaining instrumentation

* adding try/catch&log

* improve docs for enrich action

* Checking enrichment with sampler

* removing unneeded using

* updating changelog

* updating changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-10-06 13:27:00 -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
Reiley Yang f6ef67bd33
Cleanup dispose/shutdown flow (#1142)
* improve comments

* only TracerProvider.Dispose will call processor.Shutdown

* add comments

* update test cases

* update test case

* cleanup nits

* fix plural form
2020-08-24 11:22:03 -07:00
Eddy Nakamura 3e1d7f1a20
Replacing variable names (#1134)
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-08-21 19:01:47 -07:00
Cijo Thomas f5bffdb7fa
Rename Span to Activity in tests (part1) (#1133) 2020-08-21 15:46:14 -07:00
Cijo Thomas 7807c810cc
Instrumentation to store context object into Activity.CustomProperty (#1128)
* Modify instrumentations to populate context object only if Activity.IsAllDataRequested is set

* AspNetCore tests

* Asp.Net tests

* httpclient tet

* httpwebrequest test

* sqlclient tests

* grpc test

* changelog

* move inside alldatarequested

* remove test which validate customproperty population in propagation only mode

* cop caught

* fix test
2020-08-21 13:10:52 -07:00
Mikel Blanchard 0d00b8df1c
Shared test cleanup. (#1100)
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-18 21:11:15 -07:00
Eddy Nakamura dad644aae1
Renaming from OT to OTel (#1046)
* Renaming from OT to OTel

* updating to full name and suggestion

* updating changelog

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-11 19:33:17 -07:00
Eddy Nakamura a3bf19d450
Removing Todos (#1029)
* Removing Todos

renaming parameter

adding tests

updating spanbuilderShim

updating to internal

renaming to spanAttributes

solving build issue

adding spec reference

Continue Refactoring TracerProvider. (#1035)

* optimize the flow

* fix instrumenataion

* move mroe things to provider ctor

* move logic arounds

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

changing to class and following spec to replace value

replacing from default to null

updating package

adding xunit.runner

renaming method

* removing duplicated files

* adding some tests and updating to default constructor

* removing to be compliant to spec

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-11 07:50:53 -07:00
Cijo Thomas 47a6fe7621
Refactor TracerProvider to make configuration easy. (#1027)
* Refactor TracerProvider to make configuration easy.

* build break fix

* MyExporter change

* format

* sql build fix

* fix

* test fix
2020-08-09 00:48:00 -07:00
Eddy Nakamura 5cdfd30284
Updating ActivityProcessor (#975)
* Updating ActivityProcessor

updating tests

updating tests - 2

updating merge

updating tests - 3

updating tests - 4

using inrange instead of equal

updating tests

* updating to inRange

* following docs.microsoft

* updating tests and changelog

* Adding in changelog custom behavior

* Removing duplicated IDisposable

* forcing dispose

* updating tests

* moving to single instead of equal one

* returning to default

* setting more time to pass tests

* forcing dispose

* reiley's suggestions

* reverting order

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-08-04 14:40:30 -07:00
Cijo Thomas 80edb939e4
HttpStatusCode as int instead of string (#998)
* HttpStatusCode to use int

* foramt

* format

* Cops arrested me
2020-08-04 09:17:03 -07:00
Cijo Thomas 920b0ed8d2
Provide MeterProvider to replace MeterFactory to be in sync with spec. (#919)
* Provide MeterProvider to replace MeterFactory to be in sync with spec.

* move OpenTelemetrymetrics to metrics folder

* Update examples/Console/TestPrometheusExporter.cs

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

* Sdk.CreateTracerProvider CreateMeterProvider

* move Sdk to root

* makr Sdk static

Co-authored-by: Reiley Yang <reyang@microsoft.com>
2020-07-24 15:27:21 -07:00
Cijo Thomas b19c7e09c7
Move Otel.Trace.Exporter namespace to just Otel.Trace (#903) 2020-07-23 15:48:45 -07:00
Eddy Nakamura 2dd8daa1e4
Splitting Instrumentation Projects (#890)
updating README

updating sql integration test

updating yml

updating dockerfile

updating readme

updating global.asax

updating version and readme

removing unused reference, adding properties folder to be similar to OT project

adding zipkin docker in comments

updating to standard2.1

removing unused usings

updating aspnet/aspnetcore methods naming

applying cijo's suggestions

updating projects to compile semantic file, updating comments

Splitting Instrumentation Projects

updating README

updating sql integration test

updating yml

updating dockerfile

updating readme

updating global.asax

updating version and readme

removing unused reference, adding properties folder to be similar to OT project

adding zipkin docker in comments

updating to standard2.1

removing unused usings

applying cijo's suggestions
2020-07-23 11:50:57 -07:00