Commit Graph

286 Commits

Author SHA1 Message Date
Marc Alff 17da6d87c1
[API] Add a new AddLink() operation to Span (#2380) 2023-10-27 18:27:57 +02:00
Marc Alff 91dd15fbdf
[API] Add InstrumentationScope attributes in TracerProvider::GetTracer() (#2371) 2023-10-19 23:34:58 +02:00
Lalit Kumar Bhasin d9ad76f6be
[SDK] Creating DoubleUpDownCounter with no matching view (#2379) 2023-10-19 11:28:12 +02:00
Marc Alff e918960e06
[BUILD] Remove WITH_REMOVE_METER_PREVIEW, use WITH_ABI_VERSION_2 instead (#2370) 2023-10-16 22:07:47 +02:00
Marc Alff 05b26cae87
[BUILD] error: read-only reference ‘value’ used as ‘asm’ output (#2354) 2023-10-10 01:30:27 +02:00
Marc Alff c3c643a597
[API] Add InstrumentationScope attributes in MeterProvider::GetMeter() (#2224) 2023-09-30 10:08:02 +02:00
Tom Tan 13f01cae93
Add exemplar reservoir to async metric storage (#2319) 2023-09-21 22:41:18 +02:00
Lalit Kumar Bhasin 0563a71ce3
Fix Observable Counters/UpDownCounters (#2298) 2023-09-18 12:57:28 -07:00
Marc Alff 44096c8072
[SDK] Allow metric instrument names to contain / characters (#2310) 2023-09-14 18:44:01 +02:00
Marc Alff f52ec6cade
[SDK] Increase metric name maximum length from 63 to 255 characters (#2284) 2023-08-31 17:17:26 +02:00
WenTao Ou 0d1326a02e
Support protobuf 3.22 or upper (#2163) 2023-08-11 14:56:50 -07:00
Tom Tan 8c82d24c20
Mark logs signal as stable API/SDK (#2229) 2023-08-01 00:18:57 -07:00
Lalit Kumar Bhasin a15a9b8101
[Metrics SDK] Add unit to Instrument selection criteria (#2236) 2023-07-20 20:53:32 +02:00
Marc Alff 1111f3409f
[API] Remove Meters (#2205) 2023-07-10 10:48:57 +02:00
Marc Alff 8b613188a3
[SDK] TracerProvider should own TracerContext, not share it (#2221) 2023-07-08 16:07:38 +02:00
Cengizhan Pasaoglu cfcda5728e
[SDK] Header files cleanup, use forward declarations (#2182) 2023-06-21 00:11:31 +02:00
WenTao Ou 773a172ddb
Remove include_trace_context (#2194) 2023-06-12 19:16:06 +02:00
Ruslan Nigmatullin d233b9bc1a
[SDK] Add benchmark for base2 exponential histogram indexer (#2181) 2023-06-07 09:07:01 +02:00
Ruslan Nigmatullin 082bb93098
[SDK] Add base2 exponential histogram indexer (#2173) 2023-06-03 10:52:39 +02:00
Ruslan Nigmatullin f5fd9062de
[SDK] Add AdaptingCircularBufferCounter for exponential histograms (#2158) 2023-06-01 09:14:39 +02:00
WenTao Ou 75d76a1cbb
Add unit test for log body implicit conversions. (#2136) 2023-05-11 03:08:31 -07:00
Cengizhan Pasaoglu 990da7dd0f
Fix inclusion header files and use forward declaration for API (#2124) 2023-05-07 16:02:40 -07:00
Tom Tan 80f301805d
SDK support for the new OTel log API (#2123) 2023-05-05 21:22:31 -07:00
davidmandle e71e28c2d7
Use sdk_start_ts for MetricData start_ts for instruments having cumulative aggregation temporality. (#2086)
Co-authored-by: Marc Alff <marc.alff@oracle.com>
2023-04-12 16:32:38 +02:00
Lalit Kumar Bhasin bd7a3c7b41
[Metrics SDK] Implement Forceflush for Periodic Metric Reader (#2064) 2023-03-27 15:14:27 -07:00
WenTao Ou 9b222f2af1
Add `ForceFlush` for all `LogRecordExporter`s and `SpanExporter`s. (#2000) 2023-03-19 22:29:21 -07:00
Johan Peltenburg 1ac9caf100
Pick old schema url when updating schema url is empty according to specification in Resource::Merge (#2036) 2023-03-10 15:44:14 -08:00
Lalit Kumar Bhasin da333f8eba
[Metrics SDK] Performance improvement in measurement processing (#1993) 2023-03-04 04:59:42 +00:00
WenTao Ou fd06d84ea3
Add attributes for `InstrumentationScope` (#2004) 2023-03-02 02:03:44 +00:00
Lalit Kumar Bhasin 7c0826efe0
Add benchmark tests for Sum Aggregation #1949 (#1948) 2023-02-22 20:18:12 +00:00
Lalit Kumar Bhasin 01eac4ca9c
fix variable names (#1987) 2023-02-17 02:32:53 +00:00
Marc Alff 392c3965ed
[EXPORTER] Boolean environment variables not parsed per the spec (#1982) 2023-02-16 17:30:36 -08:00
WenTao Ou e47dec5cfa
Fix missing ObservedTimestamp. (#1985) 2023-02-15 07:42:13 -08:00
Tom Tan 4daca390e9
Build OpenTelemetry C++ SDK and exporter into DLL (#1932) 2023-02-13 09:46:25 -08:00
Marc Alff 6925fc4751
Fixed copyright for every file under sdk. (#1961) 2023-02-06 20:14:19 -08:00
WenTao Ou 65ebdb1e61
Update logs sdk and api to follow specification (#1884) 2023-01-28 09:29:36 -08:00
Lalit Kumar Bhasin 998badd466
Custom Aggregation support (#1899) 2023-01-23 07:56:35 +00:00
Tom Tan 59d0bc2055
Make macros.h available for all source files via version.h (#1918) 2023-01-17 13:45:17 -08: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
Lalit Kumar Bhasin 61bc860a49
[ETW Exporter] Add Virtual destructor for TailSampler, Update Maintainer mode warnings for MSVC (#1897) 2023-01-04 09:33:02 -08:00
Johan Peltenburg c0deb4065e
Log a warning when the BatchSpanProcessor queue is full. (#1871) 2022-12-22 23:31:10 -08:00
WenTao Ou 9f333ff4f6
Remove `EmitEvent` to follow https://github.com/open-telemetry/opentelemetry-specification/pull/2941 (#1766) 2022-12-13 02:57:39 +00:00
Tom Tan 3f0eee6b91
Add option WITH_BENCHMARK to disable building benchmarks (#1794) 2022-11-23 17:01:33 -08:00
Marc Alff d7a388b154
[SEMANTIC CONVENTIONS] Upgrade to version 1.15.0 (#1761) 2022-11-16 13:46:14 -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
Ehsan Saei ec8895bc98
[Metrics SDK] Cleanup of old _metric api/sdk (#1734) 2022-11-06 19:31:37 +01: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
Lalit Kumar Bhasin dd7e257b6d
Fix: 1712 - Validate Instrument meta data (name, unit, description) (#1713) 2022-10-27 15:29:09 -07:00
Lalit Kumar Bhasin f17043f2ec
Fix:1674, Add Monotonic Property to Sum Aggregation, and unit tests for Up Down Counter (#1675) 2022-10-25 17:40:09 -07:00
Ehsan Saei 9b8a4dcdc7
[Metrics API/SDK] Change Meter API/SDK to return nostd::unique_ptr for Sync Instruments (#1707) 2022-10-25 19:02:05 +02:00
Ehsan Saei 7fd76eec7d
[Metrics] Switch to explicit 64 bit integers (#1686) 2022-10-25 16:57:49 +02: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 8061423fe9
Fix:1676 Segfault when short export period is used for metrics (#1682) 2022-10-15 04:01:24 -07:00
Marc Alff fa5f9fc105
Add CMake OTELCPP_MAINTAINER_MODE (#1650) 2022-10-14 20:52:10 -07:00
Marc Alff f29703b21c
Fixes #249 (#1677)
Fixed many remaining compiler warnings.
2022-10-13 20:56:17 +02:00
Lalit Kumar Bhasin 99f2ba4e34
Fix #1663 Threading issue between Meter::RegisterSyncMetricStorage and Meter::Collect (#1666) 2022-10-11 10:58:07 -07:00
Lalit Kumar Bhasin 79a9471f5c
Fix observable Gauge metrics generation (#1651) 2022-10-06 17:31:14 +00:00
Marc Alff 1dc810d882
Fix #1649 (#1658)
Fixed some warnings reported by clang.

-Wnewline-eof
  no newline at end of file

-Wc++98-compat-extra-semi
  extra ';' outside of a function is incompatible with C++98

-Winconsistent-missing-destructor-override
  '~XXX' overrides a destructor but is not marked 'override'

-Wheader-hygiene
  using namespace directive in global context in header

-Wunused-parameter
  unused parameter

Fixed some warnings reported by gcc.

-Werror=missing-field-initializers
  missing initializer for member ‘opentelemetry::v1::sdk::trace::SamplingResult::trace_state’

-Werror=unused-variable
  unused variable

-Werror=unused-parameter
  unused parameter
2022-10-05 11:41:58 -07:00
Ehsan Saei 7724361917
[Metrics SDK] Add Metrics ExemplarFilter and ExemplarReservoir (#1584) 2022-10-05 18:35:39 +02:00
WenTao Ou 1bda597711
Rename `OnReceive` to `OnEmit` (#1652) 2022-10-04 10:18:33 -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
Lalit Kumar Bhasin d127140564
[Metrics SDK] Change boundry type to `double` for Explicit Bucket Histogram Aggregation, and change default bucket range (#1626)
* fix bucket boundaries type for histogram aggregation

* update bucket range, and fix build
2022-10-02 11:39:06 -07:00
Lalit Kumar Bhasin 9e87a6eb59
Fix #1632 - Occasional Segfault with LongCounter instrument (#1638) 2022-09-28 18:05:58 -07:00
Marc Alff 909c26d89d
Fixes issue #1612. (#1622) 2022-09-20 21:55:05 -07:00
Marc Alff 85b78784a5
Fix more build warnings (#1616) (#1620) 2022-09-20 11:43:08 -07:00
Marc Alff c7dfc0de26
Fix build warnings (#1613) 2022-09-14 16:32:56 +02:00
Lalit Kumar Bhasin 951768a8b1
changes (#1597)
Co-authored-by: Ehsan Saei <71217171+esigo@users.noreply.github.com>
2022-09-11 22:07:31 -07:00
Lalit Kumar Bhasin e4b04208c6
Fix 1585 - Multiple cumulative metric collections without measurement recording. (#1586) 2022-09-07 16:09:21 -07:00
WenTao Ou b520480b16
Fix `LoggerContext::Shutdown` and tsan of `OtlpHttpClient` (#1592) 2022-09-06 09:56:56 -07:00
Ehsan Saei 5788287d49
metrics warnings (#1583) 2022-08-28 21:03:36 +02:00
Lalit Kumar Bhasin ad23f20392
METRICS SDK - Calling Observable Instruments callback during metrics collection (#1554) 2022-08-15 16:19:34 -07:00
Ehsan Saei 1b9aa31537
Fix metrics asan and tsan CI (#1562) 2022-08-12 00:14:00 +02:00
Ehsan Saei 6c240fdfbc
remove throw check from metrics with noexcept (#1560) 2022-08-11 18:24:01 +00:00
Ehsan Saei 4cf41c4d6c
Fix metrics context circular reference (#1535) 2022-08-11 14:56:39 +00:00
Ehsan Saei 45037ac2a8
Fix default Metric view name (#1515) 2022-08-10 09:41:39 -07:00
Lalit Kumar Bhasin 8b61c99368
[Metrics SDK] Metric aggregation temporality controls (#1541) 2022-08-08 08:57:19 -07:00
Ehsan Saei 124b198b35
[Metrics SDK] Histogram min/max support (#1540) 2022-08-05 20:18:31 -07:00
Lalit Kumar Bhasin 73a51cf633
Support multiple async callbacks (#1495) 2022-08-05 11:54:00 -07:00
Ehsan Saei 3af512e0ed
Add configuration options for Aggregation creation (#1513) 2022-08-01 21:02:54 +00:00
Ehsan Saei d452e8e859
Fix metrics unit test memory leack (#1533) 2022-07-31 19:48:15 +02:00
WenTao Ou 59e7496f94
Upgrade `instrumentation_library_metrics` to `scope_metrics` (#1507)
* Upgrade `instrumentation_library_metrics` to `scope_metrics`

Signed-off-by: owentou <owentou@tencent.com>

* Rename `InstrumentationLibrary` -> `InstrumentationScope`

Signed-off-by: owentou <owentou@tencent.com>

* Fix style

Signed-off-by: owentou <owentou@tencent.com>

* Fix compiling

Signed-off-by: owentou <owentou@tencent.com>

* Remove duplicated `ElasticSearchRecordable::SetInstrumentationLibrary`

Signed-off-by: owentou <owentou@tencent.com>

* Fix comments

Signed-off-by: owentou <owentou@tencent.com>

* Update the usage of `instrumentation_library` of prometheus exporter.

Signed-off-by: owentou <owentou@tencent.com>
2022-07-30 03:42:15 -07:00
Marc Alff 09480544c8
Add automatically semantic conventions from the spec (#873) (#1497) 2022-07-21 10:57:34 -07:00
Ehsan Saei fba16c6c44
fix compiler warnings (#1499)
* fix compiler warnings

* format
2022-07-17 11:26:57 -07:00
WenTao Ou 4762910eab
Merge branch 'merge_main_into_async-changes' into merge_async-changes_into_main (#1413) 2022-07-08 22:16:01 -07:00
WenTao Ou 7e90dae3e4
Fix global log handle symbols when using dlopen (#1420) 2022-06-03 21:30:20 -07:00
Lalit Kumar Bhasin 62b65fab92
[Metrics SDK] Only record non-negative / finite / Non-NAN histogram values (#1427)
* validate histogram value

* handle Nan

* add changelog

* divide by 0 error on windows

* fix markdown lint
2022-06-02 20:30:15 -07:00
Lalit Kumar Bhasin 9df5c4fef1
[Metrics API/SDK] - Pass state to async callback function. (#1408) 2022-05-31 10:27:42 -07:00
Lalit Kumar Bhasin 63803d10c6
fix OTEL_INTERNAL_LOG_INFO (#1407) 2022-05-18 18:56:21 -07:00
WenTao Ou 280f546e17
Upgrade proto to v0.17.0, update log data model (#1383) 2022-05-16 20:46:39 -07:00
Lalit Kumar Bhasin 9c734b33ee
Enable metric collection for Async Instruments - Delta and Cumulative (#1334) 2022-05-03 15:37:32 -07:00
Lalit Kumar Bhasin f31452286c
Simplify SDK Configuration: Use View with default aggregation if no matching View is configured (#1358) 2022-04-29 17:48:49 -07:00
Lalit Kumar Bhasin 0c74e0b93d
remove exporter registration to meter provider (#1350) 2022-04-25 13:13:13 -07:00
Tom Tan defdfd2ca7
Replace deprecated googletest API (#1327) 2022-04-15 09:08:26 -07:00
Ehsan Saei e3304d7897
fix metrics compiler warnings (#1328) 2022-04-15 12:50:47 +05:30
Lalit Kumar Bhasin 29d68f1146
Implement Merge and Diff operation for Histogram Aggregation (#1303) 2022-04-14 09:53:09 -07:00
WenTao Ou 6b87300b5a
Add building test without RTTI (#1294) 2022-04-07 08:56:44 -07:00
Lalit Kumar Bhasin be75bbc862
Add InstrumentationInfo and Resource to the metrics data to be exported. (#1299) 2022-04-04 22:09:02 +00:00
Lalit Kumar Bhasin 33d9c628f2
Implement periodic exporting metric reader (#1286) 2022-04-01 14:07:44 -07:00