Commit Graph

36 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
Doug Barker 82ec2a5a3d
[CMAKE] update cmake files in examples directory (#3421) 2025-05-19 15:06:37 +02:00
Pranav Sharma d976876feb
[API] Add Enabled method to Tracer (#3357) 2025-04-22 07:13:52 -07:00
Marc Alff e5a1a15296
[Code Health] Include what you use, part 6 (#3216) 2025-01-08 10:31:06 +01:00
tobim 7402ed9bac
[BUILD] Add a CMake option to disable shared libs (#3095)
* Add a CMake option to disable shared libs

This option is useful to support platforms that do not support
dynamic libraries and `dlopen`.
2024-10-21 23:27:57 +02:00
WenTao Ou 4520aa598b
[SDK] Fix crash in `PeriodicExportingMetricReader`. (#2983) 2024-07-19 12:12:48 +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 f97dc061bc
[Code health] include-what-you-use cleanup (#2692) 2024-06-15 17:10:05 +02:00
Marc Alff 2535c70c4e
[API/SDK] Provider cleanup (#2664) 2024-06-03 22:46:08 +02:00
Marc Alff 17da6d87c1
[API] Add a new AddLink() operation to Span (#2380) 2023-10-27 18:27:57 +02:00
Marc Alff 1d18614edb
Fixed copyright in examples. (#1964) 2023-02-07 05:59:12 +00:00
Marc Alff f29703b21c
Fixes #249 (#1677)
Fixed many remaining compiler warnings.
2022-10-13 20:56:17 +02: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
Paurush Garg 9772156789
fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00
WenTao Ou 521ebd8f51
+ Move `CORE_RUNTIME_LIBS` into dependency of `opentelemetry_api` (#850) 2021-06-12 21:29:37 +05:30
Lalit Kumar Bhasin 3fa6525f40
Add missing Copyright headers (#754) 2021-05-25 11:37:08 +05:30
Johannes Tax a978920411
Get rid of obsolete core namespace in API (#686) 2021-04-22 12:15:10 +05:30
Lalit Kumar Bhasin cae3511915
Update StatusCode as per specs (#535) 2021-01-29 13:57:52 +05:30
Max Golovanov 1e7b9d8a95
Using STD library for API surface (#374) 2020-12-22 11:27:48 +05:30
Lalit Kumar Bhasin 2bab26e249
Support adding links to span (#351) 2020-11-12 11:47:05 -08:00
Tom Tan c504cfb51e
Switch strerror to strerror_s (#388) 2020-11-11 22:21:29 -08: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 a39b9b38d8
Remove static global context_handler_ variable (#322) 2020-09-21 15:59:08 -07:00
Johannes Tax dbf2e36478
Add Scope object to control the currently active span (#324) 2020-09-15 08:06:31 -07:00
Tianlin-Zhao 09983abea2
Added Http Trace Context (#143) 2020-08-25 18:18:40 -07:00
Sam Atac a55843f580
Span auto add context (#252) 2020-08-12 12:51:20 -07:00
Johannes Tax 9aa4797a6c
Don't move a constant AttributeValue (#141) 2020-07-10 11:08:04 -07:00
Johannes Tax 9b624b9bbb
Support for attributes on spans (#117) 2020-06-23 09:40:23 -07:00
Johannes Tax 58736f0cb0
Set span start and end timestamps (#98) 2020-06-08 17:36:00 -07:00
Johannes Tax 2973baaf47
Add a minimal tracer example (#86) 2020-06-08 16:52:41 -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 f5bd54cde4
Add methods to Flush and Close a tracer (#45)
* Work on Flush-Close api

* Add Flush & Close

* Add flush and close interface

* Remove return type from Flush-Close

* Fix docs
2020-03-25 20:32:27 -07:00
Ryan 2f228b0bfe
Add interface for a trace recorder (#44)
* Start Recorder api

* Fill out Span api

* Reformat

* Fill out Tracer class

* Add cmake build

* Add commenting

* Fix formatting

* Reformat

* Fix date

* Make mutex mutable

* s/mutex_/mu_/

* Remove AddEvent with steady timestamp

* Fix typo

* Fill in IsRecordable

* Use namespace macros

* Add thread-compatible note

* Add commenting
2020-03-12 21:17:10 -07:00
Ryan 4dd7a6b520
Add plugin support (#36)
* Add code for dynamic loading

* Add a mock hook

* Fix CopyErrorMessage

* Set up loading example

* Add plugin example

* Add plugin example

* Make a noisy plugin

* Remove mock from sdk

* Add ci for testing plugin

* Reformat

* Remove noexcept from alias

* Add windows stub

* Add missing includes

* Document

* Reorganize

* Fix formatting

* Setup plugin test for windows

* Fix typo

* Fix windows script

* Fix windows script

* Fix typo

* Fix windows path

* Fill out windows testing

* Fix windows script

* Fix windows script

* Fix windows script

* Fix windows script

* Fix windows script

* Fill in windows loading code

* Use std::string for error message

* Fix example

* Use string for error_message

* Fix namespace error

* Add windows error handling

* Fix windows preprocessor error

* Fix signature

* Add tests for plugins

* Fix formatting

* Refactor plugin test

* Drop unused private section

* Update for master
2020-02-25 12:02:08 -08:00