Commit Graph

47 Commits

Author SHA1 Message Date
Doug Barker 549f2b009d
[TEST] test examples in CI with CMake Part 1 (#3449) 2025-06-05 20:49:45 +02:00
Doug Barker 82ec2a5a3d
[CMAKE] update cmake files in examples directory (#3421) 2025-05-19 15:06:37 +02:00
ethan 7bf114913d
Base2 exponential histogram aggregation (#3346)
* add base2 expo histo aggregation

* add base2 expo histo, test, benchmark

* add prom, otlp exporter and example

* add ostream exporter and example

* update vscode launch

* run tools/format.sh

* add grpc exporter target switch for unix sockets

* Added ConvertExponentialHistogramMetric unit test

* Update the osstream_metric_test with ExponentialHistogram

* update CHANGELOG.md

* markdown lint

* Comment non-used function add missing includes

* add metrics dependency to otlp exporters test build

* run format

* remove unused function definition

* Added empty line in the end of a test file and removed comments

* Fix windows build errors

* fix iwyu warnings

* add comment to trigger pr update

* fix additional iwyu warnings

* Fix iwyu warning

* Fix include order in base2_exponential_histogram_aggregation.h

* Add kcumulative and kdelta aggregation temporality test with collect calls for base2 histogram aggregation

* add prelim bucketing checks

* Tested the exp2 constructor with point data

* Fix missing include in sync histogram test

* move diff and merge to use union of all buckets approach

* make get a const method

* update base2 expo hiso diff test

* add base2 expo histo test with sync storage collect

* uncomment examples

* format

* use static_cast

* fix comments

* update changelog

* Fix comments and errors in the pipeline

* Update sdk/src/metrics/aggregation/base2_exponential_histogram_aggregation.cc

Co-authored-by: Tom Tan <lilotom@gmail.com>

* remove unused code

* set max_buckets minimum to 2

* Revert otlp grpc client changes

Propose change in follow up PR

* [wip] make buckets unique ptr

* refactor unique_ptr for buckets with deep copies

* format

* update otlp serialization test with unique ptr

* format

* Small pipeline fixes

* iwyu fix

* remove boundary and format

---------

Co-authored-by: Ruslan Nigmatullin <euroelessar@gmail.com>
Co-authored-by: Felipe C. Dos Santos <felipe.santos.k@gmail.com>
Co-authored-by: Tom Tan <lilotom@gmail.com>
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
Co-authored-by: Felipe C. Dos Santos <42920697+felipesantosk@users.noreply.github.com>
2025-04-25 18:13:23 +00:00
Marc Alff 5bc053e522
[SDK] Support OTEL_SDK_DISABLED environment variable (#3245) 2025-02-05 21:42:51 +01:00
Marc Alff d19eb322e9
[CI] Spurious test failures (#3233) 2025-01-08 13:41:19 +01:00
Marc Alff e5a1a15296
[Code Health] Include what you use, part 6 (#3216) 2025-01-08 10:31:06 +01:00
Marc Alff f7a9aea063
[SEMANTIC CONVENTIONS] Migration to weaver (#3105) 2024-11-13 19:14:12 +01:00
uuzay f30ab925c8
[API] Add synchronous gauge (#3029)
* Add synchronous gauge

* Add ABI Version macro, update tests

* Fix function description

* Fix formatting

* Remove ABI macros from SDK.

* Add error log for gauge delta temporality.

* Fix formatting

* Apply suggestions from code review

Move kGauge to the end, for better ABI compatibility.

---------

Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
Co-authored-by: Marc Alff <marc.alff@free.fr>
2024-10-30 22:34:25 +01:00
Marc Alff 611906eeaf
[REMOVAL] Remove build option `WITH_DEPRECATED_SDK_FACTORY` (#2717) 2024-07-18 01:27:46 +02:00
Marc Alff f97dc061bc
[Code health] include-what-you-use cleanup (#2692) 2024-06-15 17:10:05 +02:00
Marc Alff 2535c70c4e
[API/SDK] Provider cleanup (#2664) 2024-06-03 22:46:08 +02:00
Tom Tan 14b74b9fb4
[EXAMPLES] Improve readme of Metrics example (#2510) 2024-01-25 10:31:25 +01:00
Harish Shan 045be9c02b
[BUILD] DLL export interface for Metrics (#2344) 2023-10-23 23:42:28 +02:00
Lalit Kumar Bhasin a15a9b8101
[Metrics SDK] Add unit to Instrument selection criteria (#2236) 2023-07-20 20:53:32 +02:00
Marc Alff d0452f829f
[SDK] Provide builders to avoid exposing Metrics SDK internals (#2189) 2023-06-28 19:08:42 +02:00
Marc Alff 1d18614edb
Fixed copyright in examples. (#1964) 2023-02-07 05:59:12 +00:00
Lalit Kumar Bhasin 46b16ec3cf
Histogram Aggregation: Fix bucket detection logic, performance improvements, and benchmark tests (#1869) 2023-01-11 16:49:35 -08:00
Tom Tan 57d1a478bd
Remove unused namespace alias for nostd (#1914) 2023-01-10 22:47:39 +00:00
Marc Alff a343da043e
Fix #1867 Orderly shutdown in examples (#1868) 2023-01-04 06:33:40 -08:00
Ehsan Saei b8b715faf9
[Metrics SDK] Cleanup ENABLE_METRICS_PREVIEW (#1735) 2022-11-06 21:03:08 +00:00
Ehsan Saei ec8895bc98
[Metrics SDK] Cleanup of old _metric api/sdk (#1734) 2022-11-06 19:31:37 +01:00
Ehsan Saei 70777ef9fa
[Metrics SDK] Add support for Pull Metric Reader (#1701) 2022-10-21 23:21:18 +02:00
Ehsan Saei 7f37bc3281
fix Histogram crash (#1685) 2022-10-17 17:58:34 +00:00
Lalit Kumar Bhasin 89eb1ec6bf
[DOCS] - Minor updates to OStream Metrics exporter documentation (#1679) 2022-10-14 15:53:55 -07:00
Lalit Kumar Bhasin f21b3a009a
Fix #1588 - Observable Gauge does not reflect updated values, and send the old value always (#1641) 2022-10-02 14:38:50 -07:00
Ehsan Saei 3af512e0ed
Add configuration options for Aggregation creation (#1513) 2022-08-01 21:02:54 +00:00
Lalit Kumar Bhasin 45f0235dda
Connect async storage with async instruments (#1388) 2022-05-16 11:10:13 -07:00
Ehsan Saei 3fd5ca38a0
Getting started document using ostream exporter (#1394)
Co-authored-by: Reiley Yang <reyang@microsoft.com>
2022-05-16 16:53:40 +02:00
Lalit Kumar Bhasin 0c74e0b93d
remove exporter registration to meter provider (#1350) 2022-04-25 13:13:13 -07:00
Ehsan Saei bf8f433cae
ostream metrics cmake (#1344) 2022-04-21 21:27:19 +00:00
Ehsan Saei b33dd0920a
metrics histogram example (#1330) 2022-04-18 16:37:01 +00:00
Ehsan Saei 755f109a0d
ostream metrics example (#1312) 2022-04-12 11:12:21 -07:00
Ehsan Saei 0a924fb490
Mark tags to bazel targets (#1075) 2021-11-22 14:10:03 -08:00
Paurush Garg 9772156789
fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00
Lalit Kumar Bhasin e58524c49a
Move old metrics implementation to different directory, and rename targets to *_deprecated (#1053)
Co-authored-by: Tom Tan <Tom.Tan@microsoft.com>
2021-11-05 14:25:22 -07:00
WenTao Ou 521ebd8f51
+ Move `CORE_RUNTIME_LIBS` into dependency of `opentelemetry_api` (#850) 2021-06-12 21:29:37 +05:30
Lalit Kumar Bhasin 3fa6525f40
Add missing Copyright headers (#754) 2021-05-25 11:37:08 +05:30
Lalit Kumar Bhasin b696e11b7c
Add preview feature-flag/macro for metrics (#745) 2021-05-14 14:37:28 +05:30
Reiley Yang 24a080fcdd
lint and reformat markdown (#579) 2021-02-12 14:09:40 -08:00
Reiley Yang a0777d1e77
Add markdownlint (#578) 2021-02-12 13:24:36 -08:00
Reiley Yang ab7f5f2054
Add spell check to CI (#527) 2021-01-21 09:49:02 +05:30
Max Golovanov 1e7b9d8a95
Using STD library for API surface (#374) 2020-12-22 11:27:48 +05:30
Carlos O'Ryan 9b94160937
doc: fix some broken links (#456) 2020-12-17 11:14:30 +05:30
Karen Xu f2708921be
Move KeyValueIterable and KeyValueIterableView from trace to common (#363) 2020-10-17 20:10:44 -07:00
Johannes Tax 18a44cad93
Add a memory check task to the CI (#246) 2020-08-17 08:43:51 -07:00
Hudson Humphries b35d589bd7
Metrics example (#266) 2020-08-07 14:02:32 -07:00
Hudson Humphries e9ccbc25a5
Add Simple Metrics example (#258) 2020-08-07 10:24:39 -07:00