Commit Graph

54 Commits

Author SHA1 Message Date
Evan d64b65368c
[DOC] Update doc comments to pass -WDocumention check (#3375) 2025-06-05 09:27:35 +02:00
Pranav Sharma d976876feb
[API] Add Enabled method to Tracer (#3357) 2025-04-22 07:13:52 -07:00
Santiago ff2447df63
[BUILD] Improve how to handle yield() in ARM. (#3129) 2024-11-07 22:01:59 +00:00
Pranav Sharma be1f43ca00
[API] Comply with W3C Trace Context (#3115) 2024-11-06 18:35:40 +01:00
Marc Alff a9208987c5
[Code Health] include-what-you-use cleanup, part 3 (#3004) 2024-08-26 12:59:17 -07:00
WenTao Ou 4520aa598b
[SDK] Fix crash in `PeriodicExportingMetricReader`. (#2983) 2024-07-19 12:12:48 +02:00
WenTao Ou 3efd3ce8f4
[EXPORTER] OTLP file: use `fopen`, `fwrite`, `fflush` and `fclose` which are thread-safe. (#2675)
* Use `fopen`, `fwrite`, `fflush` and `fclose` which are thread-safety.

* Add some macros to help to find problems.

Add `OPENTELEMETRY_ATTRIBUTE_LIFETIME_BOUND` , `OPENTELEMETRY_SANITIZER_NO_MEMORY` , `OPENTELEMETRY_SANITIZER_NO_THREAD`, `OPENTELEMETRY_SANITIZER_NO_ADDRESS`, `OPENTELEMETRY_HAVE_BUILTIN`, `OPENTELEMETRY_HAVE_FEATURE`, `OPENTELEMETRY_HAVE_ATTRIBUTE`, `OPENTELEMETRY_HAVE_CPP_ATTRIBUTE`

* Append EOL before call Export of backend

---------

Co-authored-by: Marc Alff <marc.alff@oracle.com>
2024-06-08 14:38:00 +02:00
Marc Alff c42dcca9f8
[CI] Upgrade to clang-format 18 (#2684) 2024-05-29 22:01:06 +02:00
Marc Alff 25738f391b
[BUILD] Provide LIKELY / UNLIKELY macros (#2580)
* Contributes to #2572

* Restored support for __builtin_expect()

* Typo
2024-03-11 22:14:14 +01:00
WenTao Ou 6e8f7c44f3
[EXPORTER] Async exporting for otlp grpc (#2407) 2024-02-08 13:50:03 -08:00
Sai Harsha Kottapalli fe15d0a4d1
[BUILD] Fix multiple assignment operators for SpinLockMutex (#2501) 2024-01-23 09:08:56 -08:00
Tom Tan abad83d03e
[BUILD] Remove defining NOMINMAX from api (#2420) 2023-12-02 03:46:18 -08: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 a39e8b51ea
Add user facing Logging API and Benchmarks (#2094) 2023-04-23 07:52:43 -07:00
Tom Tan 15ab9ed9ad
Checking indices before dereference (#2040) 2023-03-13 22:49:25 -07:00
WenTao Ou fd06d84ea3
Add attributes for `InstrumentationScope` (#2004) 2023-03-02 02:03:44 +00:00
Tom Tan 4daca390e9
Build OpenTelemetry C++ SDK and exporter into DLL (#1932) 2023-02-13 09:46:25 -08:00
WenTao Ou 65ebdb1e61
Update logs sdk and api to follow specification (#1884) 2023-01-28 09:29:36 -08:00
Tom Tan 59d0bc2055
Make macros.h available for all source files via version.h (#1918) 2023-01-17 13:45:17 -08:00
Gabriel SCHWAB 8866c10f10
use _mm_pause instead of __builtin_ia_32_pause when __INTEL_COMPILER defined (#1885) 2022-12-22 14:37:31 -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 7727620b6c
[Removal] Remove deprecated experimental semantic conventions (#1741) (#1743) 2022-12-08 10:28:27 -08:00
Lalit Kumar Bhasin dd7e257b6d
Fix: 1712 - Validate Instrument meta data (name, unit, description) (#1713) 2022-10-27 15:29:09 -07: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
Marc Alff 74f0ac16b1
Fix header only api singletons (#1520) (#1604) 2022-09-13 07:01:40 -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 280f546e17
Upgrade proto to v0.17.0, update log data model (#1383) 2022-05-16 20:46:39 -07:00
Lalit Kumar Bhasin 99a72e1ae0
Add noexcept/const qualifier at missing places for Trace API. (#1374)
* fix noxcept

* fix etw
2022-05-06 07:21:22 -07:00
Lalit Kumar Bhasin 75c2a8f7a6
Update yield logic for ARM processor (#1325) 2022-04-12 14:33:39 -07:00
WenTao Ou 6b87300b5a
Add building test without RTTI (#1294) 2022-04-07 08:56:44 -07:00
Tom Tan fed56cc346
Fix build test of Zipkin exporter on Windows (#1177) 2022-01-20 10:11:16 -08:00
WenTao Ou d206b505e0
Logger: Propagating resources through LoggerProvider (#1154) 2022-01-12 10:11:43 -08:00
Idar 530cb307ee
Idar oss/build error memcpy (#987) 2021-09-21 09:33:41 -07:00
Lalit Kumar Bhasin aaf78a356d
remove internally used functionality from public API documentation (#973) 2021-09-09 09:45:18 -07:00
Lalit Kumar Bhasin ae6d81088c
Adding semantic-convention attributes for resources (#872) 2021-06-24 10:24:54 +05:30
Max Golovanov d0e73c87c4
Switch from MPark variant to `absl::variant` as default (#771) 2021-06-04 23:59:02 +05:30
Lalit Kumar Bhasin 3fa6525f40
Add missing Copyright headers (#754) 2021-05-25 11:37:08 +05:30
Johannes Tax 01b7a841c2
Minor api documentation cleanup (#728) 2021-05-08 13:15:32 +05:30
Johannes Tax a978920411
Get rid of obsolete core namespace in API (#686) 2021-04-22 12:15:10 +05:30
nikhil1511 c8c697f9dd
Adding baggage implementation (#676) 2021-04-21 14:50:27 +05:30
Johannes Tax 14eef5d361
Attribute value cleanup (#679) 2021-04-20 14:38:41 +05:30
Evgeny Yakimov aeb8230ad2
Add SpanContext (and TraceState) to Recordable (#667) 2021-04-13 09:28:17 +05:30
nikhil1511 afa2e79819
Refactoring trace_state to reuse common functionality in baggage (#638) 2021-04-06 00:44:00 +05:30
Max Golovanov 2181b01f77
Code improvements for ETW exporter (#519) 2021-04-03 12:34:55 +05:30
Bogdan Drutu 20db113ca3
Upgrade clang-format to 10.x, run ./tools/format.sh (#544) 2021-02-01 11:40:16 +05:30
Reiley Yang ab7f5f2054
Add spell check to CI (#527) 2021-01-21 09:49:02 +05:30
Josh Suereth 3cb5d26746
Update spin-lock implementation to use incremental back-off strategy and be single-CPU friendly(ish) (#443) 2021-01-05 23:33:56 +05:30
Max Golovanov 25a8668b0f
Resolve NOMINMAX issues where possible (#481) 2020-12-23 15:21:01 +05:30
Max Golovanov 1e7b9d8a95
Using STD library for API surface (#374) 2020-12-22 11:27:48 +05:30
Josh Suereth 11cc6cd8b1
SpinLock Improvements (#415)
SpinLock Improvements
2020-12-07 12:03:16 +05:30