Commit Graph

165 Commits

Author SHA1 Message Date
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
Johannes Tax 7b4dd48b87
Add a type-erased shared pointer (#47) 2020-03-10 09:32:27 -07:00
Johannes Tax 97ea4d7dbe
A little CMake cleanup (#48) 2020-03-09 19:46:53 -07:00
Ryan a76df41a68
Add missing cmake test directory (#40) 2020-02-26 18:14:09 -08: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 573696f3fd
Run benchmarks on CI. (#34) 2020-02-03 15:11:55 +11:00
easy 1987e762b1
Add SpanId benchmark. (#33) 2020-01-29 16:33:05 +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