Commit Graph

75 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
Tom Tan 87c216f5c8
[CMake] Add missing CMake keyword for target_link_libraries (#3442) 2025-05-23 18:42:32 +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
Doug Barker c2a9397627
[INSTALL] add cmake components to the package (#3220) 2025-04-02 09:54:17 +02: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
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
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
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
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
Marc Alff 2535c70c4e
[API/SDK] Provider cleanup (#2664) 2024-06-03 22:46:08 +02:00
WenTao Ou 950c336e3f
[DOC] Add readme and examples for OTLP FILE exporters. (#2638) 2024-04-17 09:10:24 +02:00
Marc Alff 3dfcf93c41
[EXPORTER] Rework OTLP/HTTP and OTLP/GRPC exporter options (#2388) 2023-11-13 14:27:29 -08:00
Harish Shan 045be9c02b
[BUILD] DLL export interface for Metrics (#2344) 2023-10-23 23:42:28 +02:00
Tom Tan 8c82d24c20
Mark logs signal as stable API/SDK (#2229) 2023-08-01 00:18:57 -07:00
Marc Alff 6ecd201f95
[SDK] MeterProvider should own MeterContext, not share it (#2218) 2023-07-06 22:46:53 +02:00
Marc Alff d0452f829f
[SDK] Provide builders to avoid exposing Metrics SDK internals (#2189) 2023-06-28 19:08:42 +02:00
Cengizhan Pasaoglu cfcda5728e
[SDK] Header files cleanup, use forward declarations (#2182) 2023-06-21 00:11:31 +02:00
WenTao Ou 9b222f2af1
Add `ForceFlush` for all `LogRecordExporter`s and `SpanExporter`s. (#2000) 2023-03-19 22:29:21 -07:00
Chill.dude 2462f7c98c
Fix some docs typo (#2057) 2023-03-15 22:37:18 -07:00
Tom Tan 4daca390e9
Build OpenTelemetry C++ SDK and exporter into DLL (#1932) 2023-02-13 09:46:25 -08:00
Marc Alff 1d18614edb
Fixed copyright in examples. (#1964) 2023-02-07 05:59:12 +00:00
Marc Alff 0305ad8e4c
Cleanup CMake makefiles for CURL usage (#1916) 2023-01-17 07:05:59 -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
Marc Alff 41821d67cd
Fix console debug logs for otlp exporters. (#1848)
Fixes https://github.com/open-telemetry/opentelemetry-cpp/issues/1847
2022-12-07 14:29:29 -08:00
Ehsan Saei b8b715faf9
[Metrics SDK] Cleanup ENABLE_METRICS_PREVIEW (#1735) 2022-11-06 21:03:08 +00:00
Ehsan Saei 7efeeabeea
[Logs SDK] LogProcessor, LogExporter class name (#1736) 2022-11-06 20:08:24 +00:00
WenTao Ou 7634edf461
[Logs SDK] LogProcessor, LogExporter changes (#1727)
* + Rename `LogProcessor` to `LogRecordProcessor`
+ Rename `LogExporter` to `LogRecordExporter`
+ Move `*log_processor*` to `*log_record_processor*`
+ Move `*log_exporter*` to `*log_record_exporter*`

Signed-off-by: owent <admin@owent.net>

* Add changelog

Signed-off-by: owent <admin@owent.net>

Signed-off-by: owent <admin@owent.net>
Co-authored-by: Ehsan Saei <71217171+esigo@users.noreply.github.com>
2022-11-04 19:11:32 +01:00
Ehsan Saei 52585635bb
Add otlp-grpc example bazel (#1708) 2022-10-24 16:31:01 +02:00
Lalit Kumar Bhasin cfaf8a1f6c
Example for OTLP gRPC exporter for Metrics. (#1598) 2022-09-12 23:44:35 -07:00
WenTao Ou 0b7d4ab57b
Add OTLP Metric Exporter Factory and `OtlpGrpcClient` (#1606) 2022-09-12 20:14:47 -07:00
Marc Alff 70fd2dcb88
Fix log sdk builder (#1486) (#1524) 2022-08-02 00:17:49 -07:00
Marc Alff e708de5565
Fix trace sdk builder 1393 (#1471) 2022-07-15 12:52:12 -07:00
Marc Alff c22463384d
Fixed file permissions on source code (#1490) (#1491) 2022-07-12 18:47:09 -07:00
WenTao Ou b8fae39f81
Use custom abseil with bazel (#1172) 2022-01-14 16:53:15 -08:00
WenTao Ou d206b505e0
Logger: Propagating resources through LoggerProvider (#1154) 2022-01-12 10:11:43 -08:00
Ehsan Saei 5aa632741d
Mark tags to bazel targets round 2 (#1094) 2021-12-15 18:50:04 -08:00
Ehsan Saei 1867688f7c
Otlp gRPC log example (#1083) 2021-11-23 13:08:45 -08:00
Ehsan Saei 0a924fb490
Mark tags to bazel targets (#1075) 2021-11-22 14:10:03 -08:00