Commit Graph

508 Commits

Author SHA1 Message Date
Marc Alff 8e9663d031 Refresh code from PR #2518, to fix code review comments. 2025-06-11 00:23:58 +02:00
Marc Alff 854dbf0a61 [CONFIGURATION] File configuration - trace model 2025-06-09 11:07:37 +02:00
Marc Alff 545f9f4108
[CodeHealth] fix include-what-you-use, part 8 (#3465) 2025-06-09 10:23:10 +02:00
Evan d64b65368c
[DOC] Update doc comments to pass -WDocumention check (#3375) 2025-06-05 09:27:35 +02:00
Lalit Kumar Bhasin d2e728914d
[SDK] Use shared_ptr internally for AttributesProcessor to prevent use-after-free (#3457)
* fix

* fix

* add test

* fix

* iwuc
2025-06-03 10:40:10 -07:00
Marc Alff b9cf499ff5
[RELEASE] Release opentelemetry-cpp 1.21.0 (#3445) 2025-05-29 11:30:28 +02:00
Marc Alff b4254a4acf
[EXPORTER] ostream log exporter, fix memory ownership issues (#3417) 2025-05-21 13:29:02 +02:00
Doug Barker 165983a128
[CMAKE] remove global include_directories usage and rely on target properties (#3426) 2025-05-20 23:44:47 +02:00
Yash Tibrewal 29ac517bee
[SDK] Fix MetricProducer interface (#3413) 2025-05-20 11:05:30 -07:00
Doug Barker 2faa400782
[SDK] Fix Base2ExponentialHistogramAggregation Merge with empty buckets (#3425) 2025-05-20 08:52:56 +02:00
Doug Barker 546fcd7979
[INSTALL] Unify cmake install functions and dynamically set component dependencies (#3368) 2025-05-14 09:44:27 +02:00
Doug Barker 92dd28c2cb
[SDK] support aggregation of identical instruments (#3358)
* use the existing storage for sync or async instruments of the same name. add tests

* add hash and name case insensitive hash for InstrumentDescriptor. Update storage registry to use the hash and equality structs. Add tests.

* don't allocate heap in the hash. fix some ci failures

* fix a few more ci failures.

* move the instrument descriptor ostream operator to meter.cc to not leak the ostream header and keep the meter instrument creation warning implementation in the same file

* adds instrument descriptor tests

* add comments

* Move case-insensitive equals method and IsDuplicate method into InstrumentDescriptorUtils struct. Add log streamable wrappers for scopes and instrument descriptors. Add tests for correcitve views for name and description duplicates

* fix iwyu errors

* duplicate instrument log message improvements to match spec. minor test additions/cleanup

* changelog entry

* address review feedback. Add Ascii to the name of the instrument util case-insensitive equal function

* address feedback: short circuit the instrument descriptor CaseInsensitiveAsciiEquals and IsDuplicate checks

* fix comments

---------

Co-authored-by: Tom Tan <lilotom@gmail.com>
Co-authored-by: Marc Alff <marc.alff@oracle.com>
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
2025-05-09 05:53:05 +00:00
Yash Tibrewal 4e4d8de860
[Metrics SDK] Use nostd::function_ref in AttributesHashMap (#3393) 2025-05-08 23:26:50 +00:00
Cole VanOphem 9451f0e3be
[SDK] Optimize PeriodicExportingMetricReader Thread Usage (#3383) 2025-05-06 11:05:23 -07:00
Tom Tan a145a56880
[TEST] Add stress test for histogram metric for multiple threads validation (#3388) 2025-05-03 10:56:25 +02:00
WenTao Ou 9fd8511772
Fixes glibc++ 5 checking (#3355)
* Fixes glibc++ 5 checking

* Always checking `OPENTELEMETRY_TRIVIALITY_TYPE_TRAITS` when `OPENTELEMETRY_STL_VERSION` is defined

* Restore confg.h but left a warning
2025-04-28 22:25:31 -07: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
Pranav Sharma d976876feb
[API] Add Enabled method to Tracer (#3357) 2025-04-22 07:13:52 -07:00
Doug Barker c2a9397627
[INSTALL] add cmake components to the package (#3220) 2025-04-02 09:54:17 +02:00
WenTao Ou ab8147987d
[BUILD] Remove `WITH_ABSEIL` (#3318) 2025-04-02 01:45:26 +02:00
Marc Alff 6175aa0b21
[RELEASE] Release opentelemetry-cpp 1.20.0 (#3328) 2025-04-02 00:21:41 +02:00
Tom Tan 3bd8de9702
[METRICS SDK] Fix hash collision in MetricAttributes (#3322) 2025-04-01 23:12:24 +02:00
Pranav Sharma 0fa41f9e26
[SDK] Use OPENTELEMETRY_EXPORT and static local variables (#3314) 2025-03-24 22:09:19 +01:00
Pranav Sharma d09bfbac57
[SDK] Add logger scope configurator (#3282) 2025-03-20 22:22:11 +01:00
IcySteam dee5b0bc5c
[SDK] Implement spec: MetricFilter (#3235) 2025-03-12 00:18:55 +01:00
WenTao Ou 3c4afd0696
[API] Deprecate event logger (#3285) 2025-02-25 10:36:31 +01:00
Pranav Sharma a7f9daf4cf
[SDK] Add meter scope configurator (#3268) 2025-02-21 12:10:14 +01:00
Kyle L 2fdc0226c4
Fix compilation with Regex being disabled (#3276)
* Fix compilation with Regex disabled:
* It was missing an include for std::any_of
* Avoid declaring unused constants (at least my LLVM errors out)

* Only include algorithm if needed.

* Fix where we reference the WORKING_REGEX.
2025-02-15 21:11:23 -08:00
Marc Alff 5bc053e522
[SDK] Support OTEL_SDK_DISABLED environment variable (#3245) 2025-02-05 21:42:51 +01:00
Marc Alff 3506a7a975
[SDK] Fix BatchLogRecordProcessor to instrument shutdown (#3262) 2025-02-04 12:05:47 +01:00
Pranav Sharma 52a80b5a04
[SDK] Add tracer scope configurator (#3137) 2025-01-30 21:27:36 +01:00
Marc Alff ced79860f8
[RELEASE] release opentelemetry-cpp 1.19.0 (#3249) 2025-01-22 09:09:48 +01:00
Lalit Kumar Bhasin e21655559c
[SDK] Optimize Metric Processing for Single Collector with Delta Temporality (#3236) 2025-01-22 08:23:16 +01:00
Marc Alff d2ff95acbc
[CI] Add GRPC in maintainer CI (#3248) 2025-01-21 15:21:30 +01:00
Alex E. 25f7a13f6f
[EXPORTER] Support handling retry-able errors for OTLP/HTTP (#3223) 2025-01-17 16:35:19 +01:00
Doug Barker 02cda5103f
[SDK] enable deriving from ResourceDetector to create a Resource (#3247) 2025-01-16 18:38:05 +01:00
WenTao Ou 95baed7158
[SDK] Fix lifetime of GlobalLogHandler (#3221) 2025-01-15 21:18:26 +01:00
Marc Alff 62b71970e5
[Code Health] Include what you use, part 7 (#3238) 2025-01-13 22:51:47 +01:00
Marc Alff d693e95cdb
[SDK] Better control of threads executed by opentelemetry-cpp (#3175) 2025-01-13 10:12:30 +01:00
Marc Alff e5a1a15296
[Code Health] Include what you use, part 6 (#3216) 2025-01-08 10:31:06 +01:00
Doug Barker 92bf8daad5
[SDK] Fix include instrumentation scope attributes in equal method (#3214) 2024-12-18 21:13:44 +01:00
Marc Alff 762b73d851
[SDK] Tracer provider shutdown blocks in-definitively (#3191) 2024-12-07 14:50:04 +01:00
Alex E. 2d80c18304
[Code health] Perform cppcheck cleanup (#3150) 2024-12-07 00:34:19 +01:00
Marc Alff d15da3b256
[Code health] Include what you use cleanup, part 5 (#3140) 2024-11-27 11:57:47 +01:00
Marc Alff 955a807c04
[RELEASE] Release opentelemetry-cpp 1.18.0 (#3168)
Fixes #3145
2024-11-26 00:19:04 +01:00
Albert Kharisov 31956f82ff
[BUILD] Fix build for esp32 (#3155) 2024-11-24 21:50:40 +01:00
Keith Smiley 9d998e3341
[bazel] Enable --incompatible_disallow_empty_glob (#2642) 2024-11-23 11:10:48 +01:00
WenTao Ou a5db7e5935
[EXPORTER] Allow to share gRPC clients between OTLP exporters (#3041) 2024-11-18 23:32:36 +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