Commit Graph

869 Commits

Author SHA1 Message Date
Daniel Gomez Blanco ac578e9a8d
fix(opentelemetry-instrumentation-http): handle null ports in options (#2948)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-05-11 15:54:22 -04:00
Marc Pichler 97bc6321c0
refactor(metrics-sdk): rename InstrumentationLibrary -> InstrumentationScope (#2959)
* feat(opentelemetry-core): introduce InstrumentationScope.

* refactor(metrics): replace usage of InstrumentationScope with InstrumentationLibrary.

* fix(changelog): update changelog.

* fix(changelog): update (stable) changelog to better reflect what was done.
2022-05-11 22:43:16 +08:00
Siim Kallas 1ee1b287ed
feat: metric aggregation temporality controls (#2902)
* feat: aggregation temporality controls

* chore: update CHANGELOG

* refactor: move named otlp temporality selectors to OTLPMetricExporterBase

* fix: revert accidental protos change

* refactor: rename preferredAggregationTemporality to temporalityPreference

* doc: better changelog wording

* fix: remove unnecessary files
2022-05-10 19:01:30 +08:00
legendecas 772e6595b3
feat(sdk-metrics-base): hoist async instrument callback invocations (#2822) 2022-05-06 21:13:29 +08:00
Daniel Dyla d98548b424
exporter base: include esm and esnext in package files (#2952) 2022-05-05 11:32:11 +08:00
Marc Pichler 1343d16aa2
feat(exporters): update proto version and use otlp-transformer (#2929) 2022-05-04 17:03:04 -04:00
Gerhard Stöbich 65aeff0dd3
chore: remove unused InstrumentationConfig#path (#2944)
* chore: remove unused InstrumentationConfig#path

* add changelog
2022-05-04 11:17:54 -04:00
legendecas 6436d858b3
chore: update prometheus examples (#2939) 2022-04-30 09:48:03 +02:00
Ran Nozik 60a17ee8e3
feat: warn when hooked module is already loaded (#2926) 2022-04-27 11:45:10 -04:00
Amir Blum ce7e98fd98
chore: indent the code with eslint (#2923)
* chore: indent the code with eslint

* chore: update changelog

* chore: add lint switch case indent

Co-authored-by: legendecas <legendecas@gmail.com>
2022-04-26 13:52:35 +08:00
Gerhard Stöbich a5135e20de
chore(deps): update dependency ts-mocha to v9 (#2920)
* chore(deps): update dependency ts-mocha to v9

* chore: remove test scripts if there are no tests

* chore: remvoe also coverage script

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: legendecas <legendecas@gmail.com>
2022-04-25 21:18:08 +02:00
Daniel Dyla 28a177ffe3
Include metrics in release (#2928) 2022-04-25 09:06:04 -04:00
Daniel Dyla a0a670a03f
Release proposal 1.2.0 / 0.28 (#2914) 2022-04-22 10:32:28 -04:00
Marc Pichler e5031bdf65
refactor(exporters): introduce packages for shared exporter classes (#2893)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-04-21 08:49:31 -04:00
Gerhard Stöbich 0f3e4dea3c
chore: cleanup API dependencies (#2904) 2022-04-20 20:52:52 +02:00
Daniel Dyla 75cbf5d491
Fix code coverage paths (#2913) 2022-04-20 13:24:14 -04:00
Daniel Dyla 96465c535a
chore: add coverage scripts to experimental (#2908)
* chore: add coverage scripts to experimental

* Remove codecov from browser only packages

Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-04-20 17:45:27 +08:00
legendecas 2ba6dd5681
feat(sdk-metrics-base): meter identity (#2901) 2022-04-19 10:10:42 +08:00
Daniel Dyla ed2f033815
Merge back into a single lerna monorepo (#2892)
* chore: use a single lerna monorepo

* chore: release API dependencies

* chore: fix selenium exporter

* chore: support old API versions

* chore: update changelog

* chore: remove peer api check

* chore: changelog

* chore: fix cache keys and paths

* chore: fix lint cache

* ci: install when cache misses

* chore: apply cache fix to webworker and web

* chore: apply cache fix to lint

* chore: revert peer api check removal

* chore: match peer and dev dependency versions for API

* chore: send full string to lerna exec

* chore: use npm script for peer api check

* chore: use MetricAttributes in metrics

* chore: use MetricAttributes when appropriate

Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-04-18 11:12:16 +08:00
legendecas 7086d5aa71
feat(sdk-metrics-base): shutdown and forceflush on MeterProvider (#2890)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-04-15 20:51:44 +02:00
legendecas 14bd6f93ed
refactor(sdk-metrics-base): meter shared states (#2821) 2022-04-12 01:32:41 +08:00
Marc Pichler 0213d829dc
feat(experimental-packages): Update packages to latest SDK Version. (#2871)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-04-07 16:51:11 -04:00
legendecas eac583e9d8
docs: simplify changelog entry format (#2889)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-04-07 21:27:52 +02:00
Svetlana Brennan 9890767c98
fix(otlp-http-exporter): remove content length header (#2879) 2022-04-06 14:28:22 -04:00
Daniel Dyla 5d9ed3faa5
chore: require a changelog entry to merge PR (#2847) 2022-04-01 09:36:24 -04:00
legendecas b6cb40ffd0
fix(sdk-metrics-base): coerce histogram boundaries to be implicit Infinity (#2859)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-03-31 17:49:53 +08:00
Einar Norðfjörð 7870e9529f
HTTP 400 status code should not set span status to error on servers (#2789)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-03-28 13:13:25 -04:00
legendecas b749b0daa7
feat(prometheus): update prometheus exporter with wip metrics sdk (#2824)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-03-28 22:52:46 +08:00
Svetlana Brennan da22673d10
docs(sdk): update earliest support node version (#2860)
Signed-off-by: Svetlana Brennan <svetlana.svn@gmail.com>
2022-03-27 23:53:46 +08:00
Daniel Dyla 16eaeb6f0e
chore: move trace exporters back to experimental (#2835)
Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de>
Co-authored-by: Gerhard Stöbich <18708370+Flarna@users.noreply.github.com>
2022-03-25 15:10:21 -04:00
Daniel Dyla 549bd5b9f8
feat(proto): add @opentelemetry/otlp-transformer package with hand-rolled transformation (#2746)
Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de>
2022-03-23 13:51:15 -04:00
legendecas 1f0f6d9bf4
chore: add prepublishOnly to ensure a full build (#2844)
Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-03-23 01:08:38 +08:00
legendecas 3fd1b1ea91
feat(sdk-metrics-base): update exporting names (#2829)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-03-21 13:50:14 +01:00
Marc Pichler 70dc60b479
feat(views): Update addView() to disallow named views that select more than one instrument. (#2820) 2022-03-20 11:55:16 +01:00
Siim Kallas c6dab2a6e7
refactor: change metrics export data model to match OTLP protos (#2809)
* refactor: match metrics export model with proto

* refactor: get rid of MetricsData

* fix: don't filter empty instrumentation library metrics
2022-03-06 17:16:16 +08:00
WhiteSource Renovate 13a0e7e46a
chore(deps): update dependency karma to v6.3.16 [security] (#2811)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-03-05 09:55:49 +01:00
Marc Pichler 5b83c1828d
feat(views): handle view conflicts. (#2734) 2022-03-05 00:06:31 +08:00
legendecas b8df001379
chore: target to es2017 in the no-polyfill target (#2765)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-02-24 16:32:46 +08:00
naseemkullah 144e11ab70
docs(prom-example): remove deprecated startServer option (#2802)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-02-22 14:51:54 -05:00
Srikanth Chekuri 630a26182a
feat(sdk-metrics-base): update metric exporter interfaces (#2707)
Co-authored-by: legendecas <legendecas@gmail.com>
2022-02-22 14:46:56 +01:00
legendecas fd62fa4712
feat(sdk-metrics-base): add ValueType support for sync instruments (#2776) 2022-02-14 10:47:36 +08:00
WhiteSource Renovate e4aa9eb257
chore(deps): update dependency karma to v6.3.14 [security] (#2783) 2022-02-11 18:37:26 +01:00
legendecas ba177fab33
test(sdk-metrics-base): test metric instrument interfaces (#2743)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-02-10 10:14:23 +08:00
Marc Pichler e1c32b2daa
feat(views): add FilteringAttributesProcessor (#2733) 2022-01-26 14:21:15 -05:00
legendecas 8daaddc6a4
feat(sdk-metrics-base): document and export basic APIs (#2725) 2022-01-26 14:09:45 +08:00
legendecas 04f9edd12f
feat(sdk-trace-web): web worker support (#2719)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-01-20 22:33:54 +01:00
Sebastian Poxhofer e32879abbc
feat(otlp-exporter-http): change otlp-http port to canonical 4318 (#2557)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-01-20 08:57:46 -05:00
legendecas 8bda25ca9e
docs(api-metrics): add notes on ObservableResult.observe (#2712)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-01-20 00:30:14 +08:00
legendecas 1577f3536f
feat(sdk-metrics-base): implement async instruments support (#2686)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-01-19 23:31:28 +08:00
legendecas 206a1c3c1a
test(sdk-metrics): browser compatibility tests (#2709) 2022-01-19 00:04:21 +08:00
legendecas 21fc8b5280
feat(instrumentation-http): add options to ignore requests (#2704)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-01-17 10:35:42 +01:00
legendecas 82e39c470a
chore: apply eslint rule semi (#2710) 2022-01-12 00:07:40 +08:00
legendecas 4909cf122a
fix(sdk-metrics-base): remove aggregator.toMetricData dependency on AggregationTemporality (#2676)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2022-01-11 00:50:08 +08:00
legendecas 6b94e26022
feat(sdk-metrics-base): meter registration (#2666) 2022-01-08 22:36:52 +01:00
Marc Pichler 354c002283
feat(metric-reader): add metric-reader (#2681) 2022-01-07 13:48:39 -05:00
Rauno Viskus 3d5447defa
chore: rename `--include-filtered-dependencies` (#2699) 2022-01-04 14:54:48 -05:00
legendecas eba315b6a2
feat(api-metrics): remove observable types (#2687)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-12-28 22:34:51 +01:00
Srikanth Chekuri bef840b55b
feat(sdk-metrics-base): bootstrap metrics exemplars (#2641)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-12-28 16:05:08 -05:00
legendecas 5d22abacae
fix: remove window and document dependencies in web packages (#2689)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-12-24 16:54:18 +01:00
Rauno Viskus 89f862b284
chore: bump otlp trace exporters to v1 (#2626)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-12-21 14:04:01 -05:00
Svetlana Brennan 2c8601fe9d
Update metrics example (#2658)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-12-18 11:04:55 +01:00
legendecas 27bbb11cde
feat(sdk-metrics): bootstrap metric streams (#2636) 2021-12-17 08:12:34 -05:00
legendecas f59c5b268b
chore: add markdown link checks (#2657)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-12-11 21:31:36 +01:00
echoontheway b804d9bff7
chore: add esm2015 entry for web apps aiming at modern browsers (#2556) 2021-12-11 20:02:47 +01:00
legendecas a35f09362a
feat(metrics-sdk): bootstrap aggregation support (#2634)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-12-09 09:24:18 -05:00
bgpo f51f8531b9
fix: clientMethodTrace missing original properties (#2650) 2021-12-08 12:31:47 -05:00
Daniel Dyla 09d3f6887a
Update nock (#2652)
Co-authored-by: Cole Easton <coleasto@amazon.com>
2021-12-07 14:05:50 -05:00
Ricky Zhou b9e7835716
refactor(opentelemetry-sdk-node): remove redundant judgments for metric (#2648) 2021-12-06 11:50:30 -05:00
Daniel Dyla 3959386463
feat: spec compliant metric creation and sync instruments (#2588) 2021-12-01 11:13:18 -05:00
Daniel Dyla 14afcc1f7b
chore: Update wip metrics references (#2638) 2021-11-27 13:59:45 +01:00
legendecas 5e9c7e1cb6
feat(api-metrics): async instruments spec compliance (#2569)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-11-22 16:58:51 +01:00
legendecas 9b5feb2f21
feat(metrics-sdk): bootstrap views api (#2625)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-11-21 21:28:49 +01:00
Daniel Dyla 13acbd3675
chore: rename metrics packages to prevent lerna linking (#2629) 2021-11-20 09:10:35 +01:00
WhiteSource Renovate 58bfe2563b
chore(deps): pin dependencies (#2616) 2021-11-17 10:22:19 -05:00
Daniel Dyla d128f0ff4e
chore: fix the compilation for typescript 4.4 (#2623) 2021-11-15 21:14:02 +01:00
WhiteSource Renovate b9dffcafd3
chore(deps): update all non-major dependencies (#2449) 2021-11-15 14:25:43 -05:00
Daniel Dyla 6b77b679ca
feat: add WIP metrics SDK (#2601)
Co-authored-by: Georg Pirklbauer <georg.pirklbauer@dynatrace.com>
2021-11-15 08:52:56 -05:00
Daniel Dyla 7d67bf3e3e
chore: Remove old metrics SDK (#2598) 2021-11-11 11:56:42 -05:00
Daniel Dyla 0bc25fa930
chore: fix compilation errors (#2614) 2021-11-11 11:17:13 -05:00
Daniel Dyla 9cf402ee42
chore: release proposal v1.0.1 / v0.27.0 (#2611) 2021-11-11 09:15:45 -05:00
Ali Sabzevari fdab6422ae
chore: Fix lint warnings in instrumentation package (#2404) 2021-11-10 14:02:30 -05:00
Bartlomiej Obecny 61cfbfedff
fix: preventing double enable for instrumentation that has been already enabled (#2610) 2021-11-10 10:20:04 +01:00
Antoine Pultier bc50c7b8e8
feat: lazy initialization of the gzip stream (#2581) 2021-11-09 13:43:29 -05:00
legendecas 1abda1437c
chore: update npm badge image links (#2607) 2021-11-09 13:18:29 -05:00
WhiteSource Renovate 70004c4947
chore(deps): update dependency sinon to v12 (#2603) 2021-11-08 09:14:10 -05:00
Georg Pirklbauer 517a31a4f6
feat: Rename Labels to Attributes (#2523)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-11-08 09:02:29 -05:00
Bartlomiej Obecny 491dd807d1
fix: fixing compatibility versions for detectors (#2584)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-11-05 14:49:50 -04:00
Olivier Albertini 03709c7bda
docs(instrumentation): update links in the Readme (#2576) 2021-11-05 14:20:03 -04:00
WhiteSource Renovate c8272749e1
fix(deps): update dependency @opentelemetry/resource-detector-aws to v1 (#2573) 2021-11-05 09:40:35 -04:00
WhiteSource Renovate 37483bcac7
chore(deps): update dependency karma to v6 (#1826) 2021-11-05 09:08:59 -04:00
Daniel Dyla 0d0b668de8
feat!(metrics): remove batch observer (#2566) 2021-11-02 15:10:06 -04:00
legendecas 5bb83224be
feat(api-metrics): remove bind/unbind and bound instruments (#2559)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-11-02 14:14:48 -04:00
William Armiros c307949125
feat!: Split metric and trace exporters into new experimental packages (#2485)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Rauno Viskus <Rauno56@users.noreply.github.com>
2021-11-02 13:16:41 -04:00
legendecas 4e311bd84e
feat(sdk-metrics-base): remove per-meter config on MeterProvider.getMeter (#2563)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-11-02 09:12:10 +01:00
legendecas 61cf8c5ec1
feat(api-metrics): add schemaUrl to meter creations (#2529) 2021-11-01 11:51:33 -04:00
Gerhard Stöbich fa0cb7270e
chore(deps): pin minor API version (#2531)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-10-27 09:02:40 -04:00
Gerhard Stöbich 5de52ee319
chore: cleanup setting config in instrumentations (#2522)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-10-27 09:50:51 +02:00
Jack c1939a79a9
fix(@opentelemetry/exporter-prometheus): unref prometheus server to prevent process running indefinitely (#2558) 2021-10-26 21:35:57 +02:00
moander b531acffbf
docs: expose existing comments (#2555) 2021-10-22 21:21:07 +02:00
legendecas 6a8c2f2094
fix: prefer globalThis instead of window to support webworkers (#2465)
* fix: prefer globalThis instead of window to support webworkers

There is no `window` in either WebWorkers and ServiceWorkers.

* Update packages/opentelemetry-core/test/platform/browser/environment.test.ts

* fixup! add globalThis helpers
2021-10-21 20:09:19 +02:00
legendecas 9df2132398
fix(sdk-metrics-base): remove metric kind BATCH_OBSERVER (#2540)
BATCH_OBSERVER is no longer a metric.
2021-10-21 20:05:10 +02:00
legendecas f9f43e565a
feat(api-metrics): rename metric instruments to match feature-freeze API specification (#2496)
* feat: rename metric instruments to match feature-freeze API specification

* fixup! rename observables

* fixup!

* fixup!

* fixup!

* fixup! observable naming

* fixup! remove unnecessary spaces

* fixup! add upgrade guidelines
2021-10-15 21:35:18 +02:00
Bartlomiej Obecny df12218cc4
feat: new merge function (#2484)
* feat: new merge function

* chore: updating info about lodash.merge util
2021-10-13 01:33:24 +02:00
legendecas ed0ba063ae
fix(sdk-metrics-base): metrics name should be in the max length of 63 (#2495)
Co-authored-by: Bartlomiej Obecny <bobecny@gmail.com>
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-10-10 20:59:43 +02:00
echoontheway faca317da1
feat(@opentelemetry-instrumentation-fetch): support reading response body from the hook applyCustomAttributesOnSpan (#2497)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-10-09 16:10:46 +02:00
Daniel Dyla 0f5a5bc906
chore(experimental): v0.26.0 proposal (#2513) 2021-10-05 13:15:49 -04:00
Daniel Dyla d15127c951
chore: update stable dependencies to 1.0 (#2514) 2021-10-01 17:05:19 +02:00
Daniel Dyla 6afe2fc308
chore(experimental): update stable deps to 26 (#2512) 2021-09-30 11:40:37 -04:00
Daniel Dyla fa2e897587
chore: v0.26.0 proposal (#2505)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-09-30 08:26:34 -04:00
legendecas a25e30a541
test: add esModuleInterop compatibility test (#2506)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-09-30 07:58:43 -04:00
Paurush Garg 25e5ddea8a
fix: 2389- replaced logger unformatted strings with template literals (#2499) 2021-09-29 17:21:29 -04:00
Daniel Dyla b66c650849
chore: move backwards compatibility to experimental (#2508) 2021-09-29 10:53:40 -04:00
Mustafain Ali Khan be52259d73
fix: remove setting http.route in http span attributes (#2494) 2021-09-28 13:49:47 -04:00
Daniel Dyla f0dc893b79
chore: mark otlp exporters experimental (#2490) 2021-09-27 16:30:07 -04:00
Siim Kallas d41fa7bdea
feat: HTTP instrumentation: add the option to capture headers as span attributes (#2492) 2021-09-27 16:16:01 -04:00
legendecas 6a78db163f
chore: mark @opentelemetry/exporter-prometheus as experimental (#2479)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-09-22 08:56:02 -04:00
Daniel Dyla 745bd5c34d
chore: move sdk-node to experimental (#2473)
* chore: move sdk-node to experimental

* chore: update ts references
2021-09-14 20:41:51 +02:00
Daniel Dyla 0f004daea6
chore: move missed test file to its package (#2474) 2021-09-14 11:22:56 -04:00
Daniel Dyla 07b19ad19e
chore: split stable and experimental packages into groups using directories (#2462)
* chore: split stable and experimental packages into groups

* chore: use experimental directory

* chore: remove release-please
2021-09-10 17:14:55 -04:00