Commit Graph

508 Commits

Author SHA1 Message Date
Lalit Kumar Bhasin 48e633e740
[API] Create root span with active span (#2427) 2023-12-06 00:26:16 +01:00
Bogdan Drutu d91e5bac17
[BUILD] Use fully qualified references to trace/common namespace (#2424) 2023-12-05 22:46:01 +01:00
Marc Alff 39ad238f55
[SEMANTIC CONVENTIONS] Upgrade to semconv version 1.23.1 (#2428) 2023-12-05 21:22:33 +01:00
Kyle L a86f8f094a
[BUILD] Improve the handling of OPENTELEMETRY_HAVE_WORKING_REGEX. (#2430) 2023-12-05 20:39:39 +01:00
Tom Tan abad83d03e
[BUILD] Remove defining NOMINMAX from api (#2420) 2023-12-02 03:46:18 -08:00
Bogdan Drutu 27a58cdc25
[BUILD] Fix references to trace namespace to be fully qualified (#2422) 2023-12-01 09:25:25 +01:00
Tom Tan 064fef0d87
[Metrics] Make context optional for histogram instruments in Metrics SDK (#2416) 2023-11-29 09:45:09 -08:00
Lalit Kumar Bhasin 9b89843553
[SDK] Cardinality limits for metrics streams (Sync Instruments + Delta Temporality) (#2255) 2023-11-21 10:06:06 +01:00
Tom Tan 86ee88615b
[SDK] Fix GetLogger with empty library name (#2398) 2023-11-10 10:53:12 +01:00
Harish Shan ca08c5a34a
[BUILD] Fix exported definitions when building DLL with STL (#2387) 2023-10-31 22:42:53 -07:00
Marc Alff 17da6d87c1
[API] Add a new AddLink() operation to Span (#2380) 2023-10-27 18:27:57 +02:00
Harish Shan 045be9c02b
[BUILD] DLL export interface for Metrics (#2344) 2023-10-23 23:42:28 +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
Harish Shan 231ca4ade1
[SDK] Metrics ObservableRegistry Cleanup (#2376) 2023-10-18 20:50:54 +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 46e20a42ae
[RELEASE] Prepare release 1.12.0 (#2359) 2023-10-16 10:38:49 +02:00
Marc Alff f2cbf02ec1
[SEMANTIC CONVENTION] Upgrade to semconv 1.22.0 (#2368) 2023-10-16 09:38:30 +02:00
Marc Alff 05b26cae87
[BUILD] error: read-only reference ‘value’ used as ‘asm’ output (#2354) 2023-10-10 01:30:27 +02:00
WenTao Ou 0eaa7944e1
Export resource for prometheus (#2301) 2023-10-03 21:47:27 +02:00
Marc Alff c3c643a597
[API] Add InstrumentationScope attributes in MeterProvider::GetMeter() (#2224) 2023-09-30 10:08:02 +02:00
Tom Tan ab83f4f747
Fix minor inconsistent log message in Meter::RegisterSyncMetricStorage (#2325) 2023-09-26 00:57:16 +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
Lalit Kumar Bhasin 5acaa14c21
[SDK] Remove unused variables from sync storage (#2294) 2023-09-03 17:00:51 +02:00
Marc Alff 01e65810b9
[SEMANTIC CONVENTION] Deprecated semconv (in the spec) not deprecated (in C++) (#2285) 2023-09-02 12:09:47 +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
Darren Bolduc c0f17d99b0
Support `pkg-config` (#2269) 2023-08-22 13:28:18 -07:00
Tom Tan 11d5d9e0d8
Prepare for releasing 1.11.0 (#2272) 2023-08-22 08:49:00 -07:00
jaelrod c0092c4c84
fixing an apparent logging macro bug (#2265) 2023-08-16 15:31:53 -07: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
Marc Alff 8f97cab686
[SEMANTIC CONVENTIONS] Upgrade to 1.21.0 (#2248) 2023-07-28 15:06:57 -07:00
Marc Alff 0c5f90dea5
[SDK] Valgrind errors on std::atomic variables (#2244) 2023-07-22 16:51:57 +02:00
WenTao Ou 92a8a54c6f
[BUILD] Fix compile with clang 16 and libc++ (#2242) 2023-07-21 09:54:24 +02:00
Lalit Kumar Bhasin a15a9b8101
[Metrics SDK] Add unit to Instrument selection criteria (#2236) 2023-07-20 20:53:32 +02:00
Darren Bolduc d99cbab06c
[BUILD] include <cstdint> (#2230) 2023-07-12 09:24:21 +02:00
Marc Alff ca8c23481a
Prepare release 1.10.0 (#2227) 2023-07-11 21:45:24 +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
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 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
Marc Alff d980e8b406
[SDK] Simplify SDK version 2023-06-06 12:25:57 +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
Marc Alff 770fce3c40
[RELEASE] Prepare release 1.9.1 (#2149) 2023-05-26 10:13:12 +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
Lalit Kumar Bhasin b4ff53ded2
Add missing target dependencies (#2128) 2023-05-03 13:44:06 -07:00
Lalit Kumar Bhasin 22d0448ebc
Fix: #2100 Building shared libraries with version suffix, along with the symbolic link (#2109) 2023-04-22 10:09:00 +02:00
Marc Alff 7887d32da6
[RELEASE] Release version 1.9.0 (#2091)
Fix #2089

Prepare release 1.9.0
2023-04-13 08:55:54 +02: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
Marc Alff efb1a260fe
[SEMANTIC CONVENTIONS] Upgrade to version 1.20.0 (#2088)
Fix #2087
2023-04-12 09:02:17 +02:00
Lalit Kumar Bhasin bd7a3c7b41
[Metrics SDK] Implement Forceflush for Periodic Metric Reader (#2064) 2023-03-27 15:14:27 -07:00
Marc Alff 380f0f2543
Upgraded semantic conventions to 1.19.0 (#2017) 2023-03-27 06:34:20 -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
Tom Tan f702676250
Prepare v1.8.3 release (#2018) 2023-03-07 15:12:39 -08:00
WenTao Ou 2b08db2db4
Add `OPENTELEMETRY_INSTALL` to allow user to skip install targets. (#2022) 2023-03-07 09:24:03 -08:00
Lalit Kumar Bhasin da333f8eba
[Metrics SDK] Performance improvement in measurement processing (#1993) 2023-03-04 04:59:42 +00:00
Tom Tan 9a5bb8d1af
Change SDK version global variable name to lowercase (#2013)
* Change SDK version global variable name to lowercase

* Rename build_date in pre-commit
2023-03-03 13:00:20 -08:00
Tom Tan 76935bcde0
Rename the global SDK version variables to avoid naming clash (#2011)
* Rename the global SDK version variables to avoid name clashing

* Add changelog entry

* Update pre-commit script with new SDK version variables
2023-03-02 18:51:52 -08: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 9d8efafc28
Upgraded semantic conventions to 1.18.0 (#1974) 2023-02-10 11:02:28 -08:00
Marc Alff 6d9c4cacc9
Fix #1970 (#1971)
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
2023-02-10 07:20:40 -08:00
Marc Alff 2544803a37
Enforce copyright check in CI (#1965) 2023-02-08 15:04:21 -08:00
Marc Alff 6925fc4751
Fixed copyright for every file under sdk. (#1961) 2023-02-06 20:14:19 -08:00
Lalit Kumar Bhasin c4c8ee053f
Convert Prometheus Exporter to Pull MetricReader (#1953) 2023-02-05 18:12:09 +00:00
Marc Alff 32af3529ef
[BUILD] OTLP HTTP Exporter has build warnings in maintainer mode (#1943) 2023-02-02 21:22:19 -08:00
Ehsan Saei d56a5c702f
Prepare v1.8.2 release (#1947) 2023-01-31 19:26:41 +00: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
Marc Alff 7406b4fb2d
[SEMANTIC CONVENTIONS] Upgrade to version 1.17.0 (#1927)
* Upgrade semantic convention to spec 1.17.0

* Add CHANGELOG.
2023-01-18 17:18:47 +00:00
Jan-Willem Buurlage c9e76b4a1a
Fix warning for misconfiguration of PeriodicExportingMetricReader (#1929)
The periodically exporting metric reader requires the timeout field to be strictly less than the interval field. However, the warning that is logged out gives the opposite requirement. The existing logic in the code is correct.
2023-01-18 16:05:33 +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
Ehsan Saei 201b347588
sdk::resource::Resource::Merge should be const (#1905) 2023-01-07 13:46:52 -08:00
Lalit Kumar Bhasin d5571916e1
Collect and Export metric data before PeriodicMetricReader shutdown. (#1860) 2023-01-04 21:28:14 +00: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
Alexey Shakula d5f0c484e3
minor metrics handling optimizations (#1890) 2023-01-03 12:22:08 -08:00
WenTao Ou 94a6783025
Fix resource and scope of new Logs SDK implementation. (#1881) 2022-12-23 08:31:44 +00:00
Johan Peltenburg c0deb4065e
Log a warning when the BatchSpanProcessor queue is full. (#1871) 2022-12-22 23:31:10 -08:00
andyning 9dd19a2afb
Change BatchLogRecordProcessorFactory::Create to static method, Fixed a typo in a comment (#1876) 2022-12-20 19:24:44 -08:00
WenTao Ou dfff6936ef
Fix compatibility when using clang and libc++ (#1852) 2022-12-13 00:10:14 -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
Marc Alff d30c14008c
[SEMANTIC CONVENTIONS] Upgrade to version 1.16.0 (#1853) (#1854)
* [SEMANTIC CONVENTIONS] Upgrade to version 1.16.0 (#1853)

* Add changelog.
2022-12-11 18:01:32 -08:00
Marc Alff 7727620b6c
[Removal] Remove deprecated experimental semantic conventions (#1741) (#1743) 2022-12-08 10:28:27 -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 57bf8c2b0e
Prepare v1.8.1 release (#1839) 2022-12-04 19:11:21 +01:00
Ehsan Saei 6a99feed82
Prepare v1.8.0 release (#1813) 2022-11-27 23:01:30 +01:00
Tom Tan 3f0eee6b91
Add option WITH_BENCHMARK to disable building benchmarks (#1794) 2022-11-23 17:01:33 -08:00
Lalit Kumar Bhasin 8f778b7412
Add MeterContext::ForEachMeter() method to process callbacks on Meter in thread-safe manner (#1783) 2022-11-17 10:12:51 -08:00
Marc Alff d7a388b154
[SEMANTIC CONVENTIONS] Upgrade to version 1.15.0 (#1761) 2022-11-16 13:46:14 -08:00
Lalit Kumar Bhasin a3e3a90ec6
Fix GlobalLogHandler singleton creation order (#1767) 2022-11-14 13:26:41 -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
Ehsan Saei 9acde87b08
Prepare v1.7.0 release with Metrics API/SDK GA. (#1721) 2022-10-29 00:01:56 +02: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
Lalit Kumar Bhasin 419e2d616a
[Metrics SDK] Move Metrics Exemplar processing behind feature flag (#1710) 2022-10-25 15:29:04 -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
Marc Alff ac105bf419
[SEMANTIC CONVENTIONS] Upgrade to version 1.14.0 (#1697) 2022-10-19 10:06:25 -07:00
Tom Tan d9f8bcec4b
Fix a potential precision loss on integer in ReservoirCellIndexFor (#1696) 2022-10-18 09:41:59 -07: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
Tom Tan 47a897d197
Add timeout support to MeterContext::ForceFlush (#1673) 2022-10-14 23:15:27 -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
Ehsan Saei 7140166d62
fix data race on MeterContext::meters_ (#1668) 2022-10-09 19:01:03 +02: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
Tom Tan 5c180a1688
Prepare v1.6.1 release (#1630) 2022-09-22 20:19:36 -07:00
Marc Alff fe0c62fec8
[Semantic Conventions] Align on the specification 1.13.0 (#1625)
* Fix #1624

* Added changelog
2022-09-21 19:11:11 -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
Akshath Kothari 82a81157a9
resource sdk: Update Resource::Merge function docs (#1615) 2022-09-14 19:34:15 -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
Ákos Hadnagy 1f37839651
Fix ObservableInstrument::RemoveCallback (#1582) 2022-08-26 07:55:01 -07:00
Tom Tan 22e64e21f3
Prepare for metrics release candidate v1.6.0 (#1568) 2022-08-16 08:05:53 -07: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 8844771d30
fix metrics race condition (#1552) 2022-08-11 10:23:16 -07:00
Ehsan Saei 4cf41c4d6c
Fix metrics context circular reference (#1535) 2022-08-11 14:56:39 +00:00
Bryce Arden b4ed0471d0
build: fix IWYU error in instruments.h (#1555) 2022-08-10 20:25:36 -07:00
Ehsan Saei 45037ac2a8
Fix default Metric view name (#1515) 2022-08-10 09:41:39 -07:00