Commit Graph

165 Commits

Author SHA1 Message Date
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 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
Marc Alff 74f0ac16b1
Fix header only api singletons (#1520) (#1604) 2022-09-13 07:01:40 -07:00
Ehsan Saei 6c240fdfbc
remove throw check from metrics with noexcept (#1560) 2022-08-11 18:24:01 +00: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
Zsolt Bölöny d3c4200654
Fix empty tracestate header propagation (#1373) 2022-05-05 11:49:23 -07:00
Lalit Kumar Bhasin 59a48c1c99
fix baggage propagation for empty/invalid baggage context (#1367) 2022-05-03 17:26:43 -07:00
Lalit Kumar Bhasin 75c2a8f7a6
Update yield logic for ARM processor (#1325) 2022-04-12 14:33:39 -07:00
Ehsan Saei 3c7b44bf4f
metrics exemplar round 1 (#1264) 2022-03-24 22:31:41 +01:00
Ehsan Saei f380fcba45
Logger-Support-for-Instrumentation-library (#1149) 2022-01-14 19:39:27 -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 15155f76bd
fix data race in BM_ThreadYieldSpinLockThrashing (#1099) 2021-12-02 08:18:28 -08:00
Paurush Garg 9772156789
fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00
Lalit Kumar Bhasin 8ddf9d30a6
Metrics API : Provider , MeterProvider, Meter, SynchronousInstrument (#1033) 2021-11-10 19:03:13 -08:00
Lalit Kumar Bhasin e58524c49a
Move old metrics implementation to different directory, and rename targets to *_deprecated (#1053)
Co-authored-by: Tom Tan <Tom.Tan@microsoft.com>
2021-11-05 14:25:22 -07:00
WenTao Ou 4110b56314
Implementation of `OtlpHttpLogExporter` (#1030) 2021-10-31 08:54:54 -07:00
Tom Tan 5de793d3cb
Add schema_url support to both Resource and InstrumentationLibrary (#979) 2021-09-21 01:18:38 -07:00
Lalit Kumar Bhasin 703576c0b8
make span context management public (#967) 2021-09-03 09:04:33 -07:00
Lalit Kumar Bhasin 7b1842b9cb
Separate baggage<->Context api from Baggage Propagator (#963) 2021-08-30 16:19:36 -07:00
Lalit Kumar Bhasin 98013c2563
Support for TextMapPropagator::Fields method (#799) 2021-07-02 10:47:22 +05:30
Lalit Kumar Bhasin 2383d99d4d
Associate valid SpanId/SpanContext with Spans irrespective of the Sampling decision. (#879) 2021-07-01 09:11:50 +05:30
Lalit Kumar Bhasin 61c0139ce7
baggage benchmark (#861) 2021-06-18 09:38:50 +05:30
Max Golovanov 8bf9bbcb62
Improve C++20 detection with CMake 3.12+ and gcc-9/c++20 support fixes (#860) 2021-06-16 23:00:15 +05:30
Lalit Kumar Bhasin b073e8b785
Perf benchmark tests for span creation ( along with context management ) (#856) 2021-06-15 14:25:38 +05:30
WenTao Ou 521ebd8f51
+ Move `CORE_RUNTIME_LIBS` into dependency of `opentelemetry_api` (#850) 2021-06-12 21:29:37 +05:30
Max Golovanov 5acf4cf597
More fixes to build all with Visual Studio 2015 (#840) 2021-06-09 12:51:25 +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 f793e6e45e
Add preview feature-flag/macro for logs (#807) 2021-05-29 10:04:52 +05:30
Lalit Kumar Bhasin 2b080c1a4c
Return Scope object instead of unique_ptr<Scope> from Tracer::WithActiveSpan() (#788) 2021-05-25 13:30:43 +05:30
Lalit Kumar Bhasin 3fa6525f40
Add missing Copyright headers (#754) 2021-05-25 11:37:08 +05:30
Lalit Kumar Bhasin c28be737f0
Implement Baggage propagator (#732) 2021-05-17 15:44:56 +05:30
Lalit Kumar Bhasin b696e11b7c
Add preview feature-flag/macro for metrics (#745) 2021-05-14 14:37:28 +05:30
Tom Tan 414a7314f7
Make ContextValue default constructible with monostate (#731) 2021-05-13 22:38:35 +05:30
Lalit Kumar Bhasin 5a97750c6e
Cleanup: Get Span from Context, Set Span to Context (#723) 2021-05-07 09:54:23 +05:30
Lalit Kumar Bhasin 2d2aa71ae7
restructure propagators (#715) 2021-05-05 11:27:51 +05:30
Lalit Kumar Bhasin f10acac2fe
Non-template propagator, Implement Global Propagator, no-op propagator (#668) 2021-04-23 19:37:18 +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
Evgeny Yakimov d129d42242
Make `Context::HasKey` const (#671)
- Update `Context::HasKey` to be const
- Add const qualifier to HasKey,GetValue to validate constness
2021-04-12 10:33:30 +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
Evgeny Yakimov c03cc612b6
Fix 32bit build error (#641) 2021-03-31 21:16:28 +05:30
Siim Kallas 07f4a96bfe
Simplify propagators (#608) 2021-03-18 16:47:13 +05:30
Siim Kallas 1e5751e203
Add Jaeger propagator (#599) 2021-03-12 22:47:02 +05:30
Lalit Kumar Bhasin 58a1e8c1ed
Add composite propagator (#597) 2021-03-09 16:40:34 +05:30
Lalit Kumar Bhasin b8a08eb550
Integrate TraceState with http_trace_context propagator (#563) 2021-03-04 13:16:13 +05:30
Tom Tan 3848295db0
Add TraceState to SpanContext (#561) 2021-02-23 23:57:10 +05:30
Tomasz Rojek 7ae5b54d37
Rename HTTPTextFormat to TextMapPropagator (#586) 2021-02-23 23:36:26 +05:30
Lalit Kumar Bhasin ea871308f0
TraceState implementation as per spec (#551) 2021-02-04 11:58:18 +05:30
Bogdan Drutu 20db113ca3
Upgrade clang-format to 10.x, run ./tools/format.sh (#544) 2021-02-01 11:40:16 +05:30
Lalit Kumar Bhasin cae3511915
Update StatusCode as per specs (#535) 2021-01-29 13:57:52 +05:30
Tomasz Rojek eccafd591d
Adding B3 propagator (#523) 2021-01-28 21:15:13 +05:30
Johannes Tax 51eef56efa
Rename SpanContext.HasRemoteParent to SpanContext.IsRemote (#529) 2021-01-21 22:59:29 +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
Johannes Tax 2c976112f4
Use a consistent key for the current span in the context (#480) 2020-12-23 13:43:07 +05:30
Tom Tan b5f0968e67
Add explicit conversion from size_t to int for shared_ptr_test (#478) 2020-12-22 21:15:46 +05:30
Max Golovanov 1e7b9d8a95
Using STD library for API surface (#374) 2020-12-22 11:27:48 +05:30
Mark d787758e33
Supporting Logging API .Log() Overloads and GetName() method (#422) 2020-12-20 18:15:53 +05:30
Karen Xu 106c00a4a4
Add a Recordable interface, implementation, and tests for logs (#438) 2020-12-14 23:41:14 +05:30
Max Golovanov 2a516addb6
Build tools: build configurations, vcpkg support, vcpkg port file for OpenTelemetry, use submodules for CMake deps (#377) 2020-11-30 14:47:41 -08:00
Lalit Kumar Bhasin 2bab26e249
Support adding links to span (#351) 2020-11-12 11:47:05 -08:00
Max Golovanov e4f7688d5a
Update shared_ptr_test.cc (#387) 2020-11-09 09:36:04 -08:00
Johannes Tax be1bbad6eb
Change strategy for detaching contexts (#383) 2020-10-29 21:28:53 -07:00
Johannes Tax f5079b56b3
Simplify context implementation (#372) 2020-10-29 11:32:29 -07:00
Karen Xu e3bf61e976
Initial Commit of Logging API (#378) 2020-10-27 18:58:10 -07:00
Karen Xu f2708921be
Move KeyValueIterable and KeyValueIterableView from trace to common (#363) 2020-10-17 20:10:44 -07:00
Johannes Tax 4a1b793ce7
Add functionality to explicitely specify a span parent (#349) 2020-10-09 00:55:39 -07:00
Johannes Tax 5aa3ecaa88
Add method to get currently active span (#339) 2020-09-25 15:56:00 -07:00
Johannes Tax a39b9b38d8
Remove static global context_handler_ variable (#322) 2020-09-21 15:59:08 -07:00
Lalit Kumar Bhasin 5d1898c01f
fix context data structure to support multiple attributes (#330) 2020-09-17 14:10:54 -07:00
Johannes Tax dbf2e36478
Add Scope object to control the currently active span (#324) 2020-09-15 08:06:31 -07:00
Max Golovanov 7100f73644
Visual Studio compiler warnings clean-up (#315) 2020-09-09 14:33:49 -07:00
Tianlin-Zhao 09983abea2
Added Http Trace Context (#143) 2020-08-25 18:18:40 -07:00
Nadia Ciobanu c6949159f2
Set ids for spans (#290) 2020-08-24 11:59:52 -07:00
Nadia Ciobanu 7480c46cc9
Simplify TraceState tests (#283) 2020-08-19 12:52:57 -07:00
Nadia Ciobanu b909da6786
Use memcpy in TraceState (#279) 2020-08-18 09:37:10 -07:00
Nadia Ciobanu 2300a53684
Add TraceState implementation (#273) 2020-08-14 14:24:33 -07:00
Sam Atac a55843f580
Span auto add context (#252) 2020-08-12 12:51:20 -07:00
Nadia Ciobanu 318f37abab
Add TraceState definition (#234) 2020-08-04 12:35:19 -07:00
easy d9035ef360
asan: enable more asan and ubsan checks. (#224)
* Don't call nullptr->f().
* Avoid signed overflow.
2020-08-04 17:05:57 +10:00
Brandon Kimberly 52981327ed
Add OpenTelemetry Meter API (#162) 2020-08-03 11:54:52 -07:00
Sam Atac 4e2aeee8f3
Context helper functions (#225) 2020-07-29 12:49:13 -07:00
easy 336593bb65
Autoformat. No functional changes. (#223) 2020-07-28 21:18:43 -07:00
Sam Atac 283114d755
Runtime and threadlocal context (#209) 2020-07-27 19:24:27 -07:00
Ankit Bhargava ed694564c3
Add Metric Instruments API (#161) 2020-07-27 07:55:04 -07:00
Sam Atac 37b275c1ac
Context api alternative implementation (#180) 2020-07-21 15:05:13 -07:00
Hudson Humphries 04c48a1cef
Add MeterProvider api (#165) 2020-07-14 13:20:05 -07:00
Nick Holbrook 9902d5e123
Move SpanContext to Separate File (#168) 2020-07-13 12:49:31 -07:00
Johannes Tax 9aa4797a6c
Don't move a constant AttributeValue (#141) 2020-07-10 11:08:04 -07:00
Max Golovanov aa79d9ca0b
Add compare operators to nostd::string_view (#124)
* Add compare operators to nostd::string_view

* Added tests
2020-06-29 16:13:06 -07:00
Johannes Tax 58736f0cb0
Set span start and end timestamps (#98) 2020-06-08 17:36:00 -07:00
Johannes Tax cee480470c
Use lowercase base 16 representation of ids (#88) 2020-05-20 09:20:18 -07:00
Ryan 3bbd2806c4
Support passing attributes with AddEvent (#60)
* Add varint files

* Fill out variant backport

* Add type_pack_element

* Add variant_size

* Add variant_alternative

* Fill out variant

* Fill out variant backport

* Fill out variant back port

* Fill out variant backport

* Fill out variant

* Fill out variant

* Add variant test

* Add get tests

* Add visit test

* Add more tests

* Fix variant tests

* Rename

* Reformat

* Add copyrights

* Add more variant tests

* Reformat

* Add more tests

* Fix for gcc-4.8

* Add AttributeValue

* Support passing attributes in AddEvents api

* Support passing attributes in AddEvent api

* Reformat

* Add cmake test

* Tweak function_ref

* Tweak function_ref

* Fix for gcc-4.8

* Reformat

* Add function_ref test

* Support arrays of primitives

* Support bool in AttributeValue

* Add documentation

* Allow sdk to use different clocks for timestamping

* Remove dead code

* Increase windows ci time limit

* Reformat

* Move AttributeValue to common

* Add missing type to AttributeValue
2020-05-10 17:09:21 -07:00
Ryan 176966a53f
Add backport of std::variant (#59)
* Add varint files

* Fill out variant backport

* Add type_pack_element

* Add variant_size

* Add variant_alternative

* Fill out variant

* Fill out variant backport

* Fill out variant back port

* Fill out variant backport

* Fill out variant

* Fill out variant

* Add variant test

* Add get tests

* Add visit test

* Add more tests

* Fix variant tests

* Rename

* Reformat

* Add copyrights

* Add more variant tests

* Reformat

* Add more tests

* Fix for gcc-4.8

* Fix gcc-4.8 issue

* Rename macro

* Handle bools better
2020-05-01 12:03:29 -07:00
Ryan 7479aa19ec
Add function_ref (#61)
* Add function_ref

* Add function_ref
2020-04-24 15:48:50 -07:00
Bryan Clement 752adcfa2c
Adding a tracer provider (#24) 2020-03-17 10:31:22 -07:00