Commit Graph

213 Commits

Author SHA1 Message Date
Marc Alff 545f9f4108
[CodeHealth] fix include-what-you-use, part 8 (#3465) 2025-06-09 10:23:10 +02:00
Doug Barker 549f2b009d
[TEST] test examples in CI with CMake Part 1 (#3449) 2025-06-05 20:49:45 +02:00
Marc Alff 76460cf70a
[CI] build examples with IWYU (#3450) 2025-05-31 02:09:27 +02:00
Tom Tan 793c7bd1e9
[BUILD] Propagate INTERFACE_COMPILE_DEFINITIONS from API through common_foo_library (#3440) 2025-05-29 00:18:55 +02:00
ethan d99593f2fd
[EXPORTER] support unix sockets in grpc client (#3410) 2025-05-28 21:41:18 +02:00
Tom Tan 87c216f5c8
[CMake] Add missing CMake keyword for target_link_libraries (#3442) 2025-05-23 18:42:32 +02:00
Marc Alff a530f5ec31
[BUILD] remove unused WITH_CURL build flag (#3429) 2025-05-21 09:12:53 +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
Doug Barker 82ec2a5a3d
[CMAKE] update cmake files in examples directory (#3421) 2025-05-19 15:06:37 +02:00
WenTao Ou 1e33bb595c
Fixes unused var (#3397)
* Fixes unused var

* Ignore IWYU in example
2025-05-09 11:40:28 -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
Luke (GuangHui) Zhang a57063f7a2
fix: buffer overrun in the gRPC sample project (#3304)
Building the sample on Windows, the gRPC sample server/client app fails to function correctly. The propagated trace context is corrupted, containing garbage characters after the trace parent string.

The string buffer from gRPC cannot be safely treated as a null-terminated C-string. To ensure safe copying, we must use its length property instead.
2025-03-21 00:52:50 +01:00
Marc Alff 5bc053e522
[SDK] Support OTEL_SDK_DISABLED environment variable (#3245) 2025-02-05 21:42:51 +01:00
WenTao Ou edb8937377
[DOC] Add document and example for sharing gRPC Client (#3260) 2025-02-01 21:20:39 +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 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
WenTao Ou c33f800b5c
[BUILD] Add OTLP/file exporter for dll and examples (#3231) 2025-01-08 09:23:29 +01:00
Alex E. 2d80c18304
[Code health] Perform cppcheck cleanup (#3150) 2024-12-07 00:34:19 +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
tobim 7402ed9bac
[BUILD] Add a CMake option to disable shared libs (#3095)
* Add a CMake option to disable shared libs

This option is useful to support platforms that do not support
dynamic libraries and `dlopen`.
2024-10-21 23:27:57 +02:00
Fabrízio de Royes Mello 23818a7105
[CI] Update otel-collector version (#3067)
Looks like otel-collector equal or higher than 0.86.0 has the "debug"
exporter.

So updated the README.md with the latest version of the otel-collector
(v0.109.0) and also the CI script.
2024-09-20 15:49:22 +02:00
Tom Tan d623bc57f6
[EXAMPLE] Clean the tracer initialization in OStream example (#3051) 2024-09-05 22:40:26 +02:00
Alex Boten 261a151829
[TEST] update references to logging exporter (#3053)
This exporter has been replaced by the debug exporter and will be removed soon

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-09-05 21:34:20 +02:00
Alex Boten 0d5a387b00
[EXAMPLE] update collector example with debug exporter (#3049)
The logging exporter was renamed debug in 2023, the logging exporter will be removed in the near future, updating the example accordingly.

Co-authored-by: Marc Alff <marc.alff@oracle.com>
2024-09-04 23:58:53 +02:00
Siddhartha Malladi a71642fe67
[Code Health] Clang Tidy cleanup, Part 2 (#3038) 2024-08-25 19:58:32 +02:00
WenTao Ou 4520aa598b
[SDK] Fix crash in `PeriodicExportingMetricReader`. (#2983) 2024-07-19 12:12:48 +02:00
Marc Alff 611906eeaf
[REMOVAL] Remove build option `WITH_DEPRECATED_SDK_FACTORY` (#2717) 2024-07-18 01:27:46 +02:00
Siddhartha Malladi eb2b9753ea
[Code Health] clang-tidy cleanup, part 1 (#2990) 2024-07-11 11:45:17 +02:00
Marc Alff 6dbfdb52eb
[Code health] include-what-you-use cleanup, part 2 (#2704) 2024-07-06 17:16:02 +02:00
Dat Le 77012391b2
[BUILD] Add bazel missing BUILD file (#2720) 2024-06-27 09:01:41 +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
Marc Alff c42dcca9f8
[CI] Upgrade to clang-format 18 (#2684) 2024-05-29 22:01:06 +02:00
Marc Alff 7aea1a6a94
[SEMANTIC CONVENTIONS] Rework on semantic conventions 1.25.0 (#2640) 2024-04-18 00:41:38 +02:00
WenTao Ou 950c336e3f
[DOC] Add readme and examples for OTLP FILE exporters. (#2638) 2024-04-17 09:10:24 +02:00
Ehsan Saei 8f15440b45
[SEMANTIC CONVENTIONS] Upgrade to semantic convention 1.25.0 (#2633) 2024-04-16 23:29:10 +02:00
John Bley a06fd25ae7
[MISC] Use set -e on all shell scripts and pass shellcheck --severity=error (#2616) 2024-03-28 18:43:46 +01:00
Marc Alff ac7ee5f80a
[BUILD] CMake cleanup for message() (#2582) 2024-03-08 09:02:49 +01:00
Keith Smiley eaaf6cd602
Fix old style cast warning (#2567)
Fixes https://github.com/open-telemetry/opentelemetry-cpp/issues/2556
2024-02-28 23:01:19 +01:00
Lalit Kumar Bhasin 32196a51f0
Fix observable attributes drop (#2557) 2024-02-27 08:56:57 -08:00
Tom Tan 14b74b9fb4
[EXAMPLES] Improve readme of Metrics example (#2510) 2024-01-25 10:31:25 +01:00
Tom Tan 1467d663a9
[EXAMPLES] Use logs API instead of logs bridge API in the example (#2494) 2024-01-18 22:52:12 +01:00
Marc Alff 9f6d1453e7
[REMOVAL] Remove ZPAGES (#2433) 2023-12-06 01:25:11 +01:00