Commit Graph

341 Commits

Author SHA1 Message Date
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
Ankit Bhargava 3ac89eb85e
Add Synchronous Metric Instruments SDK (#179) 2020-08-03 12:56:50 -07: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
easy e61663632c
Moving a temporary object prevents copy elision. (#205)
Caught by: -Wpessimizing-move
2020-07-23 08:45:43 -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 9b624b9bbb
Support for attributes on spans (#117) 2020-06-23 09:40:23 -07:00
Max Golovanov 49eee20bfe
std::result_of removed in C++20 (#115) 2020-06-16 14:37:01 -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
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
Ryan 8b3dd9ce32
Test bazel on windows (#58)
* Test bazelisk on windows

* Fix install_bazelisk script

* Limit windows bazel testing

* Use separate windows_bazel job

* s/WIN32/_WIN32/

* Fix windows bazel compilation issue

* Fix windows bazel compilation issue
2020-03-26 23:07:07 -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
Bryan Clement 752adcfa2c
Adding a tracer provider (#24) 2020-03-17 10:31:22 -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
Johannes Tax 7b4dd48b87
Add a type-erased shared pointer (#47) 2020-03-10 09:32:27 -07:00
Ryan 94d1af4ab7
Add inline namespace for ABI version (#46)
* Work on inline namespace

* Add an inline version namespace

* Reformat
2020-03-08 23:42:32 -07:00
easy 928080ef80
Add bazel.noexcept to CI. (#41)
This is to ensure OpenTelemetry works without exception handling.
2020-03-03 12:21:48 +11:00
easy ae8affcb8b
Add TraceFlags. (#39) 2020-02-26 12:27:11 +11: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
easy 3cc2c69dc8
Add Span API. (#35) 2020-02-25 11:25:55 +11:00
Ryan 9df8eb62a5
Add a Timestamp type (#29)
* Add timestamp

* Reword

* Reword

* Fix build for gcc48

* Fix cmake tests

* Update timestamp storage

* Reformat

* Split timestamp into a system and steady type
2020-01-27 20:07:51 -08:00
easy d09ef1c3d6
Add TraceId class. (#31) 2020-01-24 15:25:24 +11:00
easy 5241561171
Add SpanId class. (#10) 2020-01-16 14:11:09 +11:00
Ryan 83b9b9ef97
Add a minimal Tracer and Span API (#25)
* Add a unique_ptr

* Fill out more unique_ptr functionality

* Add missing assignment

* Fill out unique_ptr

* Add unique_ptr tests

* Add equality comparison

* Add documentation

* Add minimal Tracer interface

* Update cmake

* Add tests to cmake

* Fix unused variable

* Fix comments

* Remove unused include

* Fix build for gcc48

* Fix test prefix
2020-01-15 13:42:28 -08:00
easy 1dc9e2fa64
Make nostd::string_view work with -fno-exceptions. (#22) 2020-01-08 11:12:59 +11:00
Ryan c85b20b46d
Add back port of std::span (#21)
* Start filling out span backport

* Fix assertion

* Add a span test.

* Fix constructors

* Fill out span tests

* Add test coverage for pointer-count construction

* s/ASSERT_DEATH/EXPECT_DEATH/

* Add bracket operator test

* Add test coverage for other span construction.

* Add test coverage for array construction

* Add test for range construction

* Fix typo.

* Add assignment test

* Add iteration test

* Add data/size functions

* Add array overloads

* Support implicit construction from general containers

* Reformat

* Fix typo

* Fix typo

* Fix enable_if condition
2020-01-06 20:30:47 -08:00
Ryan b411cde758
Add a backport of std::string_view (#13)
* Ignore bazel files.

* Add a string_view backport.

* Add test cases for string_view.

* Update commenting.

* Add additional test assertion.

* Add substr method.

* Remove separate catch2 target.

* Add cmake build.

* Convert to gtest.

* Add gtests to cmake build.

* Remove catch tests.

* Run clang-format.

* Add missing link library.

* Add pthreads

* Reformat.
2019-12-17 12:20:22 -08:00
Reiley Yang 976bc27116
Initial folder layout (#8) 2019-10-24 19:34:33 -07:00